Wiki articles

Showing 561-580 of 823 items.

Model password confirmation field.

Created 12 years ago by twisted1919, updated 12 years ago by PashaL.

I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

8 0
19 followers
Viewed: 94 998 times
Version: 1.1
Category: How-tos

Simple authorization system

Created 12 years ago by Gustavo, updated 11 years ago by Gustavo.

How to create a simple (non-RBAC) authorization system

14 0
17 followers
Viewed: 45 649 times
Version: 1.1
Category: How-tos

How to write secure Yii1 applications

Created 12 years ago by François Gannaz, updated 3 years ago by François Gannaz.
  • Validate the user input (see below for details).
  • Protect (escape) your application output according to context (see below for a few output types, mostly HTML and SQL).
  • Test your application in debug mode.
    Set the constant YII_DEBUG to true (by default, it is defined in index.php) and put alongside error_reporting(E_ALL);. Then errors and warnings will stop the execution an...
80 0
114 followers
Viewed: 314 684 times
Version: 1.1
Category: How-tos

How to validate CSRF token with session

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

First of all, You must change component config to enable the default Yii CSRF validation.

21 0
27 followers
Viewed: 102 384 times
Version: 1.1
Category: How-tos
Tags: CSRF, session

Yii Security-extended guide

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

This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in you...

6 6
12 followers
Viewed: 31 633 times
Version: 1.1
Category: Tips

How to re enable logging during unit testing

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

Some of you have experienced the need to log some information while doing unit testing, due to the fact that the information given in the summary is just not enough, to know why the test is actually failing. this article focuses on 2 ways to get you logs up and running again.

11 0
10 followers
Viewed: 26 022 times
Version: 1.1
Category: How-tos

Application-driven database with CDbMigration and an extended CActiveRecord

Created 12 years ago by Tudor Ilisoi, updated 12 years ago by Tudor Ilisoi.

This is an incipient implementation of application-driven database with Yii.

8 0
10 followers
Viewed: 16 767 times
Version: 1.1
Category: Others

How to insert a Simple Dialog Box

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

I build this simple PHP class (DialogBox.php at the bottom of this wiki) to help you in the dialog box usage on Yii applications. The goal is run any Yii actions into this dialog box and return the resulting value to the calling instance.

5 0
9 followers
Viewed: 40 059 times
Version: 1.1
Category: How-tos

How to learn Yii?!

Created 12 years ago by yJeroen, updated 4 years ago by CeBe.

Here is a step by step To-Do list for Yii beginners. The list is an advice of what tutorials and documentation you can walk through to get a full understanding of the Yii Framework. These can be a help to learn Yii.

17 0
21 followers
Viewed: 120 733 times
Version: all
Category: Tutorials

Understanding series articles

Created 13 years ago by GOsha, updated 13 years ago by GOsha.

Here are all wiki articles from "Understanding" series by Yii wiki contributors:

16 0
12 followers
Viewed: 15 075 times
Version: 1.1
Category: Tips

Understanding Scenarios

Created 13 years ago by Luke Jurgs, updated 11 years ago by Luke Jurgs.

Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

23 0
39 followers
Viewed: 180 772 times
Version: 1.1
Category: Tutorials

File uploads in CForm (Form builder)

Created 13 years ago by Luke Jurgs, updated 13 years ago by Luke Jurgs.

While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

9 0
10 followers
Viewed: 52 728 times
Version: 1.1
Category: How-tos

Autocomplete in console command

Created 13 years ago by Stamm, updated 13 years ago by Stamm.

Missed of autocomplete in bash console commands yii make me sad.

3 0
4 followers
Viewed: 15 805 times
Version: 1.1
Category: Tutorials

CGridView: Update/create records in a CJuiDialog

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

My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

12 0
26 followers
Viewed: 58 018 times
Version: 1.1
Category: Tips
14 0
20 followers
Viewed: 77 741 times
Version: 1.1
Category: Tips

Functional Testing in Yii using Goutte and PHPUnit

Created 13 years ago by putera, updated 13 years ago by putera.

We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).

6 0
17 followers
Viewed: 30 417 times
Version: 1.1
Category: Tutorials

TDD with PHPUnit_Story and Yii

Created 13 years ago by sidewinder, updated 13 years ago by sidewinder.

Having said all of that, I want to add that the purpose of this article is not to convince anyone to write tests or design following TDD patterns. I'm not going to change the world to what I think is good. It's just about showing how to use some tools together with Yii Framework.

7 0
9 followers
Viewed: 24 662 times
Version: 1.1
Category: Tutorials

Serve jQuery and jQuery-UI from Google's CDN

Created 13 years ago by Yeti, updated 12 years ago by fad.

There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

14 0
17 followers
Viewed: 43 394 times
Version: 1.1
Category: Tutorials

Common Yii questions

Created 13 years ago by dckurushin, updated 13 years ago by migajek.

Put attention of the question answer form

14 0
23 followers
Viewed: 59 458 times
Version: 1.1
Category: FAQs

Windows Web Development With AMPPS, NetBeans and XDebug

Created 13 years ago by morcen, updated 13 years ago by morcen.
  1. Operating system: Windows
4 0
6 followers
Viewed: 38 990 times
Version: 1.1
Category: Tutorials