Wiki

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

Ajax update

Created 4 years ago by zaccariaTips2 comments – viewed 44,205 times – ( +21 / -2 ) – version 1.1
Often happens to have the need of change a part of the page with ajax.
tags: AJAX

Code style

Created 4 years ago by zaccariaTips2 comments – viewed 15,026 times – ( +29 ) – version 1.1
Often, when writing widgets or editing Yii code, it is unclear whether or not the code is following the MVC pattern.
tags: mvc

CGridView customized CCheckBoxColumn

Created about a year ago by chandranTips2 comments – viewed 8,038 times – ( +5 ) – version 1.1
Hi friends,

Quick Tip about Pagination Params

Created 4 years ago by Antonio RamirezTips2 comments – viewed 26,515 times – ( +6 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination

mysql performance tip

Created 2 years ago by sirin kTips2 comments – viewed 8,221 times – ( +2 / -1 ) – version 1.1
When we are doing an insert of huge no.of rows into an SQL table ,Normally we will try to write separate insert quries this may lead us to a long duration of execution time and we can increase the speed of executing SQL quries by adding all the rows into a single insert query.
tags: mysql

Putting Function To Be Called In View

Created 4 years ago by junxiongTips2 comments – viewed 28,384 times – ( +6 / -1 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

The complete beginner's study guide for the Yii Framework

Created 2 years ago by Rodrigo CoelhoTips2 comments – viewed 59,269 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.

FORM with GET method causes repeated stacking of URL Parameters

Created about a year ago by Kartik VTips2 comments – viewed 8,225 times – ( +39 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

An easy way to display a success page using flash messages

Created 4 years ago by qiangTips2 comments – viewed 30,204 times – ( +28 ) – version 1.1
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.

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

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