Hello,
How to add extra links... I have changed header.tpl and some code added to header.php... but it gives me error when i push link
Fatal error: Class 'Controllernewsnews' not found in /var/www/system/engine/front.php on line 39
How to add extra links... I have changed header.tpl and some code added to header.php... but it gives me error when i push link
Fatal error: Class 'Controllernewsnews' not found in /var/www/system/engine/front.php on line 39
Last edited by i2Paq on Mon Mar 01, 2010 4:48 pm, edited 1 time in total.
Reason: Topic moved
Reason: Topic moved
Judging by the error message your link reference in the controller (header.php) is wrong. Looks like you've put something like:foreverman wrote:... I have changed header.tpl and some code added to header.php...
Fatal error: Class 'Controllernewsnews' not found in /var/www/system/engine/front.php on line 39
Code: Select all
$this->data['news'] = $this->url->http('news/news');
Code: Select all
$this->data['news'] = $this->url->http('information/news');
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
ok when I did
But I have got same error like before
I need to do web page inside folder information.. i did it .. (i just made copy of information.php and renamed it to news.php)$this->data['news'] = $this->url->http('information/news');
But I have got same error like before
ok when I did
But I have got same error like before
I need to do web page inside folder information.. i did it .. (i just made copy of information.php and renamed it to news.php)$this->data['news'] = $this->url->http('information/news');
But I have got same error like before
Perhaps you should have stated this before? Then we would know exactly what you're trying to do. If you are trying to create a "News" page, look here for instructions on how to build a module, or alternatively, you could download a "News" module from here. There's no purpose in re-inventing the wheel!foreverman wrote: .. (i just made copy of information.php and renamed it to news.php)
Modules for OpenCart 2.3.0.2
Homepage Module [Free - since OpenCart 0.7.7]
Multistore Extensions
Store Manager Multi-Vendor/Multi-Store management tool
If you're not living on the edge ... you're taking up too much space!
Hi thanks for links it is useful as well...
Buut... I try to add extra link on main menu where is HOME - LOGIN - CART... and so on...
I try to do it in header.tpl but it does not want to recognize link where I signed...
Yes I want to integrate news but as separate page like login page like cart page..But it does not to recognize it...
I understand so that somewhere is file where described where is modules ... for example when I click to Login page it shows me localhost/index.php?route=account/login sooo... I want to do the same but with news page.. something like this localhost/index.php?route=news/news
Buut... I try to add extra link on main menu where is HOME - LOGIN - CART... and so on...
I try to do it in header.tpl but it does not want to recognize link where I signed...
Yes I want to integrate news but as separate page like login page like cart page..But it does not to recognize it...
I understand so that somewhere is file where described where is modules ... for example when I click to Login page it shows me localhost/index.php?route=account/login sooo... I want to do the same but with news page.. something like this localhost/index.php?route=news/news
and extra question is it any module-forum for opencart and how to integrate same like I want for news or same forum like here ?
Who is online
Users browsing this forum: No registered users and 5 guests