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

CrudRoute throws "No controller given" if controller is not specified under defaults #1

Open
mxc-commons opened this issue Sep 11, 2013 · 0 comments

Comments

@mxc-commons
Copy link

CrudRoute currently throws 'No controller given' if Controller was specified on the same level as route, i.e.

'route' => '/crud',
'controller' => 'MyController'

throws while

'route' => '/crud'
'defaults' => array(
     'controller' => 'MyController'
)

works.

Suggestion for fix line 80,81:

    $controller = isset($options['controller']) ? $options['controller'] : null;
    if (!$controller) $controller = isset($defaults['controller']) ? $defaults['controller'] : array();
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