-
Notifications
You must be signed in to change notification settings - Fork 311
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
DataBase & Controllers code #94
Comments
Hi - if you're a student on the Udemy course, please ask any questions in the Q&A section there. As for your code, you need to call the model method from the controller, then pass that data to the view, e.g.
Then in the view the data will be available in the |
Thanks for your help. I'm not a Udemy student because I don't speak English very well, but I'll fix it. If you still have a few minutes, I just changed the code and got a Fatal error
|
The method doesn't have any arguments - try this:
|
Hello,
I am a student and would like to retrieve information from my database to display in a view. I have been trying for 2 days without success. Here is my code:
Models -> Menu:
Controllers -> Menu
Views -> Menu (phtml)
If someone to help me by telling me where the problem is coming from. I think it's from the Controllers. And how to display it in the view? Is this a return from a data table?
Thanks for your help
The text was updated successfully, but these errors were encountered: