FOR ARCHIVAL PURPOSES ONLY

The information in this wiki hasn't been maintained for a good while. Some of the projects described have since been deprecated.

In particular, the "Ushahidi Platform v3.x" section contains information that is often misleading. Many details about this version of Platform have changed since.

This website is an extraction of the original Ushahidi wiki into a static form. Because of that, functions like logging in, commenting or searching will not work.

For more documentation, please refer to https://docs.ushahidi.com

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

class DataScience_Controller extends Main_Controller
{
 public function index()
 {
$this->template->content = new View('datascience/main');
}
}


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 

  1. use the action "nav_main_top"  
  2. In the view for the button: <li><a href="?php echo url::base(TRUE) . 'datascience'?> Datascience </a></li>
    **this will link to your index