...
class DataScience_Controller extends Main_Controller { public function index() { } |
---|
Note that Notes:
-datascience.php extends class Main_Controller: this puts your content into a standard Ushahidi frame.
Extensions:
-To add another page, add another function. The name of the function will be what appears in the URL example: public function hello(){} URL: (base)/index.php/datascience/hello
-To include a link to your new page in the navigation bar follow How To Write A Plugin
- use the action "nav_main_top"
- In the view for the button: <li><a href="?php echo url::base(TRUE) . 'datascience'?> Datascience </a></li>
**this will link to your index