Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserPage_Controller extends Page_Controller{
- static $allowed_actions = array('my_method');
- public function my_method($request)
- {
- return $this->customise(array(
- 'form' => new Form_MyForm($this, __FUNCTION__)
- ))->renderWith(array('MyFormPage', 'Page'));
- }
- public function doProcessForm($request, $form) {
- die(var_export($request,true));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement