<?php /** * * @package Bookpro * @author Ngo Van Quan * @link http://joombooking.com * @copyright Copyright (C) 2011 - 2012 Ngo Van Quan * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id$ **/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); AImporter::model('transports'); Aimporter::helper('math'); class BookproViewRoute extends JViewLegacy { protected $item; protected $form; public function display($tpl = null) { $this->item = $this->get('Item'); $this->form = $this->get('Form'); $model = new BookProModelTransports(); $this->dest = $model->getGroupAirportList(); if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }