I'm currently using an image in my navbar but I also want to make clicking this return to the home page.
I thought adding ,array('href' => 'imagepath.png') would work but had no luck so far and it seems to break the page!
this is the code I am…
I have a one table, the name table is 'siswa', and has primary Key 'nim' and other field 'nama','alamat','tanggal_lahir' and other.
I want to fill all fieldtext base dropdownlist in Yii framework. with my code is shown/updated with one textfield…
I have a chtml::textfield and what I need is whenever I input a value and click on the chtml::button, it should update two different models.
but I don't know how process the $_POST['id'] in the controller.
I have Settings controller like
public function actionIndex()
{
$model = new SettingsForm;
if(isset($_POST['SettingsForm'])) {
if($model->validate()) {
//
}
}
$this->render('index', array('model' =>…
I am trying to create an external URL using the CHtml::link function but it always tries to create an internal link rather than an external link..
So rather than linking to google.com, it is linking to www.mysite.com/www.google.com
Any ideas (ps i…
I am displaying form elements in my CGridView and would like datepicker, but it complains
CDataColumn and its behaviors do not have a method or closure named "widget".
I have modified DATEIN using the method described in Use a widget in a…
How can I convert the text TbButton bootstrap into CHtml::link in Yii?
below is the TbButton bootstrap code:
$this->widget('bootstrap.widgets.TbButton', array(
'label'=>'Data Protection Policy - Must Read for Consultant',
'type'=>'primary',…
I have a checkbox:
echo CHtml::checkBox("My checkbox", true, array());
How do I read its value through Yii? I know there's activeCheckBox which will link the value to a model attribute, but I don't want to create a new model class just to read a…
I have a checkboxlist using CHtml::checkBoxList and I need a checkbox with 'Select all' to select all checkboxes when it is checked. But I don't know how to do it.
Quite simply, what is the difference between using CHtml::textField or CHtml::activeTextField, as well as other Yii CHtml form inputs.
When is it appropriate to use active vs normal form inputs.
What is the best practice of using those yii CHtml::link and such others?
I'm making a button which I need to have an icon some text and responds to hover events and it must be quite wide
Is there any advantage of using CHtml over regular tag…
I have a Chtml::link like this:
echo CHtml::link('DESACTIVAR',array ('/ZfIncidencias/estado', 'id'=>$data->incidencia_id),array("class"=>"desactivar"));
This execute the action, but what I need is this:
$id_on = $data->incidencia_id;
…
i am beginner in yii .
i wanna use Chtml in view and use Cactiverecord in model for authentication but is doesn't work and show me error for correct email and pass
my view code is: login_form.php