Add a New Class

Discussion for TimeTrex open source community developers.
Locked
jpadkins49
Posts: 26
Joined: Thu Mar 05, 2009 7:08 am

Add a New Class

Post by jpadkins49 »

All,

I have been requested to make a few changes and add-ins to this product so that it can suit our needs. I would like to make a new class so that I do not have to make any major changes to the existing classes. When I create a new class and drop it in the classes folder, then It does not seem to be able to reference it from the pages I am using it on. Does this item have to be registered in another file such as a config file in order to use it in the page source code. Please excuse my difficulty in using this item. I am a .Net developer and SQL dba and this product is my first foray into the PHP and Smarty items. Again, thanks for the great product.

Thanks,
Jonathan Adkins
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

No, it doesn't need to be registered anywhere. What it needs to be in the proper directory, and the file/class name need to match the standard naming format.

What directory did you put it in? What was the file name? What was the class name inside the file?
Locked