Wiki

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

Configuring PhpStorm IDE for Yii

Created 3 years ago by samdarkTips20 comments – viewed 66,963 times – ( +61 / -1 ) – 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

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Created about a year ago by Rajith RTips18 comments – viewed 21,927 times – ( +7 ) – version 1.1
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 99,857 times – ( +69 ) – 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

Guidelines for good schema design

Created 2 years ago by Steve FriedlTips13 comments – viewed 51,710 times – ( +138 ) – 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.

Importing CSV file to mysql table using "LOAD DATA" command.

Created about a year ago by sirin kTips12 comments – viewed 25,047 times – ( +5 ) – version 1.1
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

How to filter CGridView with From Date and To Date datepicker

Created about a year ago by kiran sharmaTips12 comments – viewed 24,880 times – ( +15 / -3 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

CGridView: Update/create records in a CJuiDialog

Created 2 years ago by JobloTips11 comments – viewed 32,568 times – ( +13 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Yii Security-extended guide

Created 2 years ago by bingjie2680Tips11 comments – viewed 13,437 times – ( +6 / -6 ) – version 1.1
This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in your application without much caring.

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

Created about a year ago by kiran sharmaTips11 comments – viewed 73,540 times – ( +27 / -3 ) – 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)

Shrink Yii, help your IDE and speed up copying

Created 2 years ago by dckurushinTips11 comments – viewed 7,908 times – ( +9 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half