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

call controller method without being static #2123

Closed
roydekleijn opened this issue Jan 9, 2017 · 3 comments
Closed

call controller method without being static #2123

roydekleijn opened this issue Jan 9, 2017 · 3 comments

Comments

@roydekleijn
Copy link

roydekleijn commented Jan 9, 2017

Hello,

I was wondering if there is a neath way of calling controllers methods without being static ? (something like Laravel does for example: Route::get('user/{id}', 'UserController@show');

or Symfony:

$collection->add('blog_list', new Route('/blog', array(
    '_controller' => 'AppBundle:Blog:list',
)));

How would this look like in Slim?

Thanks Roy

@mathmarques
Copy link
Contributor

Yes, there is a way, see here

@roydekleijn
Copy link
Author

roydekleijn commented Jan 9, 2017 via email

@geggleto
Copy link
Member

Closing as resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants