Questions tagged [yii-chtml]

CHtml is a static class that provides a collection of helper methods for creating HTML views.

CHtml is a static class that provides a collection of helper methods for creating HTML views.

52 questions
0
votes
1 answer

Send id through link - Yii

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
Femme Fatale
  • 870
  • 7
  • 27
  • 56
0
votes
1 answer

Saving data from dropdown list Yii

I am trying to save values from dropdown list into my table column role. form getRoleOptions(), array('empty' => '---select role---')); ?> model public function…
Femme Fatale
  • 870
  • 7
  • 27
  • 56
0
votes
1 answer

How to use CHtml::link(); inside "
  • " in Yii?

    I need to use CHtml::link() inside " ". Here is my existing code: $html .="
  • \n ".$menu['items'][$itemId]['label']." \n"; $html .=…
  • user3273871
    • 53
    • 1
    • 5
    0
    votes
    1 answer

    Yii Dropdown Validation constantly empty

    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…
    Jake Lites
    • 9
    • 1
    • 6
    0
    votes
    2 answers

    yii CHtml submitButtion

    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",…
    AntiGMO
    • 1,535
    • 5
    • 23
    • 38
    -1
    votes
    1 answer

    CDetailView don't show properly Chtml::link's HTML data

    i use Chtml::link in one CDetailView. array( 'label'=>'Images', 'type'=>'html', 'value'=> CHtml::link('
    Dhara
    • 1,431
    • 4
    • 29
    • 47
    -1
    votes
    1 answer

    CHtml textfield text color same as placeholder color

    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…
    Asaf Maoz
    • 675
    • 3
    • 6
    • 23
    1 2 3
    4