Advertisement
Guest User

Untitled

a guest
Apr 12th, 2012
85
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 ClubDescriptionController extends Zend_Controller_Action
  4. {
  5.  
  6.     public function init()
  7.     {
  8.         /* Initialize action controller here */
  9.     }
  10.  
  11.     public function indexAction()
  12.     {
  13.        
  14.     }
  15.    
  16.     public function displayAction()
  17.    {
  18.        //get id param from index.phtml (view)
  19.        $id = $this->getRequest()->getParam('id');
  20.        //get model and query by $id
  21.        $clubs = new Application_Model_DbTable_Clubs();
  22.        $club = $clubs->getClub($id);
  23.        //assign data from model to view
  24.        $this->view->club = $club;
  25.  
  26.     }
  27.  
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement