Jump to content

Ownclass Extends Objectmodel


kapourafi

Recommended Posts

Hi everyone!

 

I'm new to Prestashop and i'm actually developping my own module and i need my own class to access a table.

 

I've created my adminController wich works fine and can retrieve datas from the DB, but i can't add new ones from the BO.

I've tried to "include" my ClassCore.php from the adminController, but i got a fatal error that ObjectModel class could'nt be found. And when i'm not includong it, it can't find my own class.

Though i'm wonderring where do i put my file that it could work well.

 

Thanks to everyone who will answer me.

 

If it could help, i can copy/paste my code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...