123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use KIF\Debug\Debug;
- use KIF\String\ZhuYin;
- use KIF\String\String;
- use KIF\Page\Page;
- use KIF\Route;
- use KIF\Core\Request;
- use KIF\Core\Config;
- define('KIF_PATH', '/export/manager/v2/v2_KIF');
- require_once KIF_PATH . '/init.php';
- Config::load(dirname(dirname(__FILE__)) . DS . 'config/config.inc.php');
- Route::getInstance()->rewrite();
- Request::getInstance()->dispatch();
- //echo String::jointUrl(Request::getInstance()->url(), array('page'=>'{page}'));exit;
- echo "<br />";
- $cur_page = Request::getInstance()->varGetInt('page', 1);
- $objPage = new Page(17, Request::getInstance()->pageUrlTpl(), $cur_page, 1);
- echo $objPage->html();
- Debug::time('zy new前', 'aa');
- $objZhuYin = new ZhuYin();
- Debug::time('zy new后', 'aa');
- $result = $objZhuYin->conversion('负离子去屑止痒洗发 aa 露 ', false, false, true);
- Debug::time('zy conversion后', 'aa');
- print_r($result);
- echo "<br />";
- echo preg_replace('#\s+#', '-', trim($result[0]));
- /*
- echo Route::getInstance()->reverse(array(
- 'c' => 'proList',
- 'a' => 'default',
- 'useType' => '2',
- 'priceRange' => '5',
- 'effectId' => '10000',
- 'subname' => 'mianbu/mianmo',
- 'brandId' => '3959992',
- 'page' => '1',
- ));
- */
|