public function actionIndex() { $orders = Order::model()->findAll(); $this->render('index', array('orders' => $orders)); }