Wiki

Articles in category "tips", sorted by viewsX
Displaying 1-10 of 154 result(s).

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

Created 5 years ago by kiran sharmaTips22 comments – viewed 174,375 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)

CGridView: Render customized/complex datacolumns

Created 5 years ago by JobloTips13 comments – viewed 152,778 times – ( +74 / -1 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

Configuring PhpStorm IDE for Yii

Created 6 years ago by samdarkTips20 comments – viewed 119,873 times – ( +66 / -2 ) – version 1.1
In order to be able to get from render or renderPartial to the view, from widget to widget class, from relations to model classes you need to install additional plugin called YiiStorm.
tags: IDE, PhpStorm

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

Created 3 years ago by Kartik VTips2 comments – viewed 96,933 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.

The complete beginner's study guide for the Yii Framework

Created 5 years ago by Rodrigo CoelhoTips2 comments – viewed 90,031 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.

Guidelines for good schema design

Created 6 years ago by Steve FriedlTips15 comments – viewed 88,272 times – ( +144 / -1 ) – version 1.1
Virtually all Yii applications are built on top of a database, and though Yii is very flexible in how it addresses your DB, some design choices make things more convenient than others.

An Easy Solution for Dependent dropDownList Using AJAX

Created 4 years ago by mrsTips11 comments – viewed 84,258 times – ( +16 / -2 ) – version 1.1
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

Special $variables in CGridView and CListView

Created 6 years ago by Steve FriedlTips11 comments – viewed 65,152 times – ( +27 / -3 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

Saving files to a blob field in the database

Created 6 years ago by zaccariaTips8 comments – viewed 58,473 times – ( +9 / -3 ) – version 1.1
As a follow-up from the How to upload a file using a model wiki entry that explains how to save a file to the filesystem, this article will do the same using a blob field in the database.
tags: File upload

Integrating Yii with Wordpress

Created 6 years ago by isekreamTips5 comments – viewed 56,636 times – ( +10 / -2 ) – version 1.1
Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integration was very basic and i just used yii with its default installation site. I don;t know how it will really react with CRUD application as yet but it was fairly easy to integrate after reading the article...