Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Create New Form


Reply

10 Posts   2788 Views

Avatar
Jonn

12 January 2011 at 6:31pm (Last edited: 12 January 2011 6:33pm), Community Member, 10 Posts

I'm still trying to get this working, because the Product is a dataobject and the pages are created using renderWith() it looks like the product page uses category controller. I tried creating a controller on the dataobject:

class Product extends DataObject
{
...
}
class Product_Controller extends Controller {
function QuoteForm(){
$form = new QuoteForm($this, "QuoteForm");
return $form;
}
}

But then the form stops appearing all together.

Avatar
James Bolitho

23 November 2011 at 4:09am Community Member, 33 Posts

Hi Jonn,

Did you ever figure this out? I am facing almost an identical problem and can't seem to figure it out. I have placed my form in the CategoryPage_Controller though which is the only difference in my code I think but it is still coming out with the same error "popCurrent called on $this->class controller, but it wasn't at the top of the stack".

Any help would be welcomed...

Jim