Wiki

Sorted by ratingX
Displaying 521-530 of 784 result(s).

Make the authentication more securely

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials1 comment – viewed 6,567 times – ( +3 / -1 ) – 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

Adding a link to a CDataColumn

Created 4 years ago by le_topTips6 comments – viewed 16,624 times – ( +3 / -1 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

CjuiDatepicker

Created 4 years ago by hiral darjiTips1 comment – viewed 7,869 times – ( +3 / -1 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 4 years ago by br0skHow-tos9 comments – viewed 40,320 times – ( +3 / -1 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

How to change Migration Table name and use defined prefix.

Created 4 years ago by JorgeeHow-tos1 comment – viewed 10,703 times – ( +3 / -1 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Expert's model generation with Gii

Created 2 years ago by le_topTips0 comments – viewed 8,559 times – ( +3 / -1 ) – version 1.1
Efficient coding with Yii implies efficient use of the code generator. This article shares the personalised Gii templates that were built starting from the standard templates proposed by AweGen.

Profiling using XDebug

Created 4 years ago by le_topHow-tos1 comment – viewed 10,785 times – ( +3 / -1 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Role Management

Created 2 years ago by Dency G BHow-tos0 comments – viewed 11,103 times – ( +3 / -1 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Configuring CWebLogRoute for DB profiling

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

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

Created 2 years ago by SmitheshHow-tos1 comment – viewed 9,553 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.