Showing 61-80 of 219 items.

Custom Login Error Messages

Created 13 years ago by whoopass whoopass, updated 13 years ago by whoopass whoopass. 1 comment

The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the [Yii Blog Tutorial](http://www.yiiframework.com/doc/blog/1.1/en/prototype...

6 0
8
Viewed: 57 583 times
Version: 1.1
Category: Tutorials

How to setup FCKeditor

Created 17 years ago by krillzip krillzip, updated 14 years ago by Dark-Sun Dark-Sun. 2 comments

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5
Viewed: 42 024 times
Version: 1.1
Category: Tutorials

    How to add more information to Yii::app()->user

    Created 17 years ago by qiang qiang, updated 14 years ago by Yang He Yang He. 2 comments

    By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#application-component) which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, [CWebUser] already comes with a [name|CWebUser::name] property th...

    21 0
    28
    Viewed: 242 416 times
    Version: 1.1
    Category: Tutorials

    XSS safe model content

    Created 16 years ago by phiras phiras, updated 16 years ago by phiras phiras. 2 comments

    In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

    4 0
    1
    Viewed: 15 651 times
    Version: 1.1
    Category: Tutorials

      Multiple Databases and Multiple Domains

      Created 16 years ago by got 2 doodle got 2 doodle, updated 15 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 2 comments

      Add these lines in /config/main.php

      'components'=>array(
      .........
      		'db'=>array(
      			'connectionString' => 'mysql:host=localhost;dbname=database1',
      			'emulatePrepare' => true,
      			'username' => 'root',
      			'password' => 'itsasecret',
      			'charset' => 'utf8',
      		),
      		'db2'=>array(
      		    'class' => 'CDbConnection',
      			'connectionString' => 'mysql:host=localhost;dbname=databa...
      
      13 2
      15
      Viewed: 64 871 times
      Version: 1.1
      Category: Tutorials

      Extension Development (beginner)

      Created 12 years ago by sefburhan sefburhan, updated 12 years ago by CeBe CeBe. 2 comments

      To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

      Step 01: Have a Strategy

      • Is my extension just for fun/demonstration purposes or for everyday use in the real world? -...

      ePay Integration - Bulgarian Payment Provider

      Created 13 years ago by yasen yasen, updated 13 years ago by yasen yasen. 2 comments

      } ` V. The Order model would start with:

      class Order extends CActiveRecord
      {
      	const STATUS_INITIATED = 1;
      	const STATUS_CANCELED = 2;
      	const STATUS_EXPIRED = 3;
      	const STATUS_PAID = 4;
      	public $statuses = array(
      		self::STATUS_INITIATED => 'Initiated',
      		self::STATUS_CANCELED => 'Canceled',
      		self::STATUS_EXPIRED => 'Expired',
      		self::STATUS_PAID => 'Paid',
      	);
      // more cod...
      
      6 0
      5
      Viewed: 15 289 times
      Version: 1.1
      Category: Tutorials