view.php fatal error
Permalink
I was trying to implement a mouse-over navigation, and I think something went wrong. All of these errors appear on my view.php page:
http://pastebin.com/Ujh2JD6R
When I try to view my cart in a new window, this is the error:
"Fatal error: Call to a member function generateNav() on a non-object ... on line 2"
When I try to checkout, I can still see the page, but the error I get is:
"Warning: Invalid argument supplied for foreach() ... on line 22"
Any help would be really appreciated.
Merci.
edit: hmm...looks like it could be something higher up? With the $controller?
edit #2: if anyone can still give me some suggestions for the future, that would be great. For now, though, I realized that I was using the nav info from codeblog.ch, so I actually didn't need all that PHP in my view.php file. Deleted it, added the nav block to the HTML and everything is fine.
http://pastebin.com/Ujh2JD6R
When I try to view my cart in a new window, this is the error:
"Fatal error: Call to a member function generateNav() on a non-object ... on line 2"
When I try to checkout, I can still see the page, but the error I get is:
"Warning: Invalid argument supplied for foreach() ... on line 22"
Any help would be really appreciated.
Merci.
edit: hmm...looks like it could be something higher up? With the $controller?
edit #2: if anyone can still give me some suggestions for the future, that would be great. For now, though, I realized that I was using the nav info from codeblog.ch, so I actually didn't need all that PHP in my view.php file. Deleted it, added the nav block to the HTML and everything is fine.