예제 #1
0
파일: index.php 프로젝트: nerdfiles/slim_bp
 public static function set_layout($layout = NULL)
 {
     self::$_layout = $layout;
 }
예제 #2
0
파일: index.php 프로젝트: nerdfiles/slim_bp
 *
 * 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