Page 1 of 1

Admin Menu Notice: Undefined Variable

Posted: Wed Oct 26, 2011 3:20 am
by CraDae
Hello,

I am having an issue with my admin menu, This issue applies to all subcategories and sub-subcategories of Reports as showing in the image below.

Image

All links appear as:

http://store.gamearmoury.com/admin/%3Cb ... 61%3C/b%3E

or

http://store.gamearmoury.com/admin/%3Cb ... 70%3C/b%3E

I really dont remember editing the header :-\

I'm running version 1.5.0.1

Click here to download the admin header.tpl.

If you need any other files, please let me know.

Thanks In Advance,
Craig

Re: Admin Menu Notice: Undefined Variable

Posted: Wed Oct 26, 2011 5:37 am
by Avvici
If you are getting the undefined variable error then it's simply a matter of making sure the variable in the control file is matching the name in the tpl. For example, in your control if you are calling a variable like $this->data['variable'] ="test";

In your tpl it needs to be called variable. <?php echo $variable;?> Yes, case sensitive.

Re: Admin Menu Notice: Undefined Variable

Posted: Fri Oct 28, 2011 11:44 pm
by CraDae
Where would I find this:

Code: Select all

$this->data['variable'] ="test";
What directory does it "echo" it from?

Regards,
Craig

Re: Admin Menu Notice: Undefined Variable

Posted: Fri Mar 23, 2012 1:17 pm
by Avvici
In one of the control files. OC is an MVC (model, view, control)