Hello
Im a new bie,
I want a page where there is a scope to our personalize queries such as "select * from database_table;" .
So I created a page where there is a textArea.
<div class="row">
<?php echo $form->label($model,'query'); ?>
<?php echo $form->textArea($model,'query',array('size'=>200,'maxlength'=>500)); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton('Query'); ?>
</div>
In Controller:
Here where I am facing problem. Im reading the variable thru $model->query;
I cannot use findBySql($model->query). I should use dbcriteria. Can anyone give an example how to do it?
Is there any other way possible to solve this challenge?
Thnks