Wiki articles

Showing 81-100 of 826 items.

To configure Yii path in Windows platform

Created 15 years ago by Coda Coda, updated 15 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: 53 083 times
Version: 1.1
Category: Tutorials

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

An easy way to display a success page using flash messages

Created 15 years ago by qiang qiang, updated 15 years ago by qiang qiang.

We often need to display a success page after the user has submitted a form without problem. We may show some welcome message after a user registers a new account. There are many ways to implement this workflow. In this article, I will explain a method that exploits flash messages.

21 0
29 followers
Viewed: 62 428 times
Version: 1.1
Category: Tips

An easy way to use escopes and CActiveDataProvider

Created 15 years ago by Rafael Garcia Rafael Garcia, updated 15 years ago by Rafael Garcia Rafael Garcia.

Often used scopes to define criteria in our models. This is a very useful feature as it ensures that in any part of application applying the criteria defined by the scope when called it.

1 1
10 followers
Viewed: 39 786 times
Version: 1.1
Category: Tips

Ativando temas no Zii Widgets

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

Cambiando el diseño de JuiWidgets

Created 15 years ago by Luis Lobo Borobia Luis Lobo Borobia, updated 15 years ago by Ivan Wilhelm Ivan Wilhelm.

Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

0 0
4 followers
Viewed: 17 743 times
Version: 1.1
Category: Tutorials
Tags:

Theming your Zii Widgets

Created 15 years ago by Luis Lobo Borobia Luis Lobo Borobia, updated 15 years ago by Ivan Wilhelm Ivan Wilhelm.

One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

17 0
31 followers
Viewed: 65 156 times
Version: 1.1
Category: Tutorials

Uploading multiple images with CMultiFileUpload

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

I18n subdomains and url-rules

Created 16 years ago by Y!! Y!!, updated 15 years ago by atrandafir 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: 51 932 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

Prevent asset publishing for CListView

Created 15 years ago by Mike Mike, updated 15 years ago by Mike 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: 15 863 times
Version: 1.1
Category: How-tos

How to avoid multiple Ajax Request

Created 15 years ago by nickcv nickcv, updated 15 years ago by nickcv 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: 70 199 times
Version: 1.1
Category: How-tos

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 15 295 times
Version: 1.1
Category: Tutorials

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

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

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

2 3
9 followers
Viewed: 43 569 times
Version: 1.1
Category: Tips

A simple action for XUpload extension

Created 15 years ago by tydeas_dr tydeas_dr, updated 15 years ago by tydeas_dr 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: 22 474 times
Version: 1.1
Category: Tips

Using Yii with Oracle through PDO

Created 15 years ago by Trejder Trejder, updated 15 years ago by waterloomatt 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: 76 023 times
Version: 1.1
Category: Tips

Keeping a running total in a CGridView

Created 15 years ago by Steve Friedl Steve Friedl, updated 15 years ago by tydeas_dr tydeas_dr.

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

22 0
19 followers
Viewed: 83 598 times
Version: 1.1
Category: How-tos
Tags: CGridView

Syntax check

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

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

4 0
2 followers
Viewed: 18 165 times
Version: 1.1
Category: Tips
Tags: php, syntax

CListView AJAX filtering

Created 15 years ago by Draga Draga, updated 15 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: 81 136 times
Version: 1.1
Category: Tutorials

Converting an Artisteer Theme to Yii

Created 15 years ago by bglee bglee, updated 15 years ago by bglee 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: 32 284 times
Version: 1.1
Category: How-tos

Logout CSRF Protection

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