Help: Create New Action Produce Blank Page

Hello all, this morning I’ve just created a new action (actionCetak) on my controller and view files on views folder, and i created a link on another view file. Everything looks normal, but when I clicked the link, which appears is just a blank page, as if action unable to load the view file. The actionView (Gii generated) show a normal page. Any explanations and solutions are really expected? Thanks.

The Controller :




public function actionView($id)

{

    $this->render('view',array(

        'model'=>$this->loadModel($id),

    ));

}


// The new action

public function actionCetak($id)

{

    $this->render('cetak',array(

        'model'=>$this->loadModel($id),

    ));

}


public function loadModel($id)

{

    $model=MyModel::model()->findByPk((int)$id);

    if($model===null)

        throw new CHttpException(404,'The requested page does not exist.');

    return $model;

}



New View File (cetak.php) :




<div align="center">

    <h4>SOME TITLE</h4>

    Some Text...

</div>



Possible places to chek: how you call this action, urlrules and accessrules

to check if this action is called at all… so to see if the problem is the view file or something else… just put there something like




echo "actionCetak";

die();



Ouch…sorry for my ignorance. I forget to define it (actionCetak) in access rules. Thank you very much mdomba.




array('allow', // allow authenticated user to perform 'create' and 'update' actions

    'actions'=>array('create','update','cetak'),

    'users'=>array('@'),

),