Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ClubDescriptionController extends Zend_Controller_Action
- {
- public function init()
- {
- /* Initialize action controller here */
- }
- public function indexAction()
- {
- }
- public function displayAction()
- {
- //get id param from index.phtml (view)
- $id = $this->getRequest()->getParam('id');
- //get model and query by $id
- $clubs = new Application_Model_DbTable_Clubs();
- $club = $clubs->getClub($id);
- //assign data from model to view
- $this->view->club = $club;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement