public static function setRoutes() { // URL Routes Routes::add('/', 'apples', 'index'); Routes::add('/view/(:tofuID)/', 'apples', 'view'); Routes::add('/create/', 'apples', 'create'); Routes::add('/update/(:tofuID)/', 'apples', 'update'); Routes::add('/remove/(:tofuID)/', 'apples', 'remove'); }
* Language setting */ Lang::load('en'); /* * Routing table setting: path to pages, js, css. */ /* // More example about Routes: Routes::add(array('home' => array( 'php' => array('pages/HomePage.php', 'pages/AboutPage.php' ), 'js' => array('graph' => 'js/dummy.js',), 'css' => array('graph' => 'js/dummy.css',),), 'login' => array( 'php' => 'pages/LoginPage.php',), 'error' => array( 'php' => 'pages/ErrorPage.php',), )); */ Routes::add(array('home' => array('php' => array('pages/HomePage.php')), 'intro' => array('php' => 'pages/IntroPage.php'), 'quickstart' => array('php' => 'pages/QuickstartPage.php'), 'feature' => array('php' => 'pages/FeaturePage.php'), 'license' => array('php' => 'pages/LicensePage.php'), 'download' => array('php' => 'pages/DownloadPage.php'), 'showcase' => array('php' => 'pages/ShowcasePage.php'), 'restrict' => array('php' => 'pages/RestrictPage.php'), 'login' => array('php' => 'pages/LoginPage.php'), 'error' => array('php' => 'pages/ErrorPage.php'))); /* * Cache setting */ Configure::write(array('cache_enable' => false, 'do_not_cache' => array(), 'cache_time' => 21600), 'cache'); /* * SEO setting */ Configure::write('jquery mobile, jquery mobile mvc, jquery mobile php, jquery mobile framework', 'app_keywords'); // meta keywords Configure::write('A very lightweight PHP MVC framework utilizing jQuery Mobile', 'app_description'); // meta app description Configure::write('http://tjm.tenkana.vn', 'baseurl'); // meta app canonical url /* * Authentication setting