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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -