Wiki

Articles in category "tips", sorted by viewsX
Displaying 31-40 of 103 result(s).

An easy way to display a success page using flash messages

Created 2 years ago by qiangTips2 comments – viewed 14,378 times – ( +23 )
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

Change buttons on our CGridView extending yii

Created about a year ago by sensorarioTips4 comments – viewed 14,261 times – ( +9 )
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Real Time Logging

Created 2 years ago by lucifuriousTips1 comment – viewed 12,873 times – ( +12 )
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 2 years ago by a110yTips7 comments – viewed 12,284 times – ( +2 )
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Yii实战中8个必备常用的扩展,模块和

Created 2 years ago by Darwin WenTips2 comments – viewed 11,893 times – ( +2 / -3 )
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

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

Created about a year ago by Antonio RamirezTips4 comments – viewed 11,424 times – ( +10 )
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

Troubleshooting Rights Extension

Created about a year ago by junxiongTips4 comments – viewed 10,922 times – ( +4 )
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

Code style

Created 2 years ago by zaccariaTips2 comments – viewed 10,580 times – ( +28 )
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

Using counters with ActiveRecord

Created about a year ago by davi_alexandreTips8 comments – viewed 10,523 times – ( +9 / -1 )
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).

Send asset folder path to a javascript of a widget

Created about a year ago by sensorarioTips4 comments – viewed 10,483 times – ( +4 )
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this: