Wiki

Articles tagged with "forms", sorted by commentsX
Displaying 1-9 of 9 result(s).

XUpload Workflow

Created about a year ago by AsgarothTutorials25 comments – viewed 39,992 times – ( +31 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget

Understanding "Safe" Validation Rules

Created 3 years ago by Steve FriedlFAQs10 comments – viewed 63,845 times – ( +83 / -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.

A simple way to get Yii client-side form validation run when submitting by ajax

Created about a year ago by nlacTutorials3 comments – viewed 20,743 times – ( +5 ) – version 1.1
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

File uploads in CForm (Form builder)

Created 2 years ago by Luke JurgsHow-tos2 comments – viewed 30,020 times – ( +11 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Drop down list with enum values for column of type ENUM >+> incorporate into giix

Created 2 years ago by c@cbaHow-tos2 comments – viewed 20,574 times – ( +14 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a drop down list, which has the enum values as options. The main code was contributed by zaccaria in the forum (see this post).

An easy way to display a success page using flash messages

Created 3 years ago by qiangTips2 comments – viewed 21,121 times – ( +26 ) – version 1.1
We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

Radio Button List with enum values for column of type ENUM >+> incorporate into giix

Created about a year ago by pckabeerHow-tos1 comment – viewed 10,986 times – ( +7 ) – version 1.1
Let's say our table 'mug' has a column named 'color' of the type ENUM('red','green','blue'). We want to replace the textfield for the attribute color in the create and update forms of a 'mug' with a Radio Button List, which has the enum values as options. This is a rewrite of c@cba in the wiki article of enumDropdownListThe main code was contributed by zaccaria in the forum (see this post).

MVC primer and 5 minute form walkthrough

Created about a year ago by rix.rix.Tutorials0 comments – viewed 14,473 times – ( +8 ) – version 1.1
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created about a month ago by edoardo849How-tos0 comments – viewed 1,463 times – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.