Wiki articles

Showing 101-120 of 826 items.

Using Pear Mail Mail_Mime and Mail_Queue

Created 15 years ago by Loren Loren, updated 15 years ago by Loren 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: 17 825 times
Version: 1.1
Category: How-tos

How to install pdo_oci

Created 16 years ago by gallego123 gallego123, updated 15 years ago by gallego123 gallego123.

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

1 0
3 followers
Viewed: 39 264 times
Version: 1.1
Category: How-tos

A simple class to use a different db for a module

Created 15 years ago by tydeas_dr tydeas_dr, updated 15 years ago by Maurizio Domba Cerin 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: 32 801 times
Version: 1.1
Category: Tips
7 0
21 followers
Viewed: 83 747 times
Version: 1.1
Category: Tutorials

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

Created 15 years ago by Rodrigo Coelho Rodrigo Coelho, updated 15 years ago by Rodrigo Coelho 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: 16 021 times
Version: 1.1
Category: Tutorials

Local time zones and locales

Created 15 years ago by Russell England Russell England, updated 15 years ago by Russell England 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: 106 444 times
Version: 1.1
Category: How-tos

Getting nulls from database instead of empty strings

Created 15 years ago by samdark samdark, updated 15 years ago by samdark 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: 23 391 times
Version: 1.1
Category: Tips
Tags: database, null

Single table inheritance

Created 15 years ago by samdark samdark, updated 15 years ago by samdark 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: 57 098 times
Version: 1.1
Category: How-tos

Sub-domains with different databases in Yii!

Created 15 years ago by jwerd jwerd, updated 15 years ago by jwerd 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: 28 605 times
Version: 1.1
Category: How-tos

How to write a simple application component

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

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

15 7
14 followers
Viewed: 78 836 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

Created 15 years ago by isekream isekream, updated 15 years ago by isekream 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: 78 635 times
Version: 1.1
Category: Tips

Using CJuiDialog to edit rows in a CGridView

Created 15 years ago by Russell England Russell England, updated 15 years ago by Russell England 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: 45 463 times
Version: 1.1
Category: Tips

How to create a wrapper for a js library

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

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

16 1
20 followers
Viewed: 26 446 times
Version: 1.1
Category: How-tos

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

Created 14 years ago by dinhtrung dinhtrung, updated 14 years ago by dinhtrung 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: 19 554 times
Version: 1.1
Category: Tips

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

Created 15 years ago by Mukke Mukke, updated 14 years ago by jwerner 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: 40 725 times
Version: 1.1
Category: Tips

Integrating Wordpress and Yii: yet another approach

Created 14 years ago by goncin goncin, updated 14 years ago by goncin goncin.
6 2
11 followers
Viewed: 80 493 times
Version: 1.1
Category: How-tos

Url: hide index.php

Created 14 years ago by Hermans Hermans, updated 14 years ago by Hermans 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: 336 371 times
Version: 1.1
Category: How-tos

yii vim eclimd how it works

Created 15 years ago by RusAlex RusAlex, updated 14 years ago by RusAlex 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: 14 837 times
Version: 1.1
Category: How-tos
Tags: eclimd, vim, vimrc

Using Yii with Nginx and PHP-FPM

Created 15 years ago by Leric Leric, updated 14 years ago by grigori 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: 118 917 times
Version: 1.1
Category: How-tos

BaseModuleAR class with MultiActiveRecord

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

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

2 0
0 follower
Viewed: 17 597 times
Version: 1.1
Category: Tips