Example #1
0
/**
 * Short description for file
 *
 * Long description for file (if any)...
 *
 * @category      Framework
 * @package       Pfw
 * @author        Sean Sitter <*****@*****.**>
 * @copyright     2010 The Picnic PHP Framework
 * @license       http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @link          http://www.picnicphp.com
 * @since         0.10
 */
function smarty_modifier_objp($obj)
{
    return objp($obj);
}
Example #2
0
$front = Pfw_Controller_Front::getInstance();
$front->getRouter()->setRoutes($_pfw_routes)->setModules($_pfw_modules);
$four_oh_four = false;
try {
    $front->dispatch();
} catch (Pfw_Exception_System $e) {
    $e->emitLog();
    if ($_ENVIRONMENT == "development") {
        objp($e);
        exit;
    }
    $four_oh_four = true;
} catch (Pfw_Exception_User $e) {
    $e->emitLog();
    if ($_ENVIRONMENT == "development") {
        objp($e);
        exit;
    }
    $four_oh_four = true;
} catch (Exception $e) {
    if ($_ENVIRONMENT == "development") {
        objp($e);
        exit;
    }
    $four_oh_four = true;
}
if ($four_oh_four) {
    Pfw_Loader::loadController('ErrorController');
    $c = new ErrorController();
    $c->fourohfourAction();
}
Example #3
0
 public static function initFromCache($cache_plugins)
 {
     foreach ($cache_plugins as $phase => $plugins) {
         foreach ($plugins as $plugin) {
             $class = $plugin['class'];
             Pfw_Loader::loadClass($class);
             $inst = new $class();
             $i =& $inst;
             array_push(self::$plugins[$phase], array('inst' => $i, 'name' => $plugin['name']));
         }
     }
     objp(self::$plugins);
     return true;
 }