Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 1-10 of 315 result(s).

How to use Yii2-excelview

Updated about 6 hours ago by Scott_HuangHow-tos0 comments – viewed 297 times – version 2.0
Install Yii2-excelview:

Yii configuration: Dynamic & User dependent

Updated about 11 hours ago by le_topHow-tos0 comments – viewed 1,070 times – ( +1 ) – version 1.1
It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched from the database when actually used for the first time, which is after Yii is loaded. Actually, you can use pretty much any method that relies on Yii with this method.

Save and Display Date/Time Fields in different formats in Yii2

Updated 4 days ago by Kartik VHow-tos10 comments – viewed 5,771 times – ( +27 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.

Yii 2.0: Write & use a custom Component in Yii2.0 (Advanced Template)

Updated 4 days ago by Deepak PradhanHow-tos0 comments – viewed 851 times – version 2.0
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template

how to make a dynamic progress bar to show the percentage or status

Updated 17 days ago by BoazHow-tos1 comment – viewed 14,911 times – ( +5 ) – version 1.1
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

How to Setting Layouts in Yii

Updated 21 days ago by ruderbytesHow-tos2 comments – viewed 38,902 times – ( +2 / -5 ) – version 1.1
usually someone confused to make layouts in yii.

How to hide /frontend/web in url addresses on apache

Updated 22 days ago by raminiousHow-tos6 comments – viewed 25,010 times – ( +8 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

MongoDB's RBAC support class extending BaseManager

Updated 23 days ago by edoardo849How-tos1 comment – viewed 1,779 times – version 2.0
Here's a possible implementation for MongoDb of the RBAC standard. Create a class "MongoDbManager" in common\components and modify your params.php file like this:
tags: mongodb, rbac, yii2

How-To: Create a REST API

Updated 23 days ago by Rohit SutharHow-tos54 comments – viewed 222,679 times – ( +107 / -1 ) – version 1.1
This article will explain how to create a REST API with the Yii framework.

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Updated 26 days ago by SmitheshHow-tos0 comments – viewed 1,998 times – ( +2 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.