Webmastersite.net
Register Log In

custom table actions error

Comments on custom table actions error

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Oct 04, 2008 - 5:45 AM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 06, 2008 - 3:48 AM:

Fixed for next release.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Oct 06, 2008 - 3:58 AM:

Thanks Paul. smiling face
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.