Wiki

Sorted by viewsX
Displaying 491-500 of 782 result(s).

Update related models of a model using listBox and checkBoxList in the form

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 12,884 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

URL component access functions

Created 5 years ago by Steve FriedlTips1 comment – viewed 12,863 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

Using Yii with PHP 5.4 built-in webserver instead of Apache

Created 4 years ago by samdarkHow-tos1 comment – viewed 12,781 times – ( +21 ) – version 1.1
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:

How to create Module based Login

Created 2 years ago by Ibrar TuriHow-tos1 comment – viewed 12,739 times – ( +3 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

PHPStorm & NetBeans autocomplete problem

Created 3 years ago by StagelineTips3 comments – viewed 12,736 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

Yii HMVC

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 12,615 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

caching controllers with filters()

Created 5 years ago by RusAlexHow-tos1 comment – viewed 12,528 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

CGridView Date Range Without Cookies or Session (External Filtering)

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 12,527 times – ( +5 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created 2 years ago by Scott_HuangTips0 comments – viewed 12,513 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 12,495 times – ( +1 / -3 ) – version 1.1
Hello Yii friends