I am checking this file: xenforo\library\XenForo\ControllerPublic\Forum.php
Questions:
1. is this a controller:Forum.php? If I want to view this page in frontend, how should I do? I tried this one: mysite.com/xenforo/Forum, but it does not work.
2. How does view/controller work in XenForo? In zend framework1, normally we have IndexController, then we can put action inside, eg. public function addAction(), then we have views\scripts\index\add.phtml, we can use this to show the output, we can see the final result using this url: mysite.com/project/public/index/add, so how does view/controller work in XenForo? Now I do not care too much about model, I think it is also mostly dealing with DB in XenForo, the layout/template is my concern now.
Questions:
1. is this a controller:Forum.php? If I want to view this page in frontend, how should I do? I tried this one: mysite.com/xenforo/Forum, but it does not work.
2. How does view/controller work in XenForo? In zend framework1, normally we have IndexController, then we can put action inside, eg. public function addAction(), then we have views\scripts\index\add.phtml, we can use this to show the output, we can see the final result using this url: mysite.com/project/public/index/add, so how does view/controller work in XenForo? Now I do not care too much about model, I think it is also mostly dealing with DB in XenForo, the layout/template is my concern now.