Wiki articles

Showing 81-100 of 651 items.

Uploading multiple images with CMultiFileUpload

Created 13 years ago by rsingh, updated 13 years ago by Maurizio Domba Cerin.
33 0
38 followers
Viewed: 129 781 times
Version: 1.1
Category: How-tos

I18n subdomains and url-rules

Created 14 years ago by Y!!, updated 13 years ago by atrandafir.

This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)

7 0
17 followers
Viewed: 45 240 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

Prevent asset publishing for CListView

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

If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:

2 0
6 followers
Viewed: 14 173 times
Version: 1.1
Category: How-tos

How to avoid multiple Ajax Request

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

CHtml::ajaxLink(), CHtml::ajaxSubmitButton() and similar methods are great, but if they are located inside a portion of the page that is already loaded via ajax something bad will happen, something you may even not notice if you are not using tools like firebugs...

17 0
27 followers
Viewed: 66 214 times
Version: 1.1
Category: How-tos

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 170 times
Version: 1.1
Category: Tutorials

Yii实战中8个必备常用的扩展,模块和

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

在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.

2 3
9 followers
Viewed: 39 932 times
Version: 1.1
Category: Tips

A simple action for XUpload extension

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

All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action

3 0
5 followers
Viewed: 20 235 times
Version: 1.1
Category: Tips

Using Yii with Oracle through PDO

Created 13 years ago by Trejder, updated 12 years ago by waterloomatt.

When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

1 0
7 followers
Viewed: 69 087 times
Version: 1.1
Category: Tips

Keeping a running total in a CGridView

Created 13 years ago by Steve Friedl, updated 12 years ago by tydeas_dr.

This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!

22 0
19 followers
Viewed: 41 666 times
Version: 1.1
Category: How-tos
Tags: CGridView

Syntax check

Created 12 years ago by Russell England, updated 12 years ago by Russell England.

This will syntax check each php file recursively from the current directory.

4 0
2 followers
Viewed: 14 815 times
Version: 1.1
Category: Tips
Tags: php, syntax

CListView AJAX filtering

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

Converting an Artisteer Theme to Yii

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

There are two approaches to converting an Artisteer theme. The first is to simply copy an existing Artisteer – based Yii theme, overlay the CSS and images, then make any necessary tweaks to the layout files. This is undoubtedly the fastest route, but won't teach you as much as doing it from scratch. That's ok. Sometimes getting the job done is the top priority. The second approach is more gen...

6 0
12 followers
Viewed: 30 299 times
Version: 1.1
Category: How-tos

Logout CSRF Protection

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

Using Pear Mail Mail_Mime and Mail_Queue

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

require_once 'Mail.php'; // PEAR Mail require_once 'Mail/mime.php'; // PEAR Mail_mime require_once 'Mail/Queue.php'; // PEAR Mail_queue require_once 'Mail/Queue/Container/mdb2.php'; // PEAR Mail_queue mdb2

7 0
11 followers
Viewed: 15 796 times
Version: 1.1
Category: How-tos

How to install pdo_oci

Created 13 years ago by gallego123, updated 12 years ago by gallego123.

From: http://lacot.org/ and me.

1 0
3 followers
Viewed: 36 415 times
Version: 1.1
Category: How-tos

A simple class to use a different db for a module

Created 12 years ago by tydeas_dr, updated 12 years ago by Maurizio Domba Cerin.

What would you do if you want/need to have a different than the main database connection in an module's models?

8 0
12 followers
Viewed: 29 797 times
Version: 1.1
Category: Tips

Implementing a Registration Process using the yii-user-management module

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

Hi Folks,

7 0
21 followers
Viewed: 79 483 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 630 times
Version: 1.1
Category: Tutorials

Local time zones and locales

Created 12 years ago by Russell England, updated 12 years ago by Russell England.

The sql 'set time_zone' ensures that all dates retrieved are in UTC time. If your MySql server has the time zone names installed then use 'UTC' instead of '+00:00'.

Components

Copy the code at the end of this wiki for LocalTime.php and DefaultDateTimeParser.php int...

13 2
23 followers
Viewed: 99 715 times
Version: 1.1
Category: How-tos

Getting nulls from database instead of empty strings

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

To get null from database instead of empty strings you need to set up your DB connection as follows:

13 0
11 followers
Viewed: 20 042 times
Version: 1.1
Category: Tips
Tags: database, null