Sujet : Hoa\Router::unroute et le camelCase
Salut Hywan,
Alors tout d'abord un petit bug dans le router ,
en effet quand je définie la route suivante :
$router->get('ag', '/admin/gallerie-(?<idGallerie>.*?).html', 'admin', 'gallerie');et dans un controller je lance :
public function IndexAction() {
var_dump($this->router->unroute('ag', array('idGallerie' => 'foo5454545')));
}ca me retourne : string '/admin/gallerie-.html' (length=21)
et si je met <idgallerie> et var_dump($this->router->unroute('ag', array('idgallerie' => 'foo5454545'))); j'obtiens la route escompté
Morale de l'histoire :
16:29:38 - thehawk24 : je trouve quand meme le camelCase assez facile a relire
16:29:48 - iraphael_ : oui mais complètement merdique à utiliser
Cdt thehawk