Mikey
Well-known member
So, if I am coding an image hosting add on (just as an example (I am not coding an image host add on)), and i have /imghost as my route, set up for everything with a /ControllerPublic/Index.php
For the index I have an "actionIndex" function in my ControllerPublic.. This works fine as it returns a template to show off..
but then for example say I wanted to have /imghost/view/awesome.1/ (example again)
Would I set up an "actionView" function inside the ControllerPublic/Index.php file? Or would I use some other method such as a "ViewPublic" for example?
I'm just trying to figure out what the best layout to do something like that would be.. or more importantly: what is the right way to do this?
For the index I have an "actionIndex" function in my ControllerPublic.. This works fine as it returns a template to show off..
but then for example say I wanted to have /imghost/view/awesome.1/ (example again)
Would I set up an "actionView" function inside the ControllerPublic/Index.php file? Or would I use some other method such as a "ViewPublic" for example?
I'm just trying to figure out what the best layout to do something like that would be.. or more importantly: what is the right way to do this?