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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Create New Form


Go to End


10 Posts   4376 Views

Avatar
Jonn

Community Member, 10 Posts

12 January 2011 at 6:31pm

Edited: 12/01/2011 6:33pm

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

Community Member, 33 Posts

23 November 2011 at 4:09am

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

Go to Top