Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2016, 10:18 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,593
FounderSim is on a distinguished road
Default Fatal error: Class 'Custom' contains 1 abstract method and must therefore be declared abstract or

Quote:
Fatal error: Class 'CustomClass" contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Model::save) in path/catisserie/classes/class_customclass.php on line 80

confused.

Line 80 is last line of file. This happens when I initiate the class
$boom = new CustomClass();

I got no paramaters in my constructor. it's more of a helper.
__________________
Reply With Quote
  #2  
Old 02-17-2016, 10:56 AM
pachoofoosh's Avatar
pachoofoosh pachoofoosh is offline
Artist
 
Join Date: Dec 2012
Location: New York
Posts: 98
Gender: Unknown/Other
Credits: 15,453
pachoofoosh is on a distinguished road
Default

Mysidia's Model class is abstract, so any classes that inherit it need to define its methods. The error is saying you do not have a save() method in customclass.php.

The class_model.php's save method:
PHP Code:
protected abstract function save($field$value); 
Try adding this to your class_customclass.php file:
PHP Code:
protected function save($field$value) {} 
__________________
The calzones... betrayed me?
Reply With Quote
  #3  
Old 02-17-2016, 08:28 PM
FounderSim FounderSim is offline
Member
 
Join Date: Sep 2014
Posts: 65
Gender: Male
Credits: 7,593
FounderSim is on a distinguished road
Default

Quote:
Originally Posted by pachoofoosh View Post
Mysidia's Model class is abstract, so any classes that inherit it need to define its methods. The error is saying you do not have a save() method in customclass.php.

The class_model.php's save method:
PHP Code:
protected abstract function save($field$value); 
Try adding this to your class_customclass.php file:
PHP Code:
protected function save($field$value) {} 
Good stuff. Works like a charm. I suppose I should have looked into the Model class. =}
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 12:46 PM.

Currently Active Users: 9799 (0 members and 9799 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636