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.
    • CommentAuthorfixxxer
    • CommentTimeJul 8th 2008 edited
     
    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
    • CommentTimeJul 8th 2008
     

    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
    • CommentTimeJul 10th 2008
     
    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
    • CommentTimeJul 10th 2008
     

    the trunk is fine.

Add your comments
    Username Password
  • Format comments as