Added a new custom database table, as per the Tried the Adding Database Table article.
When I try to call any of the actions (add, edit, view), it doesn't seem to call up the custom templates I created for them (called them bemutatva_add.tpl, etc. as per the article instructions).
When calling 'generics.php?action=add&classname=bemutatva' for example, I see this in the top of the debug info:
Load time so far: 0.1 seconds.
Number of rows is 0
Creating bemutatva with blank as blank
Load time so far: 0.11 seconds.
Query 7: SELECT COUNT(id) FROM wsnlinks_sessions WHERE memberid>0 Count is 1
here is my bemutatva.php file (in the includes folder):
<?php
class bemutatva extends generic {
function __construct($type, $input) { // constructor global $language; $this->objecttype = 'bemutatva'; $this->objecttable = 'bemutatvatable'; $this->objectdateformat = $language->dateformat_comments; parent::__construct($type, $input); }
function canview() { return true; }
}
?>
I have added the general_bemutatva language field with 'bemutatva' as the value.
What could be the problem? If I call the bemutatva_add.tpl as a custom template, like index.pxp?custom=yes&TID=bemutatva_add, then I get to see my form and I can add a new entry just fine...
Comments on custom table actions error
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
Hi Paul,
Added a new custom database table, as per the Tried the Adding Database Table article.
When I try to call any of the actions (add, edit, view), it doesn't seem to call up the custom templates I created for them (called them bemutatva_add.tpl, etc. as per the article instructions).
When calling 'generics.php?action=add&classname=bemutatva' for example, I see this in the top of the debug info:
here is my bemutatva.php file (in the includes folder):
I have added the general_bemutatva language field with 'bemutatva' as the value.
What could be the problem? If I call the bemutatva_add.tpl as a custom template, like index.pxp?custom=yes&TID=bemutatva_add, then I get to see my form and I can add a new entry just fine...
Thanks
David
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Fixed for next release.
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
Thanks Paul.