Wiki articles

Showing 1-20 of 650 items.

Using rights extension with different table and column name

Created 6 years ago by Ibrar Turi, updated 6 years ago by Ibrar Turi.

Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.

0 0
2 followers
Viewed: 4 739 times
Version: 1.1
Category: How-tos

MigrateCommand class for multiple sites using one code base

Created 7 years ago by Hudson Nguyen, updated 7 years ago by Hudson Nguyen.

My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

0 0
2 followers
Viewed: 4 935 times
Version: 1.1
Category: How-tos
Tags:

DB Driven CMenu (Widget)

Created 6 years ago by Preacher, updated 6 years ago by Preacher.

Awhile ago I was trying to find a database driven CMenu system to add to my web applications. This always seemed to me that it would be a lot easier to manage if it where in a database. So the following is the results of that effort:

1 0
1 follower
Viewed: 5 094 times
Version: 1.1
Category: Tutorials

Profiling user requests

Created 6 years ago by M0ka, updated 6 years ago by M0ka.

How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.

1 0
3 followers
Viewed: 5 735 times
Version: 1.1
Category: Tutorials

Things to Consider when application hosting on AppFog

Created 5 years ago by VINAY Kr. SHARMA, updated 5 years ago by VINAY Kr. SHARMA.

I faced many issues when hosted our company website on AppFog.

1 0
1 follower
Viewed: 5 862 times
Version: 1.1
Category: Tips

Database Driven CMenu

Created 6 years ago by Preacher, updated 6 years ago by CeBe.

Purpose

0 0
4 followers
Viewed: 6 299 times
Version: 1.1
Category: Tutorials
Tags:

Find geolocation info of client through another API

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

This wiki shows how to get the geolocation info of the client using another server API It could be write also as extension but there are a lots of APIs that change the below code So, I wrote the below code that works for one of them (using www.geoplugin.net)

1 0
2 followers
Viewed: 6 374 times
Version: 1.1
Category: How-tos

Where to implement knowledge about the addresses of the controller?

Created 6 years ago by Petr.Grishin, updated 6 years ago by Petr.Grishin.

Knowledge is necessary to determine the address of the controller in a single layer system. This allows you to quickly search and painlessly produce refactoring controllers and their addresses.

1 0
2 followers
Viewed: 6 698 times
Version: 1.1
Category: Tutorials

Image Puzzle Game

Created 6 years ago by nachi, updated 6 years ago by CeBe.

I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.

2 0
4 followers
Viewed: 6 913 times
Version: 1.1
Category: Others
Tags: game, image, puzzle

Provide SVG when the browser supports it, else PNG (using CHtml::image overload)

Created 5 years ago by le_top, updated 5 years ago by le_top.

Modern browsers support SVG, older browsers do not. This replacement for CHtml::image() allows you to handle to propose SVG in an efficient way with PNG as a fallback.

1 0
1 follower
Viewed: 6 940 times
Version: 1.1
Category: Tips

How to limit number of guest page views

Created 6 years ago by PeRoChAk, updated 6 years ago by CeBe.

In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

2 0
5 followers
Viewed: 7 069 times
Version: 1.1
Category: How-tos

How to nest DB transactions without actually nesting them.

Created 5 years ago by le_top, updated 5 years ago by le_top.

To secure your database from inconsistencies resulting from failing (complex) operations, you (should) use transactions. However, complex methods often rely on other complex methods that themselves build on transactions. This HowTo presents a method to nest or embed transactions without relying on the database's nesting capabilities.

1 0
1 follower
Viewed: 7 461 times
Version: 1.1
Category: How-tos

Localized version of CFormatter

Created 7 years ago by marcovtwout, updated 6 years ago by marcovtwout.

To replace the application component 'format', which is registered by CApplication by default, you can put this in your application 'components' config:

2 0
5 followers
Viewed: 7 571 times
Version: 1.1
Category: How-tos

Using Apostle.io to send formatted, trackable emails from Yii applications

Created 6 years ago by MikeT, updated 5 months ago by Maurizio Domba Cerin.

Apostle provides a nifty facility for sending app-generated, transactional emails from your application including Wordpress-like mail formatting and full tracking (delivery, opening, clicking etc.) of all emails sent. No need to set up email facilities on your app server!

2 1
2 followers
Viewed: 7 597 times
Version: 1.1
Category: How-tos
Tags: email, mail

Named scope - Get orphan AR without losing primary key

Created 10 years ago by cma, updated 9 years ago by Steve Friedl.

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 7 758 times
Version: 1.1
Category: Tutorials
Tags:

Translation from .txt file

Created 5 years ago by Yii3, updated 5 years ago by Yii3.

Translation from .txt file Note:

0 2
4 followers
Viewed: 7 763 times
Version: 1.1
Category: Tutorials

Integrate Zend 2 XML writer into Yii

Created 6 years ago by Jonny, updated 6 years ago by CeBe.

By Integrating the Zend 2.* framework into Yii you can quickly and painlessly generate XML outputs from your controllers. This will be helpful to anyone who has never done this before or only done it with Zend 1 as the introduction of namespaces can be strange when you first view them.

2 0
4 followers
Viewed: 7 822 times
Version: 1.1
Category: Tutorials
Tags: XML, zend

Migration the database schema to another one

Created 6 years ago by Kostas Apazidis (KonApaz), updated 6 years ago by Kostas Apazidis (KonApaz).

In this wiki I will show how to copy a schema from a database to another one

1 0
5 followers
Viewed: 7 824 times
Version: 1.1
Category: Tutorials
1 3
3 followers
Viewed: 7 863 times
Version: 1.1
Category: How-tos
1 0
5 followers
Viewed: 7 881 times
Version: 1.1
Category: How-tos
Tags: i18n, Routing