hi, i have a urgent problem right now. I can not access several link in my site. The problem is yii can’t find some url which the view use more than one word with underscore as separator.
I’ve been trying solve this problem about 10 hours. It runs well on my localhost. It gets error. This my .htaccess code:
Options +FollowSymLinks
IndexIgnore */*
<IfModule mod_rewrite.c>
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php
</IfModule>
Looking at your site none of your urls are friendly urls. Are you sure that you have removed the comments around the urlManager config in your main.php?
oops, sorry now i have already change. this is my code for UserManagerController.php
<?php
class UserManagerController extends Controller
{
public function actionIndex()
{
$this->render('/user_manager/index');
}
public function actionView()
{
$this->render('/user_manager/view');
}
}
?>
class UserManagerController extends Controller
{
public function actionIndex()
{
$this->render('index');
}
public function actionView()
{
$this->render('view');
}
}
Don’t rename the view folder and rather leave it as it was generated by the gii/yiic. What you are trying to achieve should only be achieved via the urlManager config. Can you please post the name of the view folder for this controller