Wiki articles

Showing 41-60 of 823 items.

Ajax form submiting in Yii

Created 12 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

4 3
23 followers
Viewed: 170 910 times
Version: 1.1
Category: Tutorials

CGridView: Render customized/complex datacolumns

Created 13 years ago by Joblo, updated 12 years ago by Joblo.

If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.

53 0
74 followers
Viewed: 169 825 times
Version: 1.1
Category: Tips
Tags: CGridView

Pjax on ActiveForm and GridView - Yii2

Created 10 years ago by Sreenadh, updated 10 years ago by Sreenadh.

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

7 0
16 followers
Viewed: 169 767 times
Version: 2.0
Category: How-tos

CJuiDialog to create new model

Created 14 years ago by zaccaria, updated 9 years ago by Maurizio Domba Cerin.

In this tutorial we will learn how to realize a create interface using a dialog.

55 0
64 followers
Viewed: 169 284 times
Version: 1.1
Category: Tutorials

Relations: BELONGS_TO versus HAS_ONE

Created 14 years ago by Steve Friedl, updated 11 years ago by Jorgee.

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.

56 0
35 followers
Viewed: 166 748 times
Version: 1.1
Category: FAQs

Setting and maintaining the language in Application (i18n)

Created 16 years ago by olafure, updated 13 years ago by Yang He.

As seen in this post, Yii doesn't enforce how language is set and maintained within the session.

19 0
29 followers
Viewed: 165 656 times
Version: 1.1
Category: Tutorials

Creating a Dependent Dropdown From Scratch in Yii2

Created 11 years ago by ThePr0f3550r, updated 7 years ago by alrazi.

I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post

4 1
12 followers
Viewed: 164 340 times
Version: 2.0
Category: How-tos

Behaviors & events

Created 15 years ago by pestaa, updated 12 years ago by Gismo.

These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

43 0
48 followers
Viewed: 164 175 times
Version: 1.1
Category: Tutorials
Tags:

Configuring PhpStorm IDE for Yii 1.1

Created 14 years ago by samdark, updated 7 years ago by samdark.
  • Complete code: Ctrl+Space.
  • Show method arguments: Ctrl+Q.
59 1
53 followers
Viewed: 156 171 times
Version: 1.1
Category: Tips
Tags: IDE, PhpStorm

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

Created 15 years ago by atrandafir, updated 13 years ago by Yang He.

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.

27 0
38 followers
Viewed: 155 627 times
Version: 1.1
Category: Tutorials
Tags:

Building a REST API in Yii2.0

Created 10 years ago by sirin k, updated 8 years ago by Maurizio Domba Cerin.

This is wiki page is useful if you are trying to build a customized REST API in Yii2.0

4 0
16 followers
Viewed: 152 701 times
Version: 2.0
Category: Tutorials

yii2-app-advanced on single domain (Apache, Nginx)

Created 10 years ago by MadAnd, updated 3 years ago by QuPsi.

If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

4 0
14 followers
Viewed: 151 071 times
Version: 2.0
Category: How-tos

Setting and getting systemwide static parameters

Created 14 years ago by Steve Friedl, updated 14 years ago by Steve Friedl.

Occasionally one wishes to set systemwide parameters for an application, such as a contact address for email, an application name, or setting an option that guides major behavior. Yii provides for setting of static parameters in the configuration file, and this article talks about how to do it conveniently.

11 0
12 followers
Viewed: 149 490 times
Version: 1.1
Category: How-tos
Tags: config

Multiple-database support in Yii

Created 14 years ago by Steve Friedl, updated 12 years ago by phazei.

The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.

20 0
39 followers
Viewed: 149 330 times
Version: 1.1
Category: How-tos
Tags: database

Accessing data in a join table with the related models

Created 13 years ago by fsb, updated 12 years ago by krowe.

Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

16 1
30 followers
Viewed: 149 168 times
Version: 1.1
Category: How-tos

How to customize the error message of a validation rule

Created 16 years ago by qiang, updated 13 years ago by Yang He.

Validators extending from [CValidator] all have a property named [message|CValidator::message]. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

13 0
14 followers
Viewed: 147 764 times
Version: 1.1
Category: Tutorials
Tags:

Creating a parameterized LIKE query

Created 14 years ago by Steve Friedl, updated 13 years ago by Asgaroth.

It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column

13 0
21 followers
Viewed: 146 902 times
Version: 1.1
Category: FAQs

CGridView, CListView and CActiveDataProvider

Created 12 years ago by softark, updated 11 years ago by softark.

CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

26 0
33 followers
Viewed: 146 773 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by andy_s, updated 13 years ago by kiran sharma.

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.

26 0
44 followers
Viewed: 144 119 times
Version: 1.1
Category: Tutorials
Tags:

Date Picker by examples

Created 11 years ago by Interboy, updated 10 years ago by Alfa Adhitya.

CJuiDatePicker displays a datepicker. CJuiDatePicker encapsulates the JUI datepicker plugin.

6 0
7 followers
Viewed: 142 777 times
Version: 1.1
Category: How-tos