Wiki

Sorted by viewsX
Displaying 401-410 of 752 result(s).

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 3 years ago by jpabloHow-tos2 comments – viewed 13,360 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

Log Activity in DataBase

Created 2 years ago by mahdi1986Tutorials6 comments – viewed 13,331 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Relational data fields display and edit with the yii2-detail-view extension

Created about a year ago by Kartik VTutorials1 comment – viewed 13,204 times – ( +39 ) – version 2.0
If you have read this wiki you would be aware of the yii2-detail-view extension and how it offers you an easy way to EDIT and VIEW your model data, toggle these modes, and other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

How to implement an event and attach it in a behavior

Created 2 years ago by seb7How-tos0 comments – viewed 13,177 times – ( +6 ) – version 1.1
This page explains how to implement an event and catch that event in a behavior.
tags: event, behavior

free PHP IDE CodeLobster supports Yii framework

Created 3 years ago by clodTutorials0 comments – viewed 13,165 times – ( +5 ) – version 1.1
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.

adding class and links to Ctreeview node

Created 4 years ago by bingjie2680Tips2 comments – viewed 13,027 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 2 years ago by Gerhard LiebenbergHow-tos0 comments – viewed 13,023 times – ( +4 / -1 ) – version 1.1
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

How to make customizable Db Table prefixes using ActiveRecord

Created 5 years ago by killermonkTutorials0 comments – viewed 12,953 times – version 1.1
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

How to re enable logging during unit testing

Created 3 years ago by AsgarothHow-tos3 comments – viewed 12,949 times – ( +11 ) – version 1.1
Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

Caching the config main.php

Created 3 years ago by dckurushinTutorials11 comments – viewed 12,922 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!