Example #1
0
 /**
  * Render a file and return the content
  *
  * @param  string $filename
  * @return string
  */
 protected function _renderFile($filename)
 {
     $loader = $this->_front->getLoader();
     ob_start();
     $tempname = $loader->prepareLoad($filename);
     include $tempname;
     $loader->cleanupLoad($tempname);
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
Example #2
0
 * to mail@dasprids.de so I can send you a copy immediately.
 *
 * @category   Jijawi
 * @copyright  Copyright (c) 2009 Ben Scholzen "DASPRiD" (http://www.dasprids.de)
 * @license    http://jijawi.org/license/new-bsd    New BSD License
 * @version    $Id: bootstrap.php 16 2009-07-18 18:08:43Z dasprid $
 */
/**
 * Bootstrap of Jijawi
 * 
 * Take care when editing this file, as the make process requires the markers
 * of both the bootstrap code itself and the data. The bootstrap markers have
 * to be each on single lines above and below the bootstrap code, while the data
 * markers have to be on a single line, not surounded by any code, as the
 * complete line will be replaced by the data. 
 * 
 * @category   Jijawi
 * @package    Jijawi
 * @copyright  Copyright (c) 2009 Ben Scholzen "DASPRiD" (http://www.dasprids.de)
 * @license    http://jijawi.org/license/new-bsd    New BSD License 
 */
/**
 * @see Jijawi_Loader
 */
require_once 'Jijawi/Loader.php';
/* -----BEGIN BOOTSTRAP----- */
$loader = new Jijawi_Loader(dirname(__FILE__), true);
$loader->load('Jijawi/Front.php');
$front = new Jijawi_Front($loader);
$front->dispatch();
/* -----END BOOTSTRAP----- */