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, 'id' parameter cannot be with zero value at all? I bother with this because I want to make a root nodes in TreeBehaviour with null or zero values of parent_id field. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---