10389 Posts in 2200 Topics by 1712 members
| Go to End | ||
| Author | Topic: | 2140 Views |
-
Re: Create New Form

12 January 2011 at 6:31pm Last edited: 12 January 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.
-
Re: Create New Form

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
| 2140 Views | ||
| Go to Top |

