Configuring Sitecontroller

greetings all

I have read the manual apparently am missing some valid details-after hitting my head for so long, i figured perhaps someone out there has a handy solution. My problem simply is getting my application to authenticate users before access to any page including the home page. i followed larry’s tutorial and read the documentation so i realise i need to setup a logincontroller and a view /login/index.php. so i copied all the codes from sitecontroller minus references to contact and about to login. added ‘defaultController’ =>‘login’; in config/main but its not working except errors-

i figure i wont need to make so many changes to get my application to start firing from login. heres my code:

<?php

class LoginController extends SiteController

{

public &#036;layout='/layouts/column1';





public function getPageTitle()


{


	if(&#036;this-&gt;action-&gt;id==='index')


		return 'Web-based pension pay system';


	else


		return ''.ucfirst(&#036;this-&gt;action-&gt;id).' Pensioner';


}





public function actionIndex()


{


	&#036;this-&gt;render('index');


}





public function actionError()


{


    if(&#036;error=Yii::app()-&gt;errorHandler-&gt;error)


    {


    	if(Yii::app()-&gt;request-&gt;isAjaxRequest)


    		echo &#036;error['message'];


    	else


        	&#036;this-&gt;render('error', &#036;error);


    }


}





/**


 * Displays the login page


 */

public function actionLogin()

{


	&#036;model=new LoginForm;





	// if it is ajax validation request


	if(isset(&#036;_POST['ajax']) &amp;&amp; &#036;_POST['ajax']==='login-form')


	{


		echo CActiveForm::validate(&#036;model);


		Yii::app()-&gt;end();


	}





	// collect user input data


	if(isset(&#036;_POST['LoginForm']))


	{


		&#036;model-&gt;attributes=&#036;_POST['LoginForm'];


		// validate user input and redirect to the previous page if valid


		if(&#036;model-&gt;validate() &amp;&amp; &#036;model-&gt;login())


			&#036;this-&gt;redirect(Yii::app()-&gt;user-&gt;returnUrl);


	}


	// display the login form


	&#036;this-&gt;render('login',array('model'=&gt;&#036;model));


}





/**


 * Logs out the current user and redirect to homepage.


 */


public function actionLogout()


{


	Yii::app()-&gt;user-&gt;logout(false);


	&#036;this-&gt;redirect(Yii::app()-&gt;createUrl('/login/index'));


}

} and heres my views

<?php

/* @var $this SiteController */

/* @var $model LoginForm */

/* @var $form CActiveForm */

$this->pageTitle=Yii::app()->name . ’ - Login’;

$this->breadcrumbs=array(

'Login',

);

?>

<h1>Login</h1>

<p>Please fill out the following form with your login credentials:</p>

<div class="form">

<?php $form=$this->beginWidget(‘CActiveForm’, array(

'id'=&gt;'login-form',


'enableClientValidation'=&gt;true,


'clientOptions'=&gt;array(


	'validateOnSubmit'=&gt;true,


),

)); ?>

&lt;p class=&quot;note&quot;&gt;Fields with &lt;span class=&quot;required&quot;&gt;*&lt;/span&gt; are required.&lt;/p&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'username'); ?&gt;


	&lt;?php echo &#036;form-&gt;textField(&#036;model,'username'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'username'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row&quot;&gt;


	&lt;?php echo &#036;form-&gt;labelEx(&#036;model,'password'); ?&gt;


	&lt;?php echo &#036;form-&gt;passwordField(&#036;model,'password'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'password'); ?&gt;


	&lt;p class=&quot;hint&quot;&gt;


		Hint: You may login with &lt;kbd&gt;demo&lt;/kbd&gt;/&lt;kbd&gt;demo&lt;/kbd&gt; or &lt;kbd&gt;admin&lt;/kbd&gt;/&lt;kbd&gt;admin&lt;/kbd&gt;.


	&lt;/p&gt;


&lt;/div&gt;





&lt;div class=&quot;row rememberMe&quot;&gt;


	&lt;?php echo &#036;form-&gt;checkBox(&#036;model,'rememberMe'); ?&gt;


	&lt;?php echo &#036;form-&gt;label(&#036;model,'rememberMe'); ?&gt;


	&lt;?php echo &#036;form-&gt;error(&#036;model,'rememberMe'); ?&gt;


&lt;/div&gt;





&lt;div class=&quot;row buttons&quot;&gt;


	&lt;?php echo CHtml::submitButton('Login'); ?&gt;


&lt;/div&gt;

<?php $this->endWidget(); ?>

</div><!-- form -->

and the error

include(SiteController.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory

Will appreciate some help

[color="#006400"]/* moved from Feature Requests */[/color]