Source for file IndexController.php
Documentation is available at IndexController.php
/* -------------------------------------------------------------------------- */
/* Module : IndexController */
/* Date Vsn Author Description */
/* -------------------------------------------------------------------------- */
/* 19/01/09 1.0 S.Lindo Initial version. */
/* -------------------------------------------------------------------------- */
* Handles the actions for the basic website.
$this->view->controllerName =
$this->getRequest()->getControllerName();
$this->view->actionName =
$this->getRequest()->getActionName();
* The default action for all controllers.
* This displays the home page of the site.
$this->_helper->layout->setLayout('website');
$this->view->pageTitle=
"Welcome";
* Provides notes about this website and the skills used to create it.
$this->_helper->layout->setLayout('website');
$this->view->pageTitle=
"About this website";
* Retrieves and displays all prices for each property
$this->_helper->layout->setLayout('website');
$this->view->pageTitle=
"Our Prices";
$client_id =
$session->get('client_id');
// Get property and accommodation for this client
$allclientProperty =
$clientProperty->getAll($client_id);
$this->view->accommodation =
Array();
foreach ($allclientProperty as $propertyArray =>
$property)
$this->view->accommodation[] =
$property["accommodation"];
$this->_helper->layout->setLayout('website');
$this->view->pageTitle=
"Site Map";
* Arranges the images into an array ready for display.
$this->_helper->layout->setLayout('website');
$this->view->pageTitle=
"Gallery";
$this->view->images=
array();
$this->view->images[] =
"Hearth at Christmas.jpg";
$this->view->images[] =
"Lounge.jpg";
$this->view->images[] =
"Bedroom - four poster.jpg";
$this->view->images[] =
"Bedroom - with view.jpg";
$this->view->images[] =
"Bathroom 1.jpg";
$this->view->images[] =
"Bathroom 2.jpg";
Documentation generated on Fri, 27 Mar 2009 13:48:36 +0000 by phpDocumentor 1.4.1