Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
qiang.xue committed Jan 4, 2009
1 parent 901ec3f commit 49635cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/form.action.txt
Expand Up @@ -10,7 +10,7 @@ the login form example, the following code is needed:
public function actionLogin()
{
$form=new LoginForm;
if(Yii::app()->request->isPostRequest && isset($_POST['LoginForm']))
if(isset($_POST['LoginForm']))
{
// collects user input data
$form->attributes=$_POST['LoginForm'];
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/form.table.txt
Expand Up @@ -20,7 +20,7 @@ public function actionBatchUpdate()
// retrieve items to be updated in a batch mode
// assuming each item is of model class 'Item'
$items=$this->getItemsToUpdate();
if(Yii::app()->request->isPostRequest && isset($_POST['Item']))
if(isset($_POST['Item']))
{
$valid=true;
foreach($items as $i=>$item)
Expand Down

0 comments on commit 49635cb

Please sign in to comment.