hi, i have problem with url seo with yii 1.1
i create this link
<?php echo CHtml::link('Societa',array('societa/view','name'=>$name='synapse srl'),array('class'=>'society'));?
>
the action VIEW have variable “name” and it’s ok.
but create this link http://www.miosito/societa/view.html?name=synapse+srl
i would http://www.miosito/societa/synapse-srl
i have setting url manager…, but not result
'<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
my action is
public function actionView($name)
{
$model=new Societa('societa');// load search
$model->unsetAttributes(); // clear any default values
if(isset($_GET['Societa']))
$model->attributes=$_GET['Societa'];
$_GET[$name];
$gruppi = $name;
$dataProvider = $model->societa($gruppi);
$this->render('view', array('dataProvider' => $dataProvider,'model'=> $model));
}