I find my error it wasnt error YII. I must be write rewrite rules in lighttpd configurations. Here explained very well. Thanks!
Cant get requested GET param in yii
Question
im trying create url like this: www.domain.com/auth?join=social
in yii.
This is my config:
'urlManager' => array(
'urlFormat' => 'path',
'rules' => array(
'<action:(auth)>' => 'site/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
'showScriptName'=>false,
),
when i calling this: www.domain.com/auth?join=social
page i cant get param: join
. But when i calling www.domain.com/index.php/auth?join=social
i can get.
im getting param with this code: $social = Yii::app()->request->getParam('join');
. Where is my error?
Solution 2
OTHER TIPS
$social = Yii::app()->request->getParam('social');
change it with
$social = Yii::app()->request->getParam('join');
try
$_REQUEST['join']
in your action.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow