Form Tag not generating using beginForm

I think i’m going to ask a very stupid question, but couldn’t find ways… :(

I’ve generated model view and controllers using CRUD

on admin page I need to collect data from Text field and need to submit that.

After the search form I’ve added the line below




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


<div class="row">

    <?php echo CHtml::textField('delimeter', ','); ?>

</div>

<div class="row button">

    <?php echo CHtml::submitButton(

            'Easy email format'            

           ); 

    ?>

</div>

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



It seems it’s not working. I’ve checked the source and found it is not generating the <form> tag.

Am I missing something?

Any help appreciated.

Thanks

You missed the "echo"




echo CHtml::beginForm();



Thanks Gustavo,

Feeling myself a dumb. This is why people say don’t code while you feel sleepy… :expressionless: