Wiki

Articles in category "tips", sorted by ratingX
Displaying 11-20 of 153 result(s).

PHPStorm & NetBeans autocomplete problem

Created 4 years ago by StagelineTips3 comments – viewed 13,616 times – ( +24 / -1 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Yii 2 list of path aliases available with default basic and advanced app.

Created 3 years ago by Kartik VTips2 comments – viewed 89,259 times – ( +53 / -6 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

FORM with GET method causes repeated stacking of URL Parameters

Created 3 years ago by Kartik VTips2 comments – viewed 26,657 times – ( +45 / -5 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

Reading the doc

Created 6 years ago by zaccariaTips0 comments – viewed 8,156 times – ( +21 / -1 ) – version 1.1
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

The complete beginner's study guide for the Yii Framework

Created 4 years ago by Rodrigo CoelhoTips2 comments – viewed 87,074 times – ( +21 / -1 ) – 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.

Using cache in CActiveDataProvider

Created 5 years ago by StammTips7 comments – viewed 21,053 times – ( +21 / -1 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

How to upload image(photo), and path entry in database with update functionality

Created 4 years ago by kiran sharmaTips22 comments – viewed 170,357 times – ( +37 / -4 ) – version 1.1
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

Activating Bootstrap 3 Tooltips & Popover for your Yii Site.

Created 3 years ago by Kartik VTips7 comments – viewed 38,250 times – ( +39 / -5 ) – version 2.0
With Bootstrap 3 and its inbuilt support in Yii Framework 2.0, you would see quite some new ways of creating HTML markup and styling your site. However, with version 3 of Bootstrap, tooltips and popover are not activated by default on your elements. Assuming you have activated the Bootstrap 3 tooltip plugin - how do you easily enable display of tooltips/popovers across your site?

htmlOptions explained for various controls.

Created 6 years ago by WoilTips1 comment – viewed 55,419 times – ( +18 / -1 ) – version 1.1
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:

Locking your Yii 2 project package versions with composer.lock

Created 3 years ago by Kartik VTips0 comments – viewed 5,737 times – ( +37 / -5 ) – version 2.0
Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.