Post by ckonig » Wed Jul 27, 2011 9:08 pm

Hello
When trying to add my own AJAX callback function to the catalog/product/product controller, I get the following error:

Code: Select all

atal error: Call to a member function getFile() on a non-object in /home/xxx/domains/xxx/public_html/system/engine/front.php on line 34
I am seriously confused because it worked before several times.
when i enter the url to the product controller manually, I also get this error.
But for all other public functions it works fine!
What am I missing?
This is the function I added to the controller (prototype of course)

Code: Select all

 public function shipping(){
        return 'test';
    }

User avatar
Active Member

Posts

Joined
Wed Feb 16, 2011 4:26 pm
Location - Netherlands

Post by ckonig » Wed Jul 27, 2011 9:14 pm

stupid me....
replace

Code: Select all

return 'test';
with

Code: Select all

echo 'test';
and everything is fine

User avatar
Active Member

Posts

Joined
Wed Feb 16, 2011 4:26 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 29 guests