From a3e9fbe0bc0625ba616ea87fd6178673b7e612c4 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Mon, 27 May 2013 03:33:09 +0200 Subject: [PATCH] fixed documentation example code of CFileValidator fixes #1458 --- framework/validators/CFileValidator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/validators/CFileValidator.php b/framework/validators/CFileValidator.php index 07c90e048..b74d104a5 100644 --- a/framework/validators/CFileValidator.php +++ b/framework/validators/CFileValidator.php @@ -26,6 +26,7 @@ * * When using CFileValidator with an active record, the following code is often used: *
+ *  $model->attribute = CUploadedFile::getInstance($model, "attribute");
  *  if($model->save())
  *  {
  *     // single upload