Wiki

Sorted by viewsX
Displaying 31-40 of 600 result(s).

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

Created about a year ago by kiran sharmaTips11 comments – viewed 73,567 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)

CJuiDialog for create new model

Created 3 years ago by zaccariaTutorials44 comments – viewed 70,178 times – ( +61 ) – version 1.1
In this tutorial we will learn how to realize a create interface using a dialog.

Setting and maintaining the language in Application (i18n)

Created 5 years ago by olafureTutorials11 comments – viewed 68,322 times – ( +23 ) – version 1.1
As seen in this post, Yii doesn't enforce how language is set and maintained within the session.
tags: i18n, translation

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 4 years ago by andy_sTutorials22 comments – viewed 67,266 times – ( +31 ) – version 1.1
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.

Configuring PhpStorm IDE for Yii

Created 3 years ago by samdarkTips20 comments – viewed 66,979 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

Uploading multiple images with CMultiFileUpload

Created 3 years ago by rsinghHow-tos16 comments – viewed 66,877 times – ( +37 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

Relations: BELONGS_TO versus HAS_ONE

Created 2 years ago by Steve FriedlFAQs9 comments – viewed 66,695 times – ( +65 ) – version 1.1
It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

CGridView, CListView and CActiveDataProvider

Created about a year ago by softarkTutorials21 comments – viewed 66,662 times – ( +45 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Getting to Understand Hierarchical RBAC Scheme

Created 3 years ago by daemonsTutorials17 comments – viewed 66,215 times – ( +57 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Understanding Scenarios

Created 2 years ago by Luke JurgsTutorials11 comments – viewed 65,327 times – ( +25 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.