Creating Dynamic page in web3cms application

Hello i am newbie to yii framework. Please anyone guide me to create dynamic web pages in web3cms application of yii and what is the procedure.

In web3cms i have created customers page to insert customer information.if i place the following code.

<?php $this->setPageLabel(’’); ?>

<?php MLayout::hideSidebars(); ?>

<?php $this->widget(‘application.components.WContentHeader’,array(

'label'=&gt;'Welcome, '.Yii::app()-&gt;user-&gt;name.'&#33;',



)); ?>

<div class="yiiForm">

<?php echo CHtml::beginForm(); ?>

<?php echo CHtml::errorSummary($customer); ?>

<div class="simple">

<?php echo CHtml::activeLabel($customer,‘username’); ?>

<?php echo CHtml::activeTextField($customer,‘username’); ?>


<div class="simple">

<?php echo CHtml::activeLabel($customer,‘password’); ?>

<?php echo CHtml::activePasswordField($customer,‘password’);



<div class="action">

<?php echo CHtml::activeCheckBox($customer,‘rememberMe’); ?>

Remember me next time<br/>

<?php echo CHtml::submitButton(‘Login’); ?>


<?php echo CHtml::endForm(); ?>

</div><!-- yiiForm -->

i got some fatal error…

Fatal error: Call to a member function getErrors() on a non-object in C:\xampp\htdocs\webapp\framework\web\helpers\CHtml.php on line 1375

please anyone guide me for this problem…

You probably haven’t passed $costumer to your view. Please check your rendering command in your action.