controllers/BillController.php
/**
	 * Finds the Bill model based on its primary key value.
	 * If the model is not found, a 404 HTTP exception will be thrown.
	 *
	 * @param integer $id
	 *
	 * @return Bill the loaded model
	 * @throws NotFoundHttpException if the model cannot be found
	 */
Finds the Bill model based on its primary key value.
If the model is not found, a 404 HTTP exception will be thrown.

@param integer $id

@return Bill the loaded model
@throws NotFoundHttpException if the model cannot be found
Finds the Bill model based on its primary key value . If the model is not found a 404 HTTP exception will be thrown . @param integer $id @return Bill the loaded model @throws NotFoundHttpException if the model cannot be found
protected function findModel($id){
		if (($model = Bill::findOne($id)) !== NULL){
			return $model;
		}
		throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));
	}
protected function findModel ( $ id ) { if ( ( $ model = Bill :: findOne ( $ id ) ) !== NULL ) { return $ model ; } throw new NotFoundHttpException ( Yii :: t ( 'app' , 'The requested page does not exist.' ) ) ; }
Finds the Bill model based on its primary key value.
Finds the Bill model based on its primary key value .