Wiki

Sorted by ratingX
Displaying 111-120 of 777 result(s).

How to log changes of ActiveRecords?

Created 7 years ago by pfthTutorials7 comments – viewed 44,558 times – ( +40 / -2 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials23 comments – viewed 111,991 times – ( +56 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

Clean JavaScript code in your views

Created 3 years ago by nineinchnickTutorials6 comments – viewed 28,813 times – ( +20 ) – version all
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

Using the configuration file, explain what can be configured.

Created 6 years ago by atrandafirTutorials0 comments – viewed 61,981 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

Theming your Zii Widgets

Created 5 years ago by Luis Lobo BorobiaTutorials16 comments – viewed 50,764 times – ( +20 ) – version 1.1
One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

How to use PHPExcel external library with Yii

Created 5 years ago by Antonio RamirezHow-tos14 comments – viewed 91,720 times – ( +30 / -1 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

Drills : Search by a HAS_MANY relation in Yii 2.0

Created about a year ago by softarkTutorials4 comments – viewed 35,165 times – ( +19 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

How to set up Unicode

Created 7 years ago by MikeHow-tos10 comments – viewed 88,626 times – ( +19 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

How to display static pages in Yii?

Created 7 years ago by qiangTutorials2 comments – viewed 59,311 times – ( +19 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

AssetManager: clearing browser's cache on site update

Created 4 years ago by dhampikHow-tos4 comments – viewed 34,670 times – ( +19 ) – version 1.1
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.