Wiki

Sorted by commentsX
Displaying 601-610 of 786 result(s).

Configuring CWebLogRoute for DB profiling

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

Cron Jobs in Yii

Created 4 years ago by aarondfrancisHow-tos1 comment – viewed 24,269 times – ( +4 / -1 ) – version 1.1
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

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

Created 3 years ago by SmitheshHow-tos1 comment – viewed 11,388 times – ( +3 / -1 ) – 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.

MongoDB's RBAC support class extending BaseManager

Created 3 years ago by edoardo849How-tos1 comment – viewed 7,736 times – ( -1 ) – 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 provide a fallback or mapping for translation messages?

Created 4 years ago by schmunkHow-tos1 comment – viewed 6,558 times – ( +5 / -1 ) – version 1.1
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

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

Created 3 years ago by Deepak PradhanHow-tos1 comment – viewed 28,754 times – ( -1 ) – version 2.0
This is an extension to Yii 2.0: Write & use a custom Component in Yii2.0 for Advanced Template

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

Created 3 years ago by le_topTips0 comments – viewed 4,759 times – ( +1 / -1 ) – version 1.1
Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.

model rules depended by user roles-permissions

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 11,914 times – ( +3 / -1 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 3 years ago by Deepak PradhanTips0 comments – viewed 3,816 times – ( -1 ) – version 2.0
Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

Yii Rights Management Tips

Created 3 years ago by Rajith RTips0 comments – viewed 7,113 times – ( +6 / -1 ) – version 1.1
yii rights some tips..