Wiki

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

How to re enable logging during unit testing

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

Simple Mail Queue

Created 3 years ago by waterloomattTutorials3 comments – viewed 14,442 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.

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 14,398 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.

Starting with YII 1.1.x in Windows Environment (WAMP)

Created about a year ago by Rajith RTutorials0 comments – viewed 14,384 times – ( +8 ) – version 1.1
As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.
tags: newbie, yii, yiic

Insert a multirow header in CGridView

Created 2 years ago by PeppeHow-tos2 comments – viewed 14,299 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.

YII SaaS Multi Tenant application with single database

Created 3 years ago by Rajith RTutorials5 comments – viewed 14,298 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.

Caching the config main.php

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

How to make customizable Db Table prefixes using ActiveRecord

Created 6 years ago by killermonkTutorials0 comments – viewed 14,226 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.

YouTube API v2.0 – Browser-based Uploading

Created 3 years ago by VaibhavHow-tos1 comment – viewed 14,203 times – ( +6 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

get summary of related model via STAT relation

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