View Single Post
Old 07-19-2009, 05:22 PM   #48 (permalink)
xenon
The Frequenter
Newcomer 
 
xenon's Avatar
 
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
xenon is on a distinguished road
Default

Quote:
Originally Posted by russellharrower View Post
Ok my quick question, how would i use this code, with my CMS that I am designing, I see the code, and it looks neat, however there is alot of code i want to edit, change and add.
I see there is no admin area, that far as this is just a framework, and I have to build on the top of it.

I am still very new to this whole OO thing, and there is no university's that tech OO over here in Melbourne (and we are meant to be the web capital of Australia)

Any help would be nice.

Also I get this http://www.designvisa.com/beta/webgear/index.php
The requested controller could not be found(Beta)!

Is that error!?
That error is caused by a wrong BASE_URL setting. Go to /includes/config/, open defs.php and find the line which says:

PHP Code:
define('BASE_URL' 
If I'm not wrong, it should be:

PHP Code:
define('BASE_URL''http://' $_SERVER['SERVER_NAME'] . '/beta/webgear/'); 
for your specific server. Your code will go into controllers. For the admin, I, for example, am using a separate controller, which extends the default one, and forces authentication. Then, all admin controllers extend that controller, hence having to be authenticated to use that area.

I've attached the sample for an admin "plugin", so that you can get a better idea of how to create an administration panel on top of this framework. Just unzip the attached archive into your /webgear/ directory. You must then configure the authentication. Look into includes/controllers/admin/ (controller.php and login.php files) for database customizations and such.
Attached Files
File Type: zip admin.zip (6.5 KB, 6 views)
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
xenon is offline  
Reply With Quote