zelakioui Posted April 19, 2015 Share Posted April 19, 2015 Hello, I am new in module developpement , i get error when creating module view . my frontcontroller is : class PrcustomeropinionDefaultModuleFrontController extends ModuleFrontController{ public function init() { $this->page_name = 'opinion'; // page_name and body id $this->display_column_left = true; $this->display_column_right = true; parent::init(); } public function initContent() { parent::initContent(); $this->setTemplate('default.tpl'); } } my default.tpl is in views/templates/front folder but i get 404 error (page not found ) when executing my controller I have added my module page in Preferences/SEO & URL in backoffice but the problem persist the cache is cleared PLease, i need your help !! Link to comment Share on other sites More sharing options...
bellini13 Posted April 19, 2015 Share Posted April 19, 2015 a couple things 1) confirm what your module name is 2) remove the init function completely from your controller and try again 3) what URL are you using to access your controllers page 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