- Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
- Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
The CMenu class provides some useful features for generating menus in your web application.
Hi Friends,
So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems.
You got your CFormModel, CForm and the actual Form, right?
Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.
some times we want to show the serialNo on cgridview .
What I want to achieve:
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work
Hi friends,
Introduction
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)
Hi friends,
You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.
I recently worked on updating the content of a gridview based on the selection of a dropdown menu. I thought I should share it in the forum...
Step 1: Initialize the Bootstrap Tooltip & Popover plugins in your view layout file @web\views\layouts\main.php
. Add this to somewhere in the beginning head section (after you have loaded the Jquery using your AppAsset or something similar).