Post by Dev. » Wed Jul 27, 2022 11:20 pm

Hello

I developed a custom extension in opencart 4.0. It's installed successfully
But when trying to click the Edit button willthe show below error
https://ibb.co/YpvPNmw

How can solve it?
Thank you,

Attachments

Screen Shot 1443-12-28 at 5.16.15 AM.png

Screen Shot 1443-12-28 at 5.16.15 AM.png (129.71 KiB) Viewed 742 times


New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm

Post by halfhope » Thu Jul 28, 2022 6:50 am

example:
admin/module/fs_monitor.php
class ModelExtensionModuleFSMonitor extends Model {

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Dev. » Thu Jul 28, 2022 7:53 am

halfhope wrote:
Thu Jul 28, 2022 6:50 am
example:
admin/module/fs_monitor.php
class ModelExtensionModuleFSMonitor extends Model {
Hi Sir
Thank you for your reply
What the content of this file?
I was see the PayPal extention there's no file extends Model

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm

Post by halfhope » Thu Jul 28, 2022 8:08 am

Dev. wrote:
Thu Jul 28, 2022 7:53 am
I was see the PayPal extention there's no file extends Model
And why then the controller requests the model?

My FREE extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Dev. » Thu Jul 28, 2022 9:41 am

halfhope wrote:
Thu Jul 28, 2022 8:08 am
Dev. wrote:
Thu Jul 28, 2022 7:53 am
I saw the PayPal extension there's no file extending Model
And why then the controller requests the model?
This is the first time to show this error, I didn't know why to get this error.
And in the Admin folder no need to create a module folder.

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm

Post by Dev. » Thu Jul 28, 2022 10:05 am

halfhope wrote:
Thu Jul 28, 2022 8:08 am
Dev. wrote:
Thu Jul 28, 2022 7:53 am
I was see the PayPal extention there's no file extends Model
And why then the controller requests the model?
I solve it. I was adding unnecessary line after removing is working
$this->load->model();

Thank you
Regards,

New member

Posts

Joined
Sun Jul 17, 2022 10:02 pm
Who is online

Users browsing this forum: No registered users and 18 guests