Wiki

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

Write & use a custom Component in Yii2.0

Created 3 years ago by sirin kHow-tos4 comments – viewed 71,545 times – ( +18 / -1 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

How to translate and do the translations the easy way

Created 6 years ago by Roman SolomatinHow-tos3 comments – viewed 69,752 times – ( +28 / -3 ) – 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.

Update/delete model with CJuiDialog (works in CGridView)

Created 6 years ago by ifdatticTutorials6 comments – viewed 68,314 times – ( +15 / -1 ) – version 1.1
This is based on this article.

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

Created 6 years ago by Steve FriedlFAQs3 comments – viewed 66,472 times – ( +7 / -1 ) – 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

Using the configuration file, explain what can be configured.

Created 7 years ago by atrandafirTutorials0 comments – viewed 66,302 times – ( +20 / -1 ) – 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.

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

Created 6 years ago by thyseusTutorials6 comments – viewed 66,248 times – ( +7 / -1 ) – version 1.1
Hi Folks,

Using setFlash for displaying various kind of messages

Created 6 years ago by TrejderHow-tos6 comments – viewed 65,928 times – ( +4 / -6 ) – version 1.1
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

How to setup RBAC with a php file

Created 7 years ago by bettorHow-tos17 comments – viewed 65,871 times – ( +26 / -6 ) – 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.

How to log and debug variables using CWebLogRoute

Created 6 years ago by Antonio RamirezHow-tos8 comments – viewed 65,827 times – ( +18 / -1 ) – 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

X-Sendfile - serve large static files efficiently from web applications

Created 6 years ago by Maurizio Domba CerinHow-tos5 comments – viewed 65,504 times – ( +26 / -1 ) – version 1.1
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.