Jump to content

create new class


shahin0x

Recommended Posts

hello

I have a simple class that i want use it in controllers. how should i add this class?

I put it on classes directory and added 'Core' keyword at the end of class name and extends it from 'ObjectModel' but it didn't work (ClassNotFoundException)!

PS:1.7.x

Link to comment
Share on other sites

10 hours ago, JBW said:

Not sure why you put it in classes and added Core. If you want to use a class from another file you have to load this file with require_once.

actually i want know how can i register class once and use it in else where

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