Wiki articles

Showing 1-20 of 826 items.
0 0
1 follower
Viewed: 1 490 times
Version: 1.1
Category: Tips

Using rights extension with different table and column name

Created 11 years ago by Ibrar Turi Ibrar Turi, updated 11 years ago by Ibrar Turi 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: 7 426 times
Version: 1.1
Category: How-tos

MigrateCommand class for multiple sites using one code base

Created 13 years ago by Hudson Nguyen Hudson Nguyen, updated 13 years ago by Hudson Nguyen 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: 7 713 times
Version: 1.1
Category: How-tos
Tags:

DB Driven CMenu (Widget)

Created 11 years ago by Preacher Preacher, updated 11 years ago by Preacher 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: 8 165 times
Version: 1.1
Category: Tutorials

Database Driven CMenu

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

Purpose

0 0
4 followers
Viewed: 9 895 times
Version: 1.1
Category: Tutorials
Tags:

Things to Consider when application hosting on AppFog

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

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

1 0
1 follower
Viewed: 10 388 times
Version: 1.1
Category: Tips

make chart from custome queries using amcharts widget

Created 12 years ago by Narender Negi Narender Negi, updated 12 years ago by trond trond.

Use this code in your view,make sure to put EAmChartWidget in your extension folder. here is the url of widget http://www.yiiframework.com/extension/eamchartwidget/

0 0
3 followers
Viewed: 10 613 times
Version: Unknown (update)
Category: How-tos

Find geolocation info of client through another API

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) 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: 10 829 times
Version: 1.1
Category: How-tos

How to limit number of guest page views

Created 12 years ago by PeRoChAk PeRoChAk, updated 12 years ago by CeBe 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: 11 203 times
Version: 1.1
Category: How-tos

Help pages using Markdown view renderer

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

This tutorial describes how to write your views for help pages using Markdown syntax to be able to generate PDFs from same source files.

0 0
4 followers
Viewed: 11 297 times
Version: Unknown (update)
Category: Tutorials

Analyse the server's USER-AGENT against browsecap file to determine it's capability.

Created 11 years ago by Deepak Pradhan Deepak Pradhan, updated 11 years ago by Deepak Pradhan Deepak Pradhan.

Does your application need to know user's details on browser details, os and device type? We can use PHP's misc. function to achieve that provided you have an update copy of browsercap.ini

0 0
0 follower
Viewed: 11 331 times
Version: 2.0
Category: Tips

Named scope - Get orphan AR without losing primary key

Created 15 years ago by cma cma, updated 15 years ago by Steve Friedl 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: 11 484 times
Version: 1.1
Category: Tutorials
Tags:

Profiling user requests

Created 12 years ago by M0ka M0ka, updated 11 years ago by M0ka 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: 11 496 times
Version: 1.1
Category: Tutorials

More on SSE and Yii

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

This is not actually Yii involved.

1 0
1 follower
Viewed: 11 700 times
Version: Unknown (update)
Category: Tips

Tarpit for bad bots

Created 14 years ago by mithereal mithereal, updated 14 years ago by mithereal mithereal.

I recently built a tarpit for bad bots.

1 0
9 followers
Viewed: 11 873 times
Version: 1.1
Category: How-tos
Tags: bots, tarpit

Translation from .txt file

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

Translation from .txt file Note:

0 2
4 followers
Viewed: 12 154 times
Version: 1.1
Category: Tutorials

Useful Multilanguage extensions collection and use.

Created 12 years ago by cihappy cihappy, updated 11 years ago by Rohit Suthar Rohit Suthar.

What I want to achieve:

2 0
3 followers
Viewed: 12 240 times
Version: 1.1
Category: Tips

Widget Personalizado

Created 14 years ago by Cálcio Cálcio, updated 11 years ago by Cálcio Cálcio.

$this->render('index', array( 'dataProvider' => $dataProvider, )); `

6 0
4 followers
Viewed: 12 247 times
Version: 1.1
Category: Tutorials

Custom Archive in Blog system

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

Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

1 0
2 followers
Viewed: 12 379 times
Version: 1.1
Category: Tips

Localized version of CFormatter

Created 13 years ago by marcovtwout marcovtwout, updated 12 years ago by marcovtwout 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: 12 416 times
Version: 1.1
Category: How-tos