MrBaseball34 Posted August 24, 2010 Share Posted August 24, 2010 I created a new class for building my downloadable reports.When I instantiated it in OrderHistory, nothing was happening.I have emptied out the class so all it contains is the definition and the constructor and it STILL cannotbe instantiated.[How I'm calling it in OrderHistory: Tools::DebugLog('OrderHistory', 'Before new ReportGenerator()'); $rg = new ReportGenerator(); Tools::DebugLog('OrderHistory', 'After new ReportGenerator()'); DebugLog is a new function I wrote in the Tools class that logs the messages to a table called ps_debug_table.Here is my class code: class ReportGenerator extends ObjectModel { public function __construct() { parent::__construct(); } } // class ReportGenerator extends ObjectModel It logs the 'Before new ReportGenerator()' message but never logs the 'After new ReportGenerator()' message.I intend to have an instance of TCPDF in this class as it is supposed to build a PDF report. I will also be havingtwo properties, partno and physical_filename.I was thinking that, when I had that stuff in the class, it was what was causing the problem. But now that I have a simple stripped class and it STILL isn't working. there's something major here...Any ideas? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted August 24, 2010 Author Share Posted August 24, 2010 Nevermind, I figured out how to do this and I am currently working on finishing this thing up.Thanks to all that looked at this. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now