Post by haosmark » Sat Jan 12, 2013 5:08 am

I can't seem to figure out how to access a function that's stored in another controller file.
I have controller\tool\loc.php with a function getCoordinates()
I'm trying to load it inside controller\checkout\cart.php and it just isn't working.
I tried:
$this->loc->getCoordinates();
$this->tool_loc->getCoordinates();
$this->controller_tool_loc->getCoordinates();
$this->getCoordinates();
$this->{'controller_tool_loc'}->getCoordinates();

none of those work. How do I do something like that?

New member

Posts

Joined
Wed Oct 10, 2012 1:59 am
Who is online

Users browsing this forum: No registered users and 58 guests