Wiki articles in category Tutorials

Showing 161-180 of 266 items.

Caching the config main.php

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

The config first required In CApplication constructor

4 1
14 followers
Viewed: 24 506 times
Version: 1.1
Category: Tutorials

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 14 years ago by Antonio Ramirez Antonio Ramirez, updated 14 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

The only thing required is simple, we just need to create a view that will be partially rendered by a call to a controller (using renderPartial) and make sure that we process output -setting to true the parameter on the function. Everything will work as expected but...

11 1
9 followers
Viewed: 28 257 times
Version: 1.1
Category: Tutorials

三步使用cronjobs自动化去执行Yii 控制台任务

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

这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

0 4
2 followers
Viewed: 29 412 times
Version: 1.1
Category: Tutorials

Our WebApp that will run without downtime during update/upgrade

Created 14 years ago by Pinoy Coderz Pinoy Coderz, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?

8 2
7 followers
Viewed: 16 027 times
Version: 1.1
Category: Tutorials
Tags: tutorial

Update/delete model with CJuiDialog (works in CGridView)

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

This tutorial will show you how to create Ajax dialog which allows to create new model, update or delete existing model. It works with simple links, CGridView button column links, adds a minimal amount of code and degrades gracefully with JavaScript turned off.

15 0
25 followers
Viewed: 79 024 times
Version: 1.1
Category: Tutorials

Multilanguage web site controlling by get request and database allowed languages

Created 14 years ago by Igor Ivanovic Igor Ivanovic, updated 14 years ago by rei 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: 32 225 times
Version: 1.1
Category: Tutorials

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

Created 14 years ago by Rodrigo Coelho Rodrigo Coelho, updated 14 years ago by Rodrigo Coelho 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: 15 072 times
Version: 1.1
Category: Tutorials
7 0
21 followers
Viewed: 81 894 times
Version: 1.1
Category: Tutorials

config Use MS SQL SERVER 2005 2008.

Created 14 years ago by vcxz_1982 vcxz_1982, updated 13 years ago by Asgaroth Asgaroth.

Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

3 0
8 followers
Viewed: 83 449 times
Version: 1.1
Category: Tutorials

Implementing a User Level Access System

Created 14 years ago by Antonio Ramirez Antonio Ramirez, updated 11 years ago by Phil Loaiza Phil Loaiza.

Please note that this article is a simple example and good security should be taken into account when we play with authentication systems.

27 0
37 followers
Viewed: 74 243 times
Version: 1.1
Category: Tutorials

Logout CSRF Protection

Created 14 years ago by Rodrigo Coelho Rodrigo Coelho, updated 14 years ago by Rodrigo Coelho Rodrigo Coelho.

CSRF is the acronymn for Cross-site request forgery.
It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

10 0
11 followers
Viewed: 31 852 times
Version: 1.1
Category: Tutorials

CListView AJAX filtering

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

This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users
In my case this has been done to filter users list

13 0
27 followers
Viewed: 79 887 times
Version: 1.1
Category: Tutorials

Yii tinymce结合syntaxHighlighter和syntax

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

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

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

Ativando temas no Zii Widgets

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

To configure Yii path in Windows platform

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

I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

0 6
4 followers
Viewed: 51 615 times
Version: 1.1
Category: Tutorials

Understanding Virtual Attributes and get/set methods

Created 14 years ago by Steve Friedl Steve Friedl, updated 13 years ago by GOsha GOsha.

When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

class Comment extends CActiveRecord {
    public $helperVariable;
    public function rules() { ... }
    ...
}

and then use them in the obvious way:

$var   = $model->helperVariable;
$rules = $model->rules();

This part everybody understa...

66 0
44 followers
Viewed: 210 252 times
Version: 1.1
Category: Tutorials

Understanding Autoloading, Helper Classes and Helper Functions

Created 14 years ago by Steve Friedl Steve Friedl, updated 13 years ago by GOsha GOsha.

Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

22 0
26 followers
Viewed: 126 001 times
Version: 1.1
Category: Tutorials

Impersonate Users within Yii Framework

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

For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

20 0
21 followers
Viewed: 28 541 times
Version: 1.1
Category: Tutorials

Understanding "Assets"

Created 14 years ago by Steve Friedl Steve Friedl, updated 13 years ago by GOsha GOsha.

Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

46 0
40 followers
Viewed: 214 913 times
Version: 1.1
Category: Tutorials

CJuiDialog to create new model

Created 14 years ago by zaccaria zaccaria, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

In this tutorial we will learn how to realize a create interface using a dialog.

55 0
64 followers
Viewed: 170 224 times
Version: 1.1
Category: Tutorials