Post by foreverman » Sun Feb 28, 2010 11:26 pm

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
Last edited by i2Paq on Mon Mar 01, 2010 4:48 pm, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Thu Feb 11, 2010 10:18 pm

Post by fido-x » Mon Mar 01, 2010 1:03 pm

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
Judging by the error message your link reference in the controller (header.php) is wrong. Looks like you've put something like:

Code: Select all

$this->data['news'] = $this->url->http('news/news');
when it should be:

Code: Select all

$this->data['news'] = $this->url->http('information/news');

Image
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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by foreverman » Mon Mar 01, 2010 6:58 pm

ok when I did
$this->data['news'] = $this->url->http('information/news');
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)
But I have got same error like before

Newbie

Posts

Joined
Thu Feb 11, 2010 10:18 pm

Post by foreverman » Mon Mar 01, 2010 6:58 pm

ok when I did
$this->data['news'] = $this->url->http('information/news');
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)
But I have got same error like before

Newbie

Posts

Joined
Thu Feb 11, 2010 10:18 pm

Post by fido-x » Mon Mar 01, 2010 7:38 pm

foreverman wrote: .. (i just made copy of information.php and renamed it to news.php)
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!

Image
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!


User avatar
Expert Member

Posts

Joined
Sat Jun 28, 2008 1:09 am
Location - Tasmania, Australia

Post by foreverman » Wed Mar 03, 2010 8:56 pm

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

Newbie

Posts

Joined
Thu Feb 11, 2010 10:18 pm

Post by foreverman » Thu Mar 04, 2010 5:13 am

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 ?

Newbie

Posts

Joined
Thu Feb 11, 2010 10:18 pm
Who is online

Users browsing this forum: Bing [Bot] and 8 guests