wangotango Posted November 5, 2007 Posted November 5, 2007 Argh. I can't seem to add a new box sub class. The basic code is from the KB, added to the bottom of /includes/classes/boxes.php.... class plainBox extends tableBox { function plainBox($contents) { $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true); } } I'm trying to create this using "new plainBox($info_box_contents);" where $info_box_contents is an array of text elements. However, everytime I try this, I get a "Fatal Error: Cannot instantiate non-existent class: plainbox in /path/boxname.php on line nn". I can modify existing classes without an issue, but add even the most minimal class, and it's not found. :huh: What am I missing? Do I need to register the new class somewhere? Is there some other file I need to modify? I know it's gotta be something stupid, but I'm just not seeing it. TIA
wangotango Posted November 6, 2007 Author Posted November 6, 2007 Argh. I can't seem to add a new box sub class.... :blush: Never mind. Something stupid as suspected (when using BTS, look at the boxes.tpl.php for adding a class, not boxes.php). Sigh.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.