Wiki articles tagged with "Forms"

Showing 1-12 of 12 items.

An easy way to display a success page using flash messages

Created 13 years ago by qiang, updated 13 years ago by qiang.

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.

21 0
29 followers
Viewed: 56 578 times
Version: 1.1
Category: Tips

File uploads in CForm (Form builder)

Created 12 years ago by Luke Jurgs, updated 12 years ago by Luke Jurgs.

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.

9 0
10 followers
Viewed: 52 017 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by pckabeer, updated 11 years ago by pckabeer.

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 [enumDropdownList](http://www...

6 0
3 followers
Viewed: 25 063 times
Version: 1.1
Category: How-tos

MVC primer and 5 minute form walkthrough

Created 11 years ago by rix.rix., updated 11 years ago by rix.rix..

This tutorial assumes some basic knowledge of Yii and a functional development environment.

8 0
6 followers
Viewed: 29 440 times
Version: 1.1
Category: Tutorials

XUpload Workflow

Created 11 years ago by Asgaroth, updated 11 years ago by Asgaroth.

This wiki describes a more complex workflow using the XUpload widget

28 0
42 followers
Viewed: 95 083 times
Version: 1.1
Category: Tutorials

Understanding "Safe" Validation Rules

Created 13 years ago by Steve Friedl, updated 11 years ago by Gismo.

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.

75 0
46 followers
Viewed: 181 865 times
Version: 1.1
Category: FAQs

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

Created 12 years ago by c@cba, updated 10 years ago by nsanden.

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](...

10 0
11 followers
Viewed: 51 244 times
Version: 1.1
Category: How-tos

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 10 years ago by edoardo849, updated 10 years ago by CeBe.

suppose to have in Mongo a collection "user" like:

4 0
7 followers
Viewed: 28 079 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by nlac, updated 9 years ago by nlac.

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.

4 1
11 followers
Viewed: 62 324 times
Version: 1.1
Category: Tutorials

How to implement form events

Created 9 years ago by Antonio Ramirez, updated 8 years ago by deacs.

You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.

5 0
6 followers
Viewed: 37 903 times
Version: 2.0
Category: How-tos
Tags: Forms, How to, yii2

Simple way to implement Dynamic Tabular Inputs

Created 9 years ago by ezekielnoob, updated 5 years ago by samdark.

grid

4 0
10 followers
Viewed: 83 469 times
Version: 2.0
Category: Tutorials

Integrating Yii3 packages into WordPress

Created a month ago by Gabriel A. López López, updated a month ago by Gabriel A. López López.

I was recently assigned with the task of integrating several extensive forms into a WordPress website. These forms comprised numerous fields, intricate validation rules, dynamic fields (one to many relationships) and even interdependencies, where employing PHP inheritance could mitigate code duplication.

0 0
1 follower
Viewed: 2 482 times
Version: 3.0
Category: How-tos