Wiki

Sorted by ratingX
Displaying 61-70 of 693 result(s).

URL component access functions

Created 3 years ago by Steve FriedlTips1 comment – viewed 10,457 times – ( +28 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Drills : Search by a HAS_MANY relation

Created about a year ago by softarkTutorials11 comments – viewed 25,490 times – ( +28 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 4 months ago by Kartik VTutorials0 comments – viewed 2,815 times – ( +28 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Using the yii2-datecontrol extension along with yii2-detail-view widget

Created 4 months ago by Kartik VHow-tos0 comments – viewed 1,449 times – ( +28 ) – version 2.0
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.

Nested inline active fields inside Bootstrap horizontal forms

Created 3 months ago by Kartik VHow-tos1 comment – viewed 3,371 times – ( +28 ) – version 2.0
Are you using the Bootstrap 3 form styles with Yii 2 Active Forms? Have you faced problems in displaying complex layouts which needs you to display multiple inline form fields in a single row, within bootstrap horizontal forms. Then read on.

Yii for beginners 2

Created about a year ago by rackyczTutorials2 comments – viewed 35,091 times – ( +28 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)

Cookie management in Yii

Created 3 years ago by TrejderHow-tos5 comments – viewed 85,896 times – ( +41 / -1 ) – version 1.1
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

Understanding Scenarios

Created 2 years ago by Luke JurgsTutorials11 comments – viewed 76,905 times – ( +27 ) – 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.

How to add ajax-loading indicators

Created 5 years ago by schmunkTutorials5 comments – viewed 41,548 times – ( +27 ) – version 1.1
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
tags: AJAX

Saving CGridView filter

Created 7 months ago by sefburhanTutorials4 comments – viewed 3,711 times – ( +27 ) – version 1.1
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps