Wiki articles in category Tutorials

Showing 1-20 of 219 items.

DB Driven CMenu (Widget)

Created 9 years ago by Preacher, updated 9 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: 6 489 times
Version: 1.1
Category: Tutorials

Database Driven CMenu

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

Purpose

0 0
4 followers
Viewed: 7 818 times
Version: 1.1
Category: Tutorials
Tags:

Profiling user requests

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

Named scope - Get orphan AR without losing primary key

Created 13 years ago by cma, updated 13 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: 9 376 times
Version: 1.1
Category: Tutorials
Tags:

Translation from .txt file

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

Translation from .txt file Note:

0 2
4 followers
Viewed: 9 979 times
Version: 1.1
Category: Tutorials

Widget Personalizado

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

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

6 0
4 followers
Viewed: 10 537 times
Version: 1.1
Category: Tutorials

Migration the database schema to another one

Created 9 years ago by Kostas Apazidis (KonApaz), updated 9 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: 11 303 times
Version: 1.1
Category: Tutorials

ePay Integration - Bulgarian Payment Provider

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

} ` V. The Order model would start with:

class Order extends CActiveRecord
{
	const STATUS_INITIATED = 1;
	const STATUS_CANCELED = 2;
	const STATUS_EXPIRED = 3;
	const STATUS_PAID = 4;
	public $statuses = array(
		self::STATUS_INITIATED => 'Initiated',
		self::STATUS_CANCELED => 'Canceled',
		self::STATUS_EXPIRED => 'Expired',
		self::STATUS_PAID => 'Paid',
	);
// more cod...
6 0
5 followers
Viewed: 11 502 times
Version: 1.1
Category: Tutorials

How to add an analogue clock widget on your skeleton application

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


Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

1 0
1 follower
Viewed: 11 719 times
Version: 1.1
Category: Tutorials
Tags:

Deploy yii on pagoda box

Created 12 years ago by francis ja, updated 11 years ago by francis ja.

pagoda box is very useful tool for a programmer to test their php app online so its very useful one. For deploying code pagodabox use git command

4 0
5 followers
Viewed: 11 916 times
Version: 1.1
Category: Tutorials

Where to implement knowledge about the addresses of the controller?

Created 9 years ago by Petr.Grishin, updated 9 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: 12 241 times
Version: 1.1
Category: Tutorials

Ativando temas no Zii Widgets

Created 13 years ago by Ivan Wilhelm, updated 13 years ago by Ivan Wilhelm.

Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.

4 2
4 followers
Viewed: 12 346 times
Version: 1.1
Category: Tutorials

Making a CGridView to keep the selection between page changes

Created 10 years ago by bluyell, updated 10 years ago by CeBe.

You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

2 0
3 followers
Viewed: 12 685 times
Version: 1.1
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 9 years ago by Asmaa, updated 5 years ago by samdark.

I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:

0 0
2 followers
Viewed: 12 787 times
Version: 1.1
Category: Tutorials

XSS safe model content

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

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 12 815 times
Version: 1.1
Category: Tutorials
Tags:

Automatically get the SVN Revision Number of your Project

Created 10 years ago by jcagentzero, updated 9 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 12 821 times
Version: all
Category: Tutorials

Gettext and Poedit HOWTO

Created 9 years ago by Maug Lee, updated 9 years ago by Maug Lee.

Example settings when using Gettext for i18n.

0 0
2 followers
Viewed: 13 010 times
Version: 1.1
Category: Tutorials

Yii tinymce结合syntaxHighlighter和syntax

Created 12 years ago by Darwin Wen, updated 12 years ago by Darwin Wen.

首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

1 0
0 follower
Viewed: 13 165 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 10 years ago by sefburhan, updated 10 years ago by CeBe.

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 13 408 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 624 times
Version: 1.1
Category: Tutorials