name/define different pages/links

Hi all,
sorry for being such a novice that I really do not have a clue to which topic I should write this…

anyway, here is the story:
I am a user of opencart (MVC - model, view, controller system) and a bit modifying some templates of it with trial by error method.

I am stuck now with the following problem and desperately need some help from you guys:

  1. template has a top menu with class designed outlook and hover effect. however, a completely different class is designed if the link is active.
  2. so, I have managed to differ it by php if function in the header.tpl file under
      section, like as follows:

[code]<li<?php if($currentpage == $home) {echo " class=menu_1_active";} else {echo " class=menu_1";}?>><?php echo $text_home;?>

  • ...[/code] 3. in header.php file of controller folder, I have inserted the line: [code]$currentpage = $_SERVER['REQUEST_URI'];[/code] just before the line> [code]$this->data['title'] = $this->document->getTitle();[/code] the result is an error with message that variable $currentpage is not defined.

    if I insert the line:

    $this->data['currentpage'] = $this->$_SERVER['REQUEST_URI'];

    before the line:

    $this->data['currentpage'] = $this->$_SERVER['REQUEST_URI'];

    it gets me back with neither an error nor desired effect.

    What am I doing wrong here?

    Can anybody help with instructions how and where to name/define different pages / links in the opencart system?

    Help is extremely appreciated.

    Thank you!

  • solved ?

    http://forum.opencart.com/viewtopic.php?f=20&t=81968

    not ecactly or partially.

    to that post of mine, a guy gave me a final hint but of not great use to me.
    anyway, I will post there again soon and cc it here also.

    Sponsor our Newsletter | Privacy Policy | Terms of Service