I am using routing to get Signup action via Routing. The Route URL can be
1- username/signup i.e. johny/signup
2- /signup
But the problem is in action it is not loading the view. It generates an error
"CException
Controller cannot find the requested view "error".
Here is my config URL MANAGER
'urlManager'=>array(
'showScriptName' => false,
'urlFormat'=>'path',
'rules'=>array(
'gii' => 'gii',
'<username:[a-z0-9]>/signup' => 'users/Signup',
'/signup' => 'users/Signup',
)
Here is my Signup Action in UsersController
class UsersController extends Controller
{
public function actionSignUp($affusername=null)
{
'IN SINGUP ACTION | affiliate : '.$affusername;exit;
$this->render('signup',array('model'=>$model));
}
}
When action is called , it displays parameter , but generate error while loading view.
Please guide me how i can solve it.