Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. class UserPage_Controller  extends Page_Controller{
  2. static $allowed_actions = array('my_method');
  3. public function my_method($request)
  4. {
  5. return $this->customise(array(
  6.                 'form' => new Form_MyForm($this, __FUNCTION__)
  7.             ))->renderWith(array('MyFormPage', 'Page'));
  8. }
  9.  
  10. public function doProcessForm($request, $form) {
  11.         die(var_export($request,true));
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement