tabular input in yii

hi all,

 I was referring this code in controller 

public function actionBatchUpdate()

{

    // retrieve items to be updated in a batch mode

    // assuming each item is of model class 'Item'

    $items=$this->getItemsToUpdate();

    if(isset($_POST['Item']))

    {

        $valid=true;

        foreach($items as $i=>$item)

        {

            if(isset($_POST['Item'][$i]))

                $item->attributes=$_POST['Item'][$i];

            $valid=$item->validate() && $valid;

        }

        if($valid)  // all items are valid

            // ...do something here

    }

    // displays the view to collect tabular input

    $this->render('batchUpdate',array('items'=>$items));

}

could not understand where to write getItemsToUpdate();

Look at this

Take a look to this extension for tabular input managment.

Hi zaccaria,

You have done a great job. I followed the article. the error that i am getting is

             [b] "include(ClassRoom.php): failed to open stream: No such file or directory"[/b]