I'm using Kohana 3.2 and I need to create the directory structure below for my application. For that, I'm using the Route below, but I'm doing something wrong yet. "Settings" is my use case that I'm developing.
<?php
Route::set('global', '<directory>(/<controller>(/<action>))', array('directory' => 'settings'))
->defaults(array(
'directory' => 'settings',
'controller' => 'settings',
'action' => 'index',
));
?>
So, this is my directory structure for "Settings" use case:
- ..\application\settings\classes\controller\settings.php
- ..\application\settings\classes\model\settings.php
- ..\application\settings\views\settings_form.php
And this is the code for my controller:
class Controller_Settings extends Controller {
public function action_index(){
echo 'test';
}
}
And this is the url that I'm using to access my controller:
- http://cmx107/clients/cmcaapp/v1/settings
Thanks, Cheers