Php Fatal Error. Why I Am Getting This Error?

I created a dropDownList with values I get from a model I created. In my OptionRecord model, I have this code

public function getProposedMode(){

		return array(

		'Public Bidding',

		'Direct Contracting',



		'Small Value',



In my controller, I add the ff. lines on my actionCreate

public function actionCreate()


		$options = new OptionRecord();

		$model=new PurchaseRequest;

		// Uncomment the following line if AJAX validation is needed

		// $this->performAjaxValidation($model);




			$model->proposed_mode = $options->getProposedModeatIndex($model->proposed_mode);





		$model->proposed_mode = $options->getProposedModeIndex($model->proposed_mode);





Where did I go wrong? please help. thank you.

Because on one line you have


on another


the method you posted is called


and it doesnt take params btw

Basically, the answer is: you’re getting this error because of being inattentive.