Hello_world_Controller Class Reference

Hello World controller. More...

Public Member Functions

 index ()
 This is the index method ("page") Naming a controller method means that it will be loaded if no method is given in the URL.

Detailed Description

Hello World controller.

First character in controller class name must be capital letter followed by _controller.

If it extends Template_Controller, no login is required - use Authenticated_Controller if this is a requirement.

This example is created as a module and needs to be enabled in application/config/config.php Just add MODPATH.'hello_world', // Hello World example to the $config['modules'] array in config.php or you will get a "Page Not Found" error. This means that Ninja will look for the folder ninja/modules/hello_world

Add link to the ninja menu by editing controllers/ninja but unfortunately this will be overwritten when upgrading Ninja so keep a backup.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 14 Jan 2015 for ninja by  doxygen 1.6.1