Iforp

Results comments of Iforp

Moreover, what if I want to use a default numeric value [here](https://github.com/phalcon/cphalcon/issues/502#issuecomment-15714471), but `15` instead of `2`

@phalcon Can I hope that this issue will be solved somehow? Or do you think it should stay as it is?

It's not a bug ``` /video_news/all/page/{page:[0-9]+}/category/{category:[0-9]+}/interval/{interval:[0-9]+}/sortby/{sortby:(hits|comments|date)+} ↑ 1 (lang_switcher) ↑ 2 ↑ 3 (media_type) ↑ 4 ↑ 5 ```

I think this is the only solution if you need default numeric params (which overrides the path params) ``` php $router->add ( '/video_news/all/page/{page:[0-9]+}/category/{category:[0-9]+}/interval/{interval:[0-9]+}/sortby/{sortby:(hits|comments|date)+}', [ 'controller' => 'page', 'action' => 'build',...

This is because of brackets. ``` php $router->add ( '/news/{id:[0-9]+}/{news_alias:[^\/]+}/sortby/{sortby:(tree|date|username|rate)+}/order/{order:(asc|desc)+}/page/{page:[0-9]+}', [ 'controller' => 'page', 'action' => 'build', ] ); $router->handle('/news/123456/hello_world/sortby/tree/order/desc/page/1'); echo $router->getMatchedRoute()->getCompiledPattern(), "\n"; print_r($router->getMatchedRoute()->getPaths()); ``` ``` #^/news/([0-9]+)/([^\/]+)/sortby/((tree|date|username|rate)+)/order/((asc|desc)+)/page/([0-9]+)$# Array ( [controller]...

I prefer not to use named parameters in the pattern to avoid surprises if I use complex regEx

It was just a simplified example. I can have several roles: - "Writers" to write news - "Moderators" to approve comments - "Adv_Managers" to control banners - "Some_People" to do...

Have you ever written an application slightly more than "hello world"? Have you ever support other developer's apps? Have you ever heard of such things as the structure of the...

> $acl->allow('Admins', '_', '_'); ACL grant's access only to all controllers and actions which he knows (you specify). > So if he must to decide, he should know about "anyController"...

In my opinion the framework shouldn't use extra checks if the rule allows everything.