I'm trying to implement a filter on an admin view using 'zii.widgets.grid.CGridView'. As the title says, the data is retrieved by a query (a quite co ...
I'm trying to implement a filter on an admin view using 'zii.widgets.grid.CGridView'. As the title says, the data is retrieved by a query (a quite co ...
I need to apply a CSS class to one CGridView's column and I'm getting a PHP notice error This is the code And this is the notice i get: If i di ...
I want to open a view by calling its action in the CJuiDialog, here is my code : so how I can pass a url for an action in this widget? ...
I have zii.widgets.grid.cgridview on admin page, and when I search some records and visit view one of them, and after return to admin page results is ...
I have the code below to display a calendar input in Yii form. The default value work on the calendar but I want to show it by default in the calen ...
I have a folowing code in my controller , I am getting error /* Property "CDbCriteria.user_id" is not defined. */ but when I am using findByAttrinu ...
In view // 'filter' => $model, /* not using this option ,so commented it */ )) In model // Do I really Need This Function // public functio ...
I have a date field in a form widget CActiveForm. The date field is a CJuiDatePicket widget. I would like to put a control so that the user can not en ...
To improve initial page loads most of the content on the page I'm creating are loaded only when required. To do this I'm using the following code via ...
In my SiteController.php In my themes/k/views/layout/main.php This error appears: Undefined variable: dataProvider2 If i do this in my main.ph ...
I have this problem with using ajax call on dialog box close function. Here's my ajax call function: Here's the dialog box code: Here's the co ...
I’m trying to apply custom styling to specific columns generated by CGridView. I need to insert inside the elements, but I can’t figure out how to do ...
This is my category table my yii grid view shows parent category id instead of name. how can i display the parent category name in grid view. wh ...
Has anyone tryed to set a CMenu link to open in a new window? Mine, opens the new window, as blank page and still goes to the requested url ...
The widget runs and looks fine in the page. However, when I go drag and drop, many <li class="ui-state-default ui-sortable-placeholder" style="vi ...
I have the following directory structure: gridView.php is a partial view that I wish to use in index.php under site. If I copy gridView.php to site ...
I built a custom function in my model and return the raw data: $campModel = $model->function.. I then use those rows in CArrayDataProvider: ...
I'm trying to use my model with a replacement for the search (custom search function): the result will be the attributes for the model + the other ...
This is my UserController, index Action, zii generated file , from my model User: And this is my view file of the above action: These are all de ...
I have a table in mysql that I want to display with the CGridView widget. Here is my code thus far: My Controller file (snipped of course): My Vie ...