Answer the question
In order to leave comments, you need to log in
How to get to the controller /dir1/dir2/controller(/action(/id))?
It turns out that directory = "dir1/dir2". How to register it in the route?
I'm slowing down something... :)
---
Controller class Controller_Dir1_Dir2_ControllerName
---
It looks like I'm not the only one slowing down %)
Answer the question
In order to leave comments, you need to log in
Route::set('routename', 'foo/bar/...')->defaults(array(
'directory' => 'Dir1/Dir2',
'controller' => 'ControllerName'
));
In general, he spat on the slash separators and replaced them with underscores.
Route::set('tadatada', '< directory >/< controller >(/< action >(/< id >))', array('directory' => 'tadatada_.*'))
->defaults(array (
'action' => 'index',
));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question