tegarkurniawan

mycontroller

Jul 9th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2.  
  3. class BranchUserController extends MController
  4. {
  5. public function actionIndex()
  6. {
  7. $users = new UserDetail('search');
  8. $users->unsetAttributes();
  9.  
  10. if(isset($_GET['UserDetail']))
  11. $users->attributes =$_GET['UserDetail'];
  12.  
  13. $data =array(
  14. 'users'=>$users,
  15. 'provider'=>'$users->search()',
  16. );
  17. $this->render('index',$data);
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment