Admin panel update
This commit is contained in:
1 parent
c0c8ba61c6
commit
862c7e57b7
27 files changed
+542
-99
No files matched your search
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* LoginForm class.
|
||||
* LoginForm is the data structure for keeping
|
||||
* user login form data. It is used by the 'login' action of 'SiteController'.
|
||||
*/
|
||||
class AddPhotosToArticleForm extends CFormModel {
|
||||
|
||||
public $articleName;
|
||||
public $photoUrlText;
|
||||
|
||||
/**
|
||||
* Declares the validation rules.
|
||||
* The rules state that username and password are required,
|
||||
* and password needs to be authenticated.
|
||||
*/
|
||||
public function rules()
|
||||
{
|
||||
return array(
|
||||
// username and password are required
|
||||
array('articleName, photoUrlText', 'required'),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Declares attribute labels.
|
||||
*/
|
||||
public function attributeLabels()
|
||||
{
|
||||
return array(
|
||||
'articleName' => 'Article Name',
|
||||
'photoUrlText' => 'Photo Url Text',
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user