예제 #1
0
파일: RouterTest.php 프로젝트: arzynik/cana
 public function testRouterNotHomeFolder()
 {
     $_REQUEST['__url'] = 'nothomefolder';
     $this->ob();
     Cana::app()->buildPages();
     Cana::app()->displayPage();
     $check = $this->ob(false);
     $this->assertEquals('NOTHOME-FOLDER', $check);
 }
예제 #2
0
파일: index.php 프로젝트: arzynik/cana
<?php

/**
 * HTTP entry point
 *
 * @author	Devin Smith (www.devin-smith.com)
 * @date	2009.09.18
 *
 * This uses a caffeine engine base so we can reuse it in the future
 * reguardless of what it is.
 *
 */
error_reporting(E_ALL ^ E_NOTICE);
ini_set('display_errors', true);
require_once './app.php';
Cana::app()->displayPage();