rasha1489
(Rasha1489)
1
i have a multilanguage web app using yii. in the main.php, i inserted a picture
<td align="right">
<img src="images/ll.jpg" width="150" align="right">
</td>
when i put the following url in the browser: webroot/projectname the picture appears in the header
when i click to change the language the picture disappear
url: webroot/projectname/index.php/site/index?language=en
can someone help me?
Who generate the url "webroot/projectname/index.php/site/index?language=en"? Its wrong!
rasha1489
(Rasha1489)
3
i am using in the url manager the following rules:
‘urlManager’=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
with switch case in the sitecontroller if (language=‘en’){render(enindex)
where is the problem?
rasha1489
(Rasha1489)
4
it’s working, i removed the rules from the url manager
thank you, it was a url problem