Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Garden + Vanilla2 - Routes

edited January 2010 in Vanilla 2.0 - 2.8
Hi ...

currently i try to build a Applikation on Garden. And i want to set a route to my Controller ... so i use a route like this:

$Configuration['Routes']['foobar/:alphanum'] = 'myController/myFunction/';

that wokrs fine for: or

but i like to have the last part of the URL as a parameter in my Controller function ... is possible?

Sorry ... my englisch is not so nice ;)



  • ok i checked myself ... and i think it´s a bug in

    ibrary/core/class.dispatcher.php in line 378

    if (strpos($Destination, '$') !== FALSE && strpos($this->Request, '(') !== FALSE)

    if (strpos($Destination, '$') !== FALSE && strpos($Route, '(') !== FALSE)

    after this the following Route works fine:

    foobar/:alphanum -> myController/myFunction//$1

  • lucluc ✭✭
    edited January 2010
    You shouldn't need to configure routes in the conf file.

    That's something you add in your application.
  • Ok ... But i thingt that is still a Bug ;)
  • edited January 2010
    ok i have fork and fixed the Bug ... and now i try to do a pull request, but this is my first use of GitHub and a don´t know that was right. But i hope so ;) if not please explain it to me

  • MarkMark Vanilla Staff
    Thanks for the fix!
Sign In or Register to comment.