Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon\Mvc\Router getDefaut*() methods #1087

Closed
hesalx opened this issue Aug 14, 2013 · 1 comment
Closed

Phalcon\Mvc\Router getDefaut*() methods #1087

hesalx opened this issue Aug 14, 2013 · 1 comment

Comments

@hesalx
Copy link

hesalx commented Aug 14, 2013

Please, add getDefault_() methods to Router class.
There are setDefault_() ones for controller, action etc., but you can't know these values at runtime now.
Dispatcher has those methods. But in some cases you have to use Router to assign these values, so they're known without a dispatching loop (when you manually handle some url).
getDefaults() is very useful to not hardcode respective values but get them dynamically.

@dreamsxin dreamsxin mentioned this issue Aug 15, 2013
@phalcon
Copy link
Collaborator

phalcon commented Aug 15, 2013

Implemented by @dreamsxin in 1.3.0, thanks

@phalcon phalcon closed this as completed Aug 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant