/**
     * Lists all Tuitionfees models.
     * @return mixed
     */
    public function actionIndex()
    {
        $searchModel = new ScholarsSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
		
		if(Yii::$app->request->post('hasEditable'))
		{
			$tuitionfeeId = Yii::$app->request->post('editableKey');
			$tuitionfee = Tuitionfees::findOne($tuitionfeeId);
			if(Yii::$app->user->can('update-tuitionfees'))
			{
			$out = Json::encode(['output'=>'','message'=>'']);
			$post = [];
			$posted = current($_POST['Tuitionfees']);
			$post['Tuitionfees'] = $posted;
			
			if($tuitionfee->load($post))
			{
				$tuitionfee->save();
			}
			echo $out;
			return;
			}
			else
			{
				throw new ForbiddenHttpException;
			}
			
		}
		
        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }
    /**
     * Lists all Uploadedforms models.
     * @return mixed
     */
    public function actionIndex()
    {
        $searchModel = new ScholarsSearch();
        $dataProvider = $searchModel->search(Yii::$app->request->queryParams);

        return $this->render('index', [
            'searchModel' => $searchModel,
            'dataProvider' => $dataProvider,
        ]);
    }