Wiki

Sorted by viewsX
Displaying 91-100 of 782 result(s).

Pjax on ActiveForm and GridView - Yii2

Created 2 years ago by SreenadhHow-tos6 comments – viewed 65,527 times – ( +11 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

How to translate and do the translations the easy way

Created 5 years ago by Roman SolomatinHow-tos3 comments – viewed 65,118 times – ( +28 / -2 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

Implementing a Registration Process using the yii-user-management module

Created 5 years ago by thyseusTutorials6 comments – viewed 63,985 times – ( +7 ) – version 1.1
Hi Folks,

How to setup RBAC with a php file

Created 6 years ago by bettorHow-tos17 comments – viewed 63,177 times – ( +26 / -5 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Using the configuration file, explain what can be configured.

Created 6 years ago by atrandafirTutorials0 comments – viewed 62,845 times – ( +20 ) – version 1.1
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.

How to log and debug variables using CWebLogRoute

Created 5 years ago by Antonio RamirezHow-tos8 comments – viewed 62,450 times – ( +18 ) – version 1.1
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

CListView AJAX filtering

Created 5 years ago by DragaTutorials17 comments – viewed 61,939 times – ( +17 ) – version 1.1
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Special $variables in CGridView and CListView

Created 5 years ago by Steve FriedlTips11 comments – viewed 61,569 times – ( +27 / -2 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

Using standard filters in CGridView custom fields

Created 5 years ago by GOshaHow-tos4 comments – viewed 61,334 times – ( +17 ) – version 1.1
In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.For example: We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0. So we do the usual thing:

"Why do I get a 403 error when trying to use Gii?"

Created 5 years ago by Steve FriedlFAQs3 comments – viewed 61,323 times – ( +7 ) – version 1.1
After enabling the Gii module in your protected/config/main.php file and then try to use it with http://example.com/index.php?r=gii, you get an error:
tags: Gii, config