Current File : /home/caballoscriollos/public_html/phplist/lists/admin/plugins/CommonPlugin/BaseController.php
<?php
/**
* CommonPlugin for phplist
*
* This file is a part of CommonPlugin.
*
* @category phplist
* @package CommonPlugin
* @author Duncan Cameron
* @copyright 2011-2012 Duncan Cameron
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3
*/
/**
* This is the base class for Controller.
* It provides the common functionality shared by controllers that need to render views.
*
*/
abstract class CommonPlugin_BaseController
{
/*
* Public methods
*/
public function __construct()
{
}
public function render($_template, array $_params = array())
{
/*
* Capture the rendering of the template
*/
extract($_params);
ob_start();
try {
include $_template;
} catch (Exception $e) {
ob_end_clean();
throw $e;
}
return ob_get_clean();
}
}
Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat