php - How to I can access the URL for different subdomain in yii? -
php - How to I can access the URL for different subdomain in yii? -
i'm new yii framework, , have problem in accessing url module/controler/action. want url http://module/hostname/controller in web application. below code controller :
return cmap::mergearray( require(dirname(__file__) . '/main.php'), array( 'components' => array( 'urlmanager' => array( 'urlformat' => 'path', 'showscriptname' => false, 'rules' => array( 'selengkapnya/<title>/<node:\w+>' => 'selengkapnya/index/node/<node>', 'blog/<title>/<node:\w+>' => 'blog/view/node/<node>', // 'blog.eproc.dev'=>'blog/', //url manager url http://<module>/<hostname/<controller> 'http://<module:\w+>.eproc2014.dev' => '<module>/default', 'http://<module:\w+>.eproc2014.dev/<controller:\w+>' => '<module>/<controller>', 'http://<module:\w+>.eproc2014.dev/<controller:\w+>/<action:\w+>' => '<module>/<controller>/<action>', 'http://<module:\w+>.eproc2014.dev/<controller:\w+>/<action:\w+>/<id:\d+>' => '<module>/<controller>/<action>', ), ), ) ) );
i have read yii guide parameterizing host route, , when i'm trying access url homecoming xampp localhost page, when seek laptop, url works same config mine. want inquire there can help me, why can't url in laptop..??
i appreciate it, if can help me solve this. thanks
php yii
Comments
Post a Comment