1 to 4 of 4
Hi,
Is it possible to use subdirectories like ./app/controllers/admin/ for controllers, models and views? In RoR it is, but what about akelos. How to do this if it's possible?
-jyrki
It is not possible yet with Akelos.
I tried this some time ago, but it supposed a big performance hit.
Anyhow I've opened a ticket to implement this in a future without performance penalties.
Ok. Could it be done like this while waiting for the "official" way to do it
<?php
// file: config/routes.php
// You can find more about routes on /lib/AkRouters.php and /test/test_AkRouter.php
$Map->connect('/admin/admin_:controller/:action/:id', array('controller' => 'admin_welcome', 'action' => 'index'));
$Map->connect('/:controller/:action/:id', array('controller' => 'welcome', 'action' => 'index'));
$Map->connect('/', array('controller' => 'page', 'action' => 'index'));
?>
and by having file structure app/controllers/admin_page.php, as an example.
-jyrki
1 to 4 of 4