public static function set_layout($layout = NULL) { self::$_layout = $layout; }
* * INCLUDES * * ==============================================*/ require 'Slim/Slim.php'; require 'views/index.php'; // End INCLUDES /* == * * * BASE VIEW * * Call it a design pattern for simple apps. * * ==============================================*/ // view init $index_view = new Index_View(); // set base layout $index_view->set_layout('base.html'); // End BASE VIEW /* == * * * SLIM INIT * * ==============================================*/ $app = new Slim(array('mode' => 'dev', 'templates.path' => 'templates', 'view' => $index_view, 'cookies.secret_key' => 'r+hhiXlmC4NvsQpq/jaZPK6h+sornz0LC3cbdJNj', 'cookies.cipher' => MCRYPT_RIJNDAEL_256, 'cookies.cipher_mode' => MCRYPT_MODE_CBC, 'cookies.secure' => false)); // set name //$app->setName('reviewApp'); // End SLIM INIT /* == * * * CONFIGS