Jump to content

error in my project


k.v.subbaiah

Recommended Posts

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)

Link to comment
Share on other sites

$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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.