k.v.subbaiah Posted March 24, 2012 Share Posted March 24, 2012 Fatal error: Method name must be a string in C:\xampp\htdocs\cmsv2room\model\getTimeTableClass.php on line 216 i am using setters ang getters for arrays while setting an array in a array i get this error the line in which i got the error is below $gettimetableObject->$setFacnameArray($FacnameArrayR); actually iam storing arrays in an array $FacnameArrayR is an array storing in a array with help of object(concept of setters) Quote Link to comment https://forums.phpfreaks.com/topic/259621-error-in-my-project/ Share on other sites More sharing options...
jcbones Posted March 24, 2012 Share Posted March 24, 2012 $gettimetableObject->$setFacnameArray($FacnameArrayR); //you are assigning the method name via a variable that MOST LIKELY doesn't exist. To fix: $gettimetableObject->setFacnameArray($FacnameArrayR); //remove the $ on the method name. Quote Link to comment https://forums.phpfreaks.com/topic/259621-error-in-my-project/#findComment-1330713 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.