Ewelina_Koala Posted January 15, 2020 Share Posted January 15, 2020 I have a problem with register hook and i cant find good documentation about moduleRoutes<br> my hook function : public function hookModuleRoutes() { return [ 'module-youtube_video-display' => [ 'controller' => 'display', 'rule' => 'youtube_video', 'params' => [ 'fc' => 'module', 'module' => 'youtube_video' ] ] ]; } > modules\youtube_video\vpages\controllers\front\display.php class VpagesDisplayModuleFrontController extends ModuleFrontController { public function init(){ parent::init(); $this->setTemplate('youtube_video.tpl'); } } > modules\youtube_video\views\templates\hook\youtube_video.tpl <div id="custom-text"> <p>{$youtube_url}</p></div> i try this with difrent tutorials and still get 404 when i try go to route Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now