Wiki

Sorted by commentsX
Displaying 421-430 of 751 result(s).

Quick Tip about Pagination Params

Created 4 years ago by Antonio RamirezTips2 comments – viewed 26,506 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,216 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,366 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

Simple example for language translation

Created about a year ago by RKAHow-tos2 comments – viewed 13,425 times – ( +1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 2 years ago by BoazHow-tos2 comments – viewed 10,379 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

How to hide index.php on Microsoft Windows Server with IIS7

Created 2 years ago by GiulianoHow-tos2 comments – viewed 14,506 times – ( +9 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

Creating Yii applications with composer

Created 2 years ago by schmunkTutorials2 comments – viewed 53,700 times – ( +30 ) – version 1.1
Creating Yii applications with composer

The complete beginner's study guide for the Yii Framework

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

Overcoming removal of client helpers (e.g. ajaxLink) and ClientScript in Yii 2.0

Created about a year ago by Kartik VFAQs2 comments – viewed 11,843 times – ( +39 / -4 ) – version 2.0
With Yii Framework 2.0, one of the many changes, that Yii 1.x developers will face is removal of all client helpers and revamp of the CClientScript functionality. For example no more CHtml::ajaxLink or Html::ajaxLink. How do you cater to such requirements in Yii 2.0?

Localized version of CFormatter

Created 2 years ago by marcovtwoutHow-tos2 comments – viewed 4,253 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.