Wiki

Sorted by viewsX
Displaying 431-440 of 786 result(s).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 6 years ago by a110yTips7 comments – viewed 18,043 times – ( +2 / -1 ) – version 1.1
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:

Generate a multi-lever array sub-category for a menu

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 18,031 times – ( +10 / -1 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

Upload CSV File

Created 4 years ago by bhavesh vaghelaTutorials2 comments – viewed 17,944 times – ( +8 / -1 ) – version 1.1
View file

Install specific Yii2 vendor extension & dependency without updating other packages.

Created 3 years ago by Kartik VTips0 comments – viewed 17,884 times – ( +40 / -7 ) – version 2.0
The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

Simple Mail Queue

Created 4 years ago by waterloomattTutorials3 comments – viewed 17,810 times – ( +10 / -3 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

三步使用cronjobs自动化去执行Yii 控制台任务

Created 6 years ago by Darwin WenTutorials0 comments – viewed 17,733 times – ( +1 / -5 ) – version 1.1
这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

Impersonate Users within Yii Framework

Created 6 years ago by WoilTutorials6 comments – viewed 17,691 times – ( +22 / -1 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 4 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 17,490 times – ( +4 / -2 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

Add model validator in Controller

Created 2 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 17,474 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

Customizing Yii's formatting rules (extending CFormatter)

Created 6 years ago by HaenselTips0 comments – viewed 17,396 times – ( +14 / -1 ) – version 1.1
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.