In my view I have a link which is calling a function in Controller. The function in controller is making a pdf. It is supposed to make pdf of only $model->id. But I am unable to send the value of $model->id into controller via my link.
View
I am trying to save values from dropdown list into my table column role.
form
getRoleOptions(),
array('empty' => '---select role---'));
?>
model
public function…
So I'm a Yii Newbie, and I'm putting together a website with a friend. I've got the basics down, but I'm running into an error. I want to have a page with two drop-down menus. The second drop down menu's data is based on information from the first…
I start learning yii and try to make some changes in others' code. I want to add the submitButton function into other button (Complete submission button)
if ($page == $pageCount) {
echo CHtml::submitButton("Save",…
I have this:
CHtml::textField("Atava[admin_panel][0][u_type]", '', array('size'=>60,'maxlength'=>128,'encode'=>false,'placeholder'=>'Placeholder content') );
My problem is:
when I add text to the text field, the placeholder text disappears (as it…