Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 161-170 of 236 result(s).

Make the authentication more securely

Created 6 months ago by KonApazTutorials1 comment – viewed 2,607 times – ( +3 ) – version 1.1
Suppose a hacker has an account of your website He could set the PHPSESSID to empty After of that He login in your system The PHPSESSID remains blank and user has already logged with this session

Configuring CWebLogRoute for DB profiling

Created 3 years ago by Igor IvanovicTutorials1 comment – viewed 17,246 times – ( +3 ) – version 1.1
/index.php /protected/config/main.php
tags: logger, profiler, db

Building a REST API in Yii2.0

Created 3 months ago by sirin kTutorials5 comments – viewed 11,826 times – ( +3 ) – version 2.0
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
tags: yii2.0, REST API

How to access a component of a module from within the module itself

Created 5 years ago by OriginalCopyTutorials3 comments – viewed 21,908 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

Integrating with other frameworks

Created 5 years ago by KJediTutorials4 comments – viewed 16,258 times – ( +5 / -1 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

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

Created 4 years ago by emixTutorials5 comments – viewed 26,467 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

How to prevent Login from two places?

Created 6 months ago by Rohit SutharTutorials0 comments – viewed 3,409 times – ( +5 / -1 ) – version 1.1
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.

Using CAutoComplete to display one value and submit another

Created 5 years ago by luoshibenTutorials5 comments – viewed 44,323 times – ( +8 / -3 ) – version 1.1
Note: CAutoComplete is deprecated since Yii 1.1.3. Consider using CJuiAutoComplete.

RBAC Super Simple with Admin and User

Created about a month ago by evercodeTutorials4 comments – viewed 4,983 times – ( +6 / -2 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

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

Created about a year ago by nlacTutorials5 comments – viewed 30,604 times – ( +6 / -2 ) – version 1.1
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.