Wiki articles

Showing 101-120 of 822 items.

Using Pear Mail Mail_Mime and Mail_Queue

Created 12 years ago by Loren, updated 12 years ago by Loren.

require_once 'Mail.php'; // PEAR Mail require_once 'Mail/mime.php'; // PEAR Mail_mime require_once 'Mail/Queue.php'; // PEAR Mail_queue require_once 'Mail/Queue/Container/mdb2.php'; // PEAR Mail_queue mdb2

7 0
11 followers
Viewed: 15 765 times
Version: 1.1
Category: How-tos

How to install pdo_oci

Created 13 years ago by gallego123, updated 12 years ago by gallego123.

From: http://lacot.org/ and me.

1 0
3 followers
Viewed: 36 361 times
Version: 1.1
Category: How-tos

A simple class to use a different db for a module

Created 12 years ago by tydeas_dr, updated 12 years ago by Maurizio Domba Cerin.

What would you do if you want/need to have a different than the main database connection in an module's models?

8 0
12 followers
Viewed: 29 739 times
Version: 1.1
Category: Tips

Implementing a Registration Process using the yii-user-management module

Created 12 years ago by thyseus, updated 12 years ago by thyseus.

Hi Folks,

7 0
21 followers
Viewed: 79 389 times
Version: 1.1
Category: Tutorials

[PT-BR] Proteção Contra Logout CSRF

Created 12 years ago by Rodrigo Coelho, updated 12 years ago by Rodrigo Coelho.

CSRF é o acrônimo para Cross-site request forgery.
CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

2 1
3 followers
Viewed: 13 590 times
Version: 1.1
Category: Tutorials

Local time zones and locales

Created 12 years ago by Russell England, updated 12 years ago by Russell England.

The sql 'set time_zone' ensures that all dates retrieved are in UTC time. If your MySql server has the time zone names installed then use 'UTC' instead of '+00:00'.

Components

Copy the code at the end of this wiki for LocalTime.php and DefaultDateTimeParser.php int...

13 2
23 followers
Viewed: 99 576 times
Version: 1.1
Category: How-tos

Getting nulls from database instead of empty strings

Created 12 years ago by samdark, updated 12 years ago by samdark.

To get null from database instead of empty strings you need to set up your DB connection as follows:

13 0
11 followers
Viewed: 19 996 times
Version: 1.1
Category: Tips
Tags: database, null

Single table inheritance

Created 12 years ago by samdark, updated 12 years ago by samdark.

Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field...

34 0
35 followers
Viewed: 52 849 times
Version: 1.1
Category: How-tos

Sub-domains with different databases in Yii!

Created 12 years ago by jwerd, updated 12 years ago by jwerd.

I used another example posted here a while back where the person was modifying the index.php and adding in a switch case for different domains and loading separate config files. This was actually too much for me, because all my portals are the exact same (as far as routes, modules, extensions, etc) and if I ever wanted to add another route it wouldn't be feasible opening up all the config files t...

2 0
12 followers
Viewed: 25 688 times
Version: 1.1
Category: How-tos

How to write a simple application component

Created 12 years ago by zaccaria, updated 12 years ago by zaccaria.

An application component is a confortable way for share information among all component of the application

15 7
14 followers
Viewed: 74 591 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

Created 12 years ago by isekream, updated 12 years ago by isekream.

Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integratio...

9 1
13 followers
Viewed: 73 295 times
Version: 1.1
Category: Tips

Using CJuiDialog to edit rows in a CGridView

Created 12 years ago by Russell England, updated 12 years ago by Russell England.

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 41 311 times
Version: 1.1
Category: Tips

How to create a wrapper for a js library

Created 12 years ago by zaccaria, updated 12 years ago by Maurizio Domba Cerin.

This wiki will explain how to include a javascript library in a widget.

16 1
20 followers
Viewed: 22 745 times
Version: 1.1
Category: How-tos

Using MBMenu and Rights to automatically create menu item for your modules

Created 12 years ago by dinhtrung, updated 12 years ago by dinhtrung.

Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

1 1
2 followers
Viewed: 18 096 times
Version: 1.1
Category: Tips

Search method of a model for filters when using dates - unixtimestamp in database

Created 13 years ago by Mukke, updated 12 years ago by jwerner.

I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

10 0
11 followers
Viewed: 37 192 times
Version: 1.1
Category: Tips

Integrating Wordpress and Yii: yet another approach

Created 12 years ago by goncin, updated 12 years ago by goncin.
6 2
11 followers
Viewed: 73 926 times
Version: 1.1
Category: How-tos

Url: hide index.php

Created 12 years ago by Hermans, updated 12 years ago by Hermans.

Maybe it looks simple, but some time ago I need some time to find a solution of this case. I finally got it, and I want to share that I also experienced such cases. So that it can make reference.

19 0
31 followers
Viewed: 292 659 times
Version: 1.1
Category: How-tos

yii vim eclimd how it works

Created 13 years ago by RusAlex, updated 12 years ago by RusAlex.

I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.

8 0
8 followers
Viewed: 12 861 times
Version: 1.1
Category: How-tos
Tags: eclimd, vim, vimrc

Using Yii with Nginx and PHP-FPM

Created 13 years ago by Leric, updated 12 years ago by grigori.

This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

18 0
20 followers
Viewed: 108 489 times
Version: 1.1
Category: How-tos

BaseModuleAR class with MultiActiveRecord

Created 12 years ago by dinhtrung, updated 12 years ago by Gustavo.

MultiActiveRecord is an extension that add support for multiple database connection for your application.

2 0
0 follower
Viewed: 14 682 times
Version: 1.1
Category: Tips