-
Notifications
You must be signed in to change notification settings - Fork 479
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
[Question] How to display one song? #232
Comments
adjusted index
|
Thanks a lot! http://localhost/mini/songs/deletesong/3 http://localhost/mini/songs/4 |
I think your right there - you have to go to a function - so like the deletesong example |
First of all, great thanks for this project - it helps a lot to know about MVC for such beginners as I am.
Maybe this question is too simple, but my current knowledge of PHP doesn't let to solve it by myself.
So, if you call http://example.com/mini/songs/ the script calls the index method of the songs controller.
What should I do to get the page like http://example.com/mini/songs/1 (where song with id=1 will be displayed)?
I suppose that in this case I need another method in the songs controller. But how to pass the id to this method? Probably it should be done in core/application.php?
I will be very grateful for the answers. Pieces of code are welcome :)
The text was updated successfully, but these errors were encountered: