When I fill the fields in the form generation mode I get the following The form has been generated successfully.
You may add the following code in an appropriate controller class to invoke the view:
Kindly assist me with controller class am i supposed to add this code to?
<?php
public function actionLogon()
{
$model=new LoginForm('register');
// uncomment the following code to enable ajax-based validation
/*
if(isset($_POST['ajax']) && $_POST['ajax']==='login-form-logon-form')
{
echo CActiveForm::validate($model);
Yii::app()->end();
}
*/
if(isset($_POST['LoginForm']))
{
$model->attributes=$_POST['LoginForm'];
if($model->validate())
{
// form inputs are valid, do something here
return;
}
}
$this->render('logon',array('model'=>$model));
}