php - admin module in kohana 3.3.x doesn't route correctly -


I have problems with the Kohana 3.3.x module. I am trying to create a module called admin in my Koa project. I wrote the documents of Koa & amp; To make some samples about this one, but it seems that something goes wrong: (

This is my module structure:

 - module - admin - class - Controller - Dashboard.php + Model + View - init.php 

And here is my Dashboard. Php:

 Class Controller_Admin_Dashboard Controller {Public function action_index () {echo 'module !! ! '}}} / Pre> 

And this is what I defined in init.php:

  root :: set (' Admin ',' Admin (/ & lt; Controller & gt; (& Lt; ACTION & gt; (/ & lt; id & gt;))) & gt; Default (array ('directory' = & gt; 'administrator', 'administrator' = & gt; ' I have also loaded the module in bootstrap.php like this:  
 ,' index ',));  

> 'Admin' = & gt; MODPATH.'admin ', // admin panel

Everything looks fine but when I

localhost / cms / Admin / dashboard /

In the address bar, I will get an error like this. what's going on? Please help me.

Error:

  Kohana_HTTP_Exception [404]: The requested URL was not found on the administrator / dashboard / this server. The 'directory' in the path used for the subdirectory in the 'class' folder is not the absolute,  

Module Root.

This is the correct structure for your root

  - module - admin - class - admin - controller - dashboard.php + model + view - init.php  

Comments