Lee
Well-known member
What I am looking to do is expand upon this thread;
http://xenforo.com/community/threads/controllers-and-model-help.52514/
where I created a model and controller to allow me to grab the last 5 articles and navigation menu.
I added a route called home to the database, but now what I want to do is expand upon that route so clicking each category in the menu takes you to a list of articles dedicated to that category with the route of home/catergoryname.id and similarly, clicking a article title takes you to a route of home/category.id/articlename.id
How would I go about writing the code to select the data based upon the url?
Cheers,
Lee
http://xenforo.com/community/threads/controllers-and-model-help.52514/
where I created a model and controller to allow me to grab the last 5 articles and navigation menu.
I added a route called home to the database, but now what I want to do is expand upon that route so clicking each category in the menu takes you to a list of articles dedicated to that category with the route of home/catergoryname.id and similarly, clicking a article title takes you to a route of home/category.id/articlename.id
How would I go about writing the code to select the data based upon the url?
Cheers,
Lee