Wiki articles

Showing 621-640 of 823 items.

Integrating Wordpress and Yii: yet another approach

Created 13 years ago by goncin, updated 13 years ago by goncin.
6 2
11 followers
Viewed: 76 425 times
Version: 1.1
Category: How-tos

ISA hierarchy of tables inside a database and how to implement a single form

Created 13 years ago by pligor, updated 13 years ago by pligor.

Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench: ![MySQL workbench screenshot](http://s4.postimage.org/4tuwkm43d/Screenshot.pn...

1 0
3 followers
Viewed: 17 095 times
Version: 1.1
Category: How-tos

Creating a CSS Driven Drop Down Menu using CMenu

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

[CMenu] offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

19 1
25 followers
Viewed: 99 196 times
Version: 1.1
Category: How-tos

Multilanguage web site controlling by get request and database allowed languages

Created 13 years ago by Igor Ivanovic, updated 13 years ago by rei.

First, you have to have create database table for default language and allowed languages.

CREATE TABLE IF NOT EXISTS `tbl_languages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...
5 0
12 followers
Viewed: 30 952 times
Version: 1.1
Category: Tutorials

How to use an application behavior to maintain runtime configuration

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

In this tutorial will be explained a method to manage some configuration runtime. This excellent tutorial follows a similar approach, but requires to write a masterclass which all controllers are supposed to extend, following this wiki you can achieve the same by only editing the configuration.

26 0
25 followers
Viewed: 43 010 times
Version: 1.1
Category: How-tos

BaseModuleAR class with MultiActiveRecord

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

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

2 0
0 follower
Viewed: 15 273 times
Version: 1.1
Category: Tips

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

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

How to show ajax delete status in CGridView like flash messages

Created 13 years ago by hasanavi, updated 11 years ago by adlersd.

I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully dele...

17 0
30 followers
Viewed: 56 793 times
Version: 1.1
Category: How-tos

Using CJuiDialog to edit rows in a CGridView

Created 13 years ago by Russell England, updated 13 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: 42 032 times
Version: 1.1
Category: Tips

How to create a wrapper for a js library

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

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

16 1
20 followers
Viewed: 23 336 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

Created 13 years ago by isekream, updated 13 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: 74 603 times
Version: 1.1
Category: Tips

How to use EzComponents in Yii

Created 13 years ago by Ehsanjs, updated 13 years ago by samdark.

change your index.php

4 0
6 followers
Viewed: 13 709 times
Version: 1.1
Category: How-tos

Sub-domains with different databases in Yii!

Created 13 years ago by jwerd, updated 13 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: 26 219 times
Version: 1.1
Category: How-tos

Creating a parameterized LIKE query

Created 13 years ago by Steve Friedl, updated 12 years ago by Asgaroth.

It's common to see users wishing to make substring DB queries, using the % metacharacter used to match anything; in this FAQ we'll search the tbl_comments table from the blog tutorial hoping to find the text in $match in the content column

13 0
21 followers
Viewed: 144 547 times
Version: 1.1
Category: FAQs

Single table inheritance

Created 13 years ago by samdark, updated 13 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: 53 700 times
Version: 1.1
Category: How-tos

Local time zones and locales

Created 13 years ago by Russell England, updated 13 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: 100 932 times
Version: 1.1
Category: How-tos

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

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

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

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

Hi Folks,

7 0
21 followers
Viewed: 80 233 times
Version: 1.1
Category: Tutorials

Using Pear Mail Mail_Mime and Mail_Queue

Created 13 years ago by Loren, updated 13 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: 16 056 times
Version: 1.1
Category: How-tos

A simple class to use a different db for a module

Created 13 years ago by tydeas_dr, updated 13 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: 30 339 times
Version: 1.1
Category: Tips