Showing 641-652 of 652 items.

How to use Highslide for image popups

Created 17 years ago by mocapapa mocapapa, updated 15 years ago by wei wei. 0 comments

>Highslide JS is an open source JavaScript software, offering a Web 2.0 approach to popup windows. It streamlines the use of thumbnail images and HTML popups on web pages. > > + No plugins like Flash or Java required. > + Popup blockers are no problem. The content expands within the active browser window. > + Single click. After opening the image or HTML popup, the user can scroll further down...

1 0
2
Viewed: 36 914 times
Version: 1.1
Category: Tutorials

How to log changes of ActiveRecords?

Created 17 years ago by pfth pfth, updated 14 years ago by Yang He Yang He. 7 comments

A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a [CActiveRecord] Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecor...

31 1
47
Viewed: 84 885 times
Version: 1.1
Category: Tutorials

Q: My yiic tool cannot run model and crud commands. Why?

Created 17 years ago by qiang qiang, updated 17 years ago by mishhh mishhh. 1 comment

Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

0 0
1
Viewed: 19 707 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: 240 277 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: 40 079 times
    Version: 1.1
    Category: Tutorials

      How to upload a file using a model

      Created 17 years ago by qiang qiang, updated 11 years ago by samdark samdark. 8 comments

      First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.

      66 4
      64
      Viewed: 534 763 times
      Version: 1.1
      Category: Tutorials

      How to customize the error message of a validation rule

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

      Validators extending from [CValidator] all have a property named [message|CValidator::message]. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

      13 0
      14
      Viewed: 153 563 times
      Version: 1.1
      Category: Tutorials