Wiki

Sorted by commentsX
Displaying 41-50 of 470 result(s).

Use crypt() for password storage

Created 5 months ago by fsbTutorials11 comments – viewed 15,452 times – ( +16 )
There Is Now A cpasswordhelper Class In system.utils at GitHub that provides an API to simplify the use of crypt() for password storage. While this wiki article remains valid, it will in due course be rewritten to refer to the new class as well as explain how it works.

Uploading multiple images with CMultiFileUpload

Created 2 years ago by rsinghHow-tos11 comments – viewed 42,226 times – ( +33 )
"The documentation for CMultiFileUpload isn't clear!"

Creating a Simple CRUD App With Yii2

Created 20 days ago by Charles R. Portwood IITutorials11 comments – viewed 6,429 times – ( +5 / -3 )
Getting Started With Yii Framework 2. A Basic Tutorial
tags: yii2, tutorial, howto

Shrink Yii, help your IDE and speed up copying

Created about a year ago by dckurushinTips11 comments – viewed 6,212 times – ( +9 / -8 )
In this little tip, I will help you to cut Yii size for about half

Yii for beginners

Created about a year ago by rackyczTutorials11 comments – viewed 106,917 times – ( +74 )
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.

CGridView: Update/create records in a CJuiDialog

Created about a year ago by JobloTips10 comments – viewed 21,205 times – ( +11 )
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

How to use a single form to collect data for two or more models?

Created 4 years ago by qiangTutorials10 comments – viewed 78,355 times – ( +87 )
Assume we want to use a single HTML form to collect input for both model A and model B, and we want to display input errors (if any) in the same error summary box. We can define the following action code:

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

Created 4 years ago by qiangTutorials10 comments – viewed 40,616 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.

Update two models with one view

Created about a year ago by sensorarioTips10 comments – viewed 18,667 times – ( +10 / -2 )
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

How to use ldap in UserIdentity for authentication

Created 3 years ago by BeerSercTutorials10 comments – viewed 20,270 times – ( +11 )
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.