I’m new to yii programming. I can’t find a way for my CHtml::submitButton to call a function located in the controller.php file. Here’s a sample of the code of my submitbutton.
I hope you can help me.
Thanks in advance…
<?php echo CHtml::submitButton(‘Save’, array(‘class’=>‘button’)); ?>
Use submit form as,
<?php $form=$this->beginWidget('CActiveForm', array(
'action'=>array('abc/def'), // where abc is controller and def is action
I still get an error message after I clicked the Save button:
Unable to resolve the request "CreditorDebtorController/actionCreate".
'action' => array('CreditorDebtorController/actionCreate'),
'action' => array('creditorDebtor/create'),
Its working thank you very much.