2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-15 Thread Serge Rodovnichenko
OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'='mycontroller', 'action'='index', 'id'=0)); $expected = '/mycontroller/index/id:0'; $this-assertEqual($result, $expected); So,

Re: 2 Gwoo: Zeroes as named and unnamed parameters. Continuation of discussion ot ticket 4917

2008-06-15 Thread AD7six
On Jun 15, 8:30 am, Serge Rodovnichenko [EMAIL PROTECTED] wrote: OK. Zero cannot be an unnamed parameter like this: /mycontroller/index/ 0, it's a feature. But this the test below fails too: $result = Router::url(array('controller'='mycontroller', 'action'='index', 'id'=0)); $expected =