Wiki

Articles in category "tips", sorted by viewsX
Displaying 61-70 of 148 result(s).

Using MBMenu and Rights to automatically create menu item for your modules

Created 3 years ago by dinhtrungTips2 comments – viewed 12,415 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

Using events with CAction classes

Created 3 years ago by Antonio RamirezTips0 comments – viewed 11,962 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

CJuiTabs Content

Created 2 years ago by mbalaTips3 comments – viewed 11,828 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Managing constants easily

Created 3 years ago by briiC.lvTips4 comments – viewed 11,776 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.

How to ensure unicity to url

Created 3 years ago by zaccariaTips3 comments – viewed 11,316 times – ( +14 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,195 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Adding a link to a CDataColumn

Created 2 years ago by le_topTips6 comments – viewed 10,890 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 2 years ago by Xgamer99Tips3 comments – viewed 10,683 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.

ChromePHP for Yii

Created 4 years ago by imeheszTips0 comments – viewed 10,488 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

How to change the confirmation message on admingridview button and call a ajax..Dynamic

Created about a year ago by Ankit ModiTips0 comments – viewed 10,404 times – ( +3 ) – version 1.1
Hi Friends,