Wiki

Sorted by commentsX
Displaying 61-70 of 784 result(s).

Render Form in popup via AJAX (Create and Update) with ajax validation & Also load any page via ajax Yii 2.0 (2.3)

Created 2 years ago by skwordenHow-tos13 comments – viewed 116,282 times – ( +27 ) – version 2.0
There are a few issues with the other solutions I originally used that I found from other wikis. I address the issues I had in this much simpler and shorter way. I am also going to explain what is going into way more detail than others to help people understand what's going on.

Searching and Sorting by Count of Related Items in CGridView

Created 5 years ago by softarkHow-tos13 comments – viewed 44,511 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Actions code reuse with CAction

Created 6 years ago by Antonio RamirezHow-tos13 comments – viewed 41,513 times – ( +36 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Drills : Search by a HAS_MANY relation in Yii 1.1

Created 4 years ago by softarkTutorials13 comments – viewed 47,641 times – ( +34 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Yii for beginners

Created 5 years ago by rackyczTutorials13 comments – viewed 298,754 times – ( +99 ) – version 1.1
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 5 years ago by JobloTips12 comments – viewed 48,154 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Understanding Scenarios

Created 5 years ago by Luke JurgsTutorials12 comments – viewed 125,103 times – ( +31 ) – version 1.1
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

Yii User and Rights Implementation

Created 3 years ago by Rajith RHow-tos12 comments – viewed 26,977 times – ( +7 / -7 ) – version 1.1
implementing some features of yii user and rights.

How to work with flash messages

Created 8 years ago by pfthTutorials12 comments – viewed 270,254 times – ( +60 ) – version 1.1
Set your messages in a controller:

Setting and maintaining the language in Application (i18n)

Created 8 years ago by olafureTutorials12 comments – viewed 102,914 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