I want to create component based on com_weblinks.
This component will display categories and links on single page.
In 3.0 I don’t understand how I can use 2 models (categories models and links model) in one view.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First approach
I did this by modifying the controller as follows (this is the controller for user)
In the view you can then simply do your operations on the models
Alternative approach
In the view directly load the model: