Articles in category "tips", sorted by date (updated)X
Displaying 81-90 of 149 result(s).

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Updated 2 years ago by robregonmTips1 comment – viewed 14,019 times – ( +7 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

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

Updated 2 years ago by Maurizio Domba CerinTips3 comments – viewed 11,545 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.

The complete beginner's study guide for the Yii Framework

Updated 2 years ago by Rodrigo CoelhoTips2 comments – viewed 62,947 times – ( +21 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

Avoiding duplicate script download when using Ajax calls to render different Views

Updated 2 years ago by Antonio RamirezTips6 comments – viewed 20,649 times – ( +13 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

Setting static modules' properties in config

Updated 2 years ago by Alexander PalamarchukTips0 comments – viewed 6,609 times – ( +2 / -2 ) – version 1.1
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

[pt-br] O guia de estudos do Yii para iniciantes

Updated 3 years ago by Rodrigo CoelhoTips0 comments – viewed 7,100 times – ( +1 ) – version 1.1
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

Custom Archive in Blog system

Updated 3 years ago by nirmalrokaTips0 comments – viewed 4,890 times – ( +2 ) – version 1.1
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

Customize CGridView columns directly in your view

Updated 3 years ago by clapasTips4 comments – viewed 26,148 times – ( +3 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Yii behind a reverse proxy, SSL support and correct IP logging

Updated 3 years ago by mrkmgTips0 comments – viewed 5,178 times – version 1.1
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

How to filter CGridView with From Date and To Date datepicker

Updated 3 years ago by kiran sharmaTips16 comments – viewed 39,293 times – ( +17 / -4 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.