Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthoriJyrki
    • CommentTimeJul 18th 2007
     

    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

    •  
      CommentAuthorbermi
    • CommentTimeJul 18th 2007
     

    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
    • CommentTimeJul 18th 2007
     

    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.  
    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 :)

    greets,
    chris
Add your comments
    Username Password
  • Format comments as