Wiki

Sorted by commentsX
Displaying 71-80 of 718 result(s).

How to work with flash messages

Created 5 years ago by pfthTutorials11 comments – viewed 171,898 times – ( +57 ) – version 1.1
Set your messages in a controller:

Setting and maintaining the language in Application (i18n)

Created 5 years ago by olafureTutorials11 comments – viewed 80,192 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

Update two models with one view

Created 2 years ago by sensorarioTips11 comments – viewed 32,719 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

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

Created 4 years ago by atrandafirTutorials11 comments – viewed 101,792 times – ( +33 ) – 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.

Understanding "Assets"

Created 3 years ago by Steve FriedlTutorials11 comments – viewed 118,378 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.

URL management for Websites with secure and nonsecure pages

Created 2 years ago by qiangHow-tos11 comments – viewed 21,734 times – ( +27 ) – version 1.1
In this article, I will describe how to manage URLs for a Website that has both secure and nonsecure content.
tags: URL

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs11 comments – viewed 78,063 times – ( +91 / -1 ) – version 1.1
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.

CKEditor Integration (includes steps for file uploads) - Step by Step

Created 2 years ago by shulmeHow-tos11 comments – viewed 34,945 times – ( +24 ) – version 1.1
Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

Render a form in a Modal Popup using ajax

Created 7 months ago by thiagoc7How-tos11 comments – viewed 18,348 times – ( +6 ) – version 2.0
Nowdays is very common webapps use this feature. With Yii2 this is very easy.
tags: yii2, AJAX, modal

jQuery UI Datepicker

Created about a year ago by softarkHow-tos11 comments – viewed 52,237 times – ( +12 ) – version 1.1
We all love the convenient gadget, namely jQuery UI Datepicker as an input element for date. Yii supports it as CJuiDatePicker. Let's see how to use it.