You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Fatal error when trying to extend standard Answer model

Received Response
14
Views
10
Comments
edited Jun 6, 2018 5:19AM in Customer Portal 10 comments

Content

I have a custom model called answers_model.php under the /customer/development/models/custom folder. I'm trying to have this model extend the standard Answer.php class. But I'm running into a fatal error that states:




Found the model file that you specified, but could not find the expected class name of ‘Custom\Models\answers_model’.


I've also tried following the solution mentioned here but to no avail.



answers_model.php file




namespace Custom\Models;<br /> \RightNow\Models\Base::loadModel(&#39;Answer&#39;);<br /> class answers_model extends \RightNow\Models\Answer<br /> {<br /> function __construct() <br /> {<br /> parent::__construct(); <br /> }<br /> .<br /> .<br /> .<br /> }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!