Wiki

Sorted by viewsX
Displaying 431-440 of 777 result(s).

Simple Mail Queue

Created 3 years ago by waterloomattTutorials3 comments – viewed 15,231 times – ( +10 / -2 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

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

Created 4 years ago by jpabloHow-tos2 comments – viewed 15,057 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.

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 15,031 times – ( +3 ) – 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.

How to log context information to logger (session id, user, ...)

Created 7 years ago by olafureTutorials0 comments – viewed 14,900 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

YII SaaS Multi Tenant application with single database

Created 3 years ago by Rajith RTutorials5 comments – viewed 14,891 times – ( +11 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

How to re enable logging during unit testing

Created 4 years ago by AsgarothHow-tos3 comments – viewed 14,887 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.

Insert a multirow header in CGridView

Created 3 years ago by PeppeHow-tos2 comments – viewed 14,879 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

get summary of related model via STAT relation

Created 3 years ago by rootbearHow-tos2 comments – viewed 14,879 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

YII2: Create console commands inside a module or extension

Created about a year ago by MetaCrawlerTutorials5 comments – viewed 14,769 times – ( +3 ) – version 2.0
Here is a small guide how to get console commands running inside modules & extensions. For this guide I used a fresh yii2 basic application template.
tags: yii2, tutorial, config

Managing constants easily

Created 4 years ago by briiC.lvTips4 comments – viewed 14,710 times – ( +4 ) – version 1.1
For time to time i have models with constants (basicly status constants) which i use in diferent places and if these constant changes, i have to change mentions of constant in code elsewhere.