Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoriJyrki


    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?



    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.

    • CommentAuthoriJyrki

    Ok. Could it be done like this while waiting for the "official" way to do it

    // 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.


    • CommentAuthorpixel-boutique.de
    Found this Framework yesterday and played around.
    Looks very nice. Even when installation was a bit a hazzle, wiki and forum-posts could resolve.

    But this is really big pitty not having integrated nicely, yet. Hope community can encourage Akelos to implement this feature very soon :)