Prithvi Information Solutions Web Software development Development Decoded
Home Products Allmostapp Testimonials About Us
one pix | |
Celeroo Frame Manual   The Administration Dispatcher
Getting Started
Basic Concepts 
URL Routing 
The Administration Dispatcher
Libraries and Helpers Reference
The Simple GuestBook MVC Example
FAQ
 
Download Celeroo Frame
A flexible PHP framework
 
 
Most web applications require an administration interface. To make eve this work easier, Celeroo Frame comes with a ready admin dispatcher and a simple authorization script. The dispatcher is called admin.php and works the same way as the index.php dispatcher. By default all administration related controllers and views file names start with "a_" so it is clear that they are related to the administration.

Accessing the admin controllers and default admin controller

The default admin controller should be called a_main.php and it is getting accessed when you visit http://yoursite.com/admin.php

The other controllers correspond to the action URL parametter. For example:

http://yoursite.com/admin.php?action=stats will access the controller called a_stats.php

If you prefer the admin controllers to be located in a subfolder, you can modify the admin.php dispatcher.
The Simple Authorization Script 
To make development easier Celeroo Frame comes with ready authorization script for the admin. If you want to use it, you can simply insert 2 rows in the settings table. The first row should have "adminlogin" in the name field and the value you want for login in the value field.

The second row should have "adminpass" in the name field and the value you want for password in the value field.

Note that this authorization is basic and does not use crypted password. You may prefer to create your own more advanced admin authorization procedure.
The Settings Table 
When you install Celeroo Frame it creates a table called Celeroo Frame_settings (you can change the prefix if you want. Just read the Configuration page). This table contains fields name, value and defval. Any records that you add inside will be automatically read and assigned to constants named by the values in "defval" field. Additionally you will be able to access these configuration values thru the functions set_setting() and get_setting().

Example:

When installing Celeroo Frame you are prompted to insert your website root URL. It is getting inserted in the Setting stable as:

name: site_url
value: http://yoursite.com/ (Whatever you have entered)
defval: SITE_URL This means that the constant SITE_URL will be available across your entire web application. Additionally you can retrieve it with get_setting("site_url");

For security reasons Celeroo Frame does not provide a web interface for this table. You should set its values thru your webhosting control panel.
 
Previous Next
   
Need Help? Click here to send us your queries on the framework and/or the manual, and we will respond promptly.
 
 
Who We Are | Contact Us
All Rights Reserved. Copyright © 2008 - Prithvi Information Solutions Limited.