Suppose you have Products,Categories and each product belongs in many categories
Suppose you have Products,Categories and each product belongs in many categories
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.
Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.
Hi friends,
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/
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.
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer
based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.
In application development we often have to choose how to mange recurrent values.
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
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...
This is how i do before query on Yii 2.0
To get null
from database instead of empty strings you need to set up your DB connection as follows: