Wiki

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

Url: hide index.php

Created about a year ago by HermansHow-tos13 comments – viewed 43,482 times – ( +17 )
Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

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

Created 3 years ago by andy_sTutorials18 comments – viewed 43,233 times – ( +25 )
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.

Cookie management in Yii

Created 2 years ago by TrejderHow-tos4 comments – viewed 43,094 times – ( +39 / -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.

Configuring PhpStorm IDE for Yii

Created 2 years ago by samdarkTips13 comments – viewed 42,227 times – ( +50 / -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 2 years ago by rsinghHow-tos11 comments – viewed 42,217 times – ( +33 )
"The documentation for CMultiFileUpload isn't clear!"

Organize directories for applications with front-end and back-end

Created 4 years ago by qiangTutorials10 comments – viewed 40,604 times – ( +25 )
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Understanding "Safe" Validation Rules

Created 2 years ago by Steve FriedlFAQs7 comments – viewed 39,819 times – ( +72 )
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

Using search engine and user friendly URLs

Created 3 years ago by qiangTutorials6 comments – viewed 38,763 times – ( +18 )
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Relations: BELONGS_TO versus HAS_ONE

Created 2 years ago by Steve FriedlFAQs6 comments – viewed 38,571 times – ( +58 )
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.

How to setup RBAC with a php file

Created 3 years ago by bettorHow-tos12 comments – viewed 38,385 times – ( +24 / -4 )
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.