Webmastersite.net
Register Log In

custom table actions error

Title custom table actions error
Message Text 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:
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... Thanks David
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership david
Views 288 views. Averaging 0 views per day.
Similar Topics
Submission Date Oct 04, 2008 - 3:45 AM