Wiki articles in category Tutorials

Showing 1-20 of 219 items.

DB Driven CMenu (Widget)

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

Database Driven CMenu

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

Purpose

0 0
4 followers
Viewed: 8 694 times
Version: 1.1
Category: Tutorials
Tags:

Profiling user requests

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

Named scope - Get orphan AR without losing primary key

Created 14 years ago by cma, updated 14 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: 10 255 times
Version: 1.1
Category: Tutorials
Tags:

Translation from .txt file

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

Translation from .txt file Note:

0 2
4 followers
Viewed: 10 951 times
Version: 1.1
Category: Tutorials

Widget Personalizado

Created 13 years ago by Cálcio, updated 10 years ago by Cálcio.

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

6 0
4 followers
Viewed: 11 250 times
Version: 1.1
Category: Tutorials

ePay Integration - Bulgarian Payment Provider

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

Migration the database schema to another one

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

How to add an analogue clock widget on your skeleton application

Created 14 years ago by mocapapa, updated 14 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: 12 651 times
Version: 1.1
Category: Tutorials
Tags:

Deploy yii on pagoda box

Created 13 years ago by francis ja, updated 13 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: 12 801 times
Version: 1.1
Category: Tutorials

Ativando temas no Zii Widgets

Created 14 years ago by Ivan Wilhelm, updated 14 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 988 times
Version: 1.1
Category: Tutorials

XSS safe model content

Created 15 years ago by phiras, updated 15 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: 13 631 times
Version: 1.1
Category: Tutorials
Tags:

Making a CGridView to keep the selection between page changes

Created 11 years ago by bluyell, updated 11 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: 13 759 times
Version: 1.1
Category: Tutorials

Gettext and Poedit HOWTO

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

Example settings when using Gettext for i18n.

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

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 14 053 times
Version: 1.1
Category: Tutorials

How to display images in CJuiAutoComplete without extenstions

Created 10 years ago by Asmaa, updated 6 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: 14 086 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 11 years ago by sefburhan, updated 11 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: 14 295 times
Version: 1.1
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 11 years ago by jcagentzero, updated 11 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: 14 339 times
Version: all
Category: Tutorials

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

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

Define general array and variable and call it to anywhere in application

Created 12 years ago by bhavesh vaghela, updated 12 years ago by Maurizio Domba Cerin.

Create param.php file in protected/config

Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active

1 4
3 followers
Viewed: 14 827 times
Version: 1.1
Category: Tutorials
Tags: