Several improvements to the page module.
[pivip.git] / project / modules / page / controllers / BundleController.php
blob462eaade96df50c6f29b8ece4ca3bdb4e0ae7b26
1 <?php
3 /**
4 * Pivip
5 * Copyright (C) 2008 Vincent Tunru
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 * @license http://www.fsf.org/licensing/licenses/info/GPLv2.html GPL v.2
21 * @category PivipModulesDefault
22 * @package Module_Page
23 * @subpackage Controllers
24 * @copyright (C) 2008 Vincent Tunru
25 * @author Vincent Tunru <email@vincentt.org>
28 /**
29 * Load bundles added to a page
31 class BundleController extends Pivip_Controller_Module_Abstract
33 /**
34 * Load the bundle that's specified by the action called
36 public function __call($name, $arguments)
38 $bundle = str_replace('Action', '', $name);
39 $params = array('bundle' => $bundle);
40 $nextRequest = new Zend_Controller_Request_Simple('common', 'index',
41 'page', $params);
42 $this->_helper->actionStack($nextRequest);
43 $this->_helper->viewRenderer->setNoRender();