Advertisement
gareth126

still wrong

Nov 16th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2.  
  3. class UsersController extends Zend_Controller_Action
  4. {
  5.  
  6.     public function init()
  7.     {
  8.         /* Initialize action controller here */
  9.     }
  10.  
  11.     public function indexAction()
  12.     {
  13.         // action body
  14.     }
  15.  
  16.     public function frankAction()
  17.     {
  18.         // action body
  19.     }
  20.    
  21.     public function viewAction()
  22.     {
  23.         $this->render('user');
  24.     }
  25.    
  26.     //create the function to handle possible usernames that dont exist
  27.     public function __call($method, $arguments)
  28.     {
  29.         //cant get this to work
  30.         $this->view->user = $method;
  31.     }
  32. }
  33.  
  34.  
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement