HDJuegos
Active member
Hi, i'm working now in my own news system for my site and i'm very interested in create my own http route, but i dont know very well how to use multiple prefix.
For example, i know i can create my own prefix from developer admin and also add news prefixes using the model ActionPrefix() in ControllerPublic. But i had two questions about (forget about create a category, i only want help code in routes):
Imagine "news" is my Add-on and i had it working in developer mode, with prefix added.
1. How can i create a route prefix for this?:
www.mysite.com/news/sports/spain-wins-world-cup < a new about a sport
www.mysite.com/news/cars/new-ferrari-in-2001 < a new about a car
2. I want also to do a reroute like this:
if i write this:
www.mysite.com/all-about/cars
without redirect, XenForo returned the same output as:
www.mysite.com/news/cars/
( Yes, people look at URL and see http://www.mysite.com/all-about/cars and XenForo returns the same as www.mysite/news/cars )
My goal is learn to play with all type of routes.
Thanks in advance and sorry if my english isn't good.
For example, i know i can create my own prefix from developer admin and also add news prefixes using the model ActionPrefix() in ControllerPublic. But i had two questions about (forget about create a category, i only want help code in routes):
Imagine "news" is my Add-on and i had it working in developer mode, with prefix added.
1. How can i create a route prefix for this?:
www.mysite.com/news/sports/spain-wins-world-cup < a new about a sport
www.mysite.com/news/cars/new-ferrari-in-2001 < a new about a car
2. I want also to do a reroute like this:
if i write this:
www.mysite.com/all-about/cars
without redirect, XenForo returned the same output as:
www.mysite.com/news/cars/
( Yes, people look at URL and see http://www.mysite.com/all-about/cars and XenForo returns the same as www.mysite/news/cars )
My goal is learn to play with all type of routes.
Thanks in advance and sorry if my english isn't good.