Cakephp home.ctp/index controller and a controller without a model

1) Create a new controller (the one below has no model)
class DashboardsController extends AppController {
	var $name = 'Dashboards';
	var $uses = array();
		function index() {
 
	}
}
2) Reroute in routes.php in the app folder.
 
Router::connect('/', array('controller' => 'dashboards', 'action' => 'index'));
Your rating: None Average: 4 (4 votes)

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.