當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BasicAuth::setSource方法代碼示例

本文整理匯總了PHP中BasicAuth::setSource方法的典型用法代碼示例。如果您正苦於以下問題:PHP BasicAuth::setSource方法的具體用法?PHP BasicAuth::setSource怎麽用?PHP BasicAuth::setSource使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BasicAuth的用法示例。


在下文中一共展示了BasicAuth::setSource方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

// 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
* Option 1: Set params with your table and fields which are used for validating
*     - Example: BasicAuth::setSource('users', 'username', 'password');
* Option 2: Set params with your fixed account
*     - Example: BasicAuth::setSource('NO_SQL_AUTH', 'admin', 'admin');
*/
BasicAuth::setSource('NO_SQL_AUTH', 'admin', 'admin');
開發者ID:nguyennhuanh,項目名稱:tjm-mvc,代碼行數:30,代碼來源:bootstrap.php


注:本文中的BasicAuth::setSource方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。