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

    I'm trying to configure routes.php in my project and when I try to change the default (controller => page, action => index) for something like $Map->connect('/:controller/:action/:id', array('controller' => 'post') ); I got weird routing and linking. Since I don't have an index action in Post, it redirects to my listing action but I then got an url that looks like http://www.mysite.com/?ak=/post/listing. Did I miss something in routes.php? I don't have this problem if I manually enter http://www.mysite.com/post/.

    Also, every links created using $url_helper are looking the same way (http://www.mysite.com/?ak=/post/add) when not entering the full url and everything's back ok if I use http://www.mysite.com/post/.
    Revision 772 of Akelos.

    Any ideas?

    Thank you very much

    Update: Ok, I should have checked before posting. That was a htaccess problem. All I had to do was to define AK_URL_REWRITE_ENABLED as true in config/config.php. But, anyway, does someone can explain to me why I had no problem with this before? Is that a normal behavior that it occurs even though I have mod_rewrite enabled?
    • CommentAuthorKaste
     

    hm, either AK_URL_REWRITE_ENABLED was false, or Akelos tried to guess you're setting.

    But I don't think there were any changes for AkRouter in the trunk since ...

    r772 is from the /branches/new-router... you didnt get that one?

    • CommentAuthorfixxxer
     
    hm I'm not really sure to understand your last statement. I'm still not very familiar with svn so it may be possible that I got the wrong one...

    Right now, from what I can tell, it seems that my revision is 772 and it comes from the akelos trunk. Should I get an another one? I never look into branches so far. I only have theorical knowledges about branches, never used them in fact.
    • CommentAuthorKaste
     

    the trunk is fine.