Expand the menu
This article discusses how one can run a long task in background in yiiframework 1.1 using Ajax technique.
As we know Using crud generator creates menu items in view files (for each view file have a varius menu items)
A Yii Framework 2 component for using assets in different environments (Local/CDNs)
This tutorial assumes some basic knowledge of Yii and a functional development environment.
Just thought I would share this bash script I wrote to help automate a base install of YII on an Ubuntu server. This script does the following:
I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :
public function scopeUnused( $useAnd = true )
{
$join = " left outer join composed_by j on t.ID = j.ID ";
$condition = ' j.ID Is Null';
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).
This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.
This tutorial is for people that are integrating Yii into WordPress. Meaning that WordPress is the host platform, and that Yii will be handling AR, CRUD, etc.
I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem>
is different from null as it represents an empty string. Also, although some use <elem/>
to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...
Almost all the information you need whilst working with yii is written in the Class Reference.
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?
The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obs...