Wiki articles

Showing 641-660 of 823 items.

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 146 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: 73 833 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 644 times
Version: 1.1
Category: Tutorials

Getting nulls from database instead of empty strings

Created 14 years ago by samdark samdark, updated 14 years ago by samdark 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: 21 653 times
Version: 1.1
Category: Tips
Tags: database, null

Converting an Artisteer Theme to Yii

Created 14 years ago by bglee bglee, updated 14 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: 31 178 times
Version: 1.1
Category: How-tos

How to write a simple application component

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

An application component is a confortable way for share information among all component of the application

15 7
14 followers
Viewed: 77 126 times
Version: 1.1
Category: How-tos

How to generate Yii-like Documentation

Created 14 years ago by Asgaroth Asgaroth, updated 12 years ago by fsb fsb.

Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator...

41 0
42 followers
Viewed: 50 776 times
Version: 1.1
Category: How-tos
Tags: doc

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

Syntax check

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

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

4 0
2 followers
Viewed: 16 871 times
Version: 1.1
Category: Tips
Tags: php, syntax

Using International Dates

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

So here is my complete solution - note that I'm using the 'short' date format throughout.

15 0
24 followers
Viewed: 51 464 times
Version: 1.1
Category: How-tos

A simple action for XUpload extension

Created 14 years ago by tydeas_dr tydeas_dr, updated 14 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: 21 389 times
Version: 1.1
Category: Tips

Relations: BELONGS_TO versus HAS_ONE

Created 14 years ago by Steve Friedl Steve Friedl, updated 12 years ago by Jorgee Jorgee.

It's very common to see new Yii users confusing the relations HAS_ONE and BELONGS_TO, and getting it wrong means you won't get proper values back. And though we'll talk about HAS_MANY as well, we're specifically omitting the MANY_MANY relation because it's a whole different animal.

56 0
35 followers
Viewed: 167 304 times
Version: 1.1
Category: FAQs

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

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

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

2 3
9 followers
Viewed: 41 941 times
Version: 1.1
Category: Tips

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

How to avoid multiple Ajax Request

Created 14 years ago by nickcv nickcv, updated 14 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: 68 036 times
Version: 1.1
Category: How-tos

Prevent asset publishing for CListView

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

Uploading multiple images with CMultiFileUpload

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

How-To: Create a REST API

Created 14 years ago by jwerner jwerner, updated 10 years ago by Rohit Suthar Rohit Suthar.

This article will explain how to create a REST API with the Yii framework.

98 2
123 followers
Viewed: 515 098 times
Version: 1.1
Category: How-tos

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

An easy way to use escopes and CActiveDataProvider

Created 14 years ago by Rafael Garcia Rafael Garcia, updated 14 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: 38 448 times
Version: 1.1
Category: Tips