Wiki

Sorted by viewsX
Displaying 21-30 of 771 result(s).

The directory structure of the Yii project site

Created 5 years ago by qiangOthers42 comments – viewed 155,545 times – ( +86 ) – version 1.1
In this article, we describe the directory structure used by yiiframework.com - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

Understanding "Assets"

Created 5 years ago by Steve FriedlTutorials12 comments – viewed 148,884 times – ( +57 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

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

Created 3 years ago by kiran sharmaTips22 comments – viewed 148,803 times – ( +37 / -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)

CGridView: Render customized/complex datacolumns

Created 4 years ago by JobloTips13 comments – viewed 143,295 times – ( +73 ) – 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

How to automate timestamps in ActiveRecord models

Created 7 years ago by dalipTutorials9 comments – viewed 138,239 times – ( +32 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Understanding Virtual Attributes and get/set methods

Created 5 years ago by Steve FriedlTutorials20 comments – viewed 131,163 times – ( +79 / -1 ) – version 1.1
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Javascript and AJAX with Yii

Created 3 years ago by Fran├žois GannazHow-tos3 comments – viewed 127,231 times – ( +40 ) – version 1.1
This page intends to provide an exhaustive guide of how to use Javascript (JS) in Yii. It does not explain how to learn coding in JS, but how to deal with it "the Yii way".
tags: javascript, AJAX

Cookie management in Yii

Created 5 years ago by TrejderHow-tos5 comments – viewed 125,919 times – ( +43 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

Add information to Yii::app()->user by extending CWebUser

Created 6 years ago by atrandafirTutorials11 comments – viewed 121,628 times – ( +35 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Ajax form submiting in Yii

Created 3 years ago by sirin kTutorials8 comments – viewed 120,405 times – ( +13 / -5 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.