cannot find class table in file - Joomla! Forum - community, help and support


hi there,
i've got problem (otherwise not post here  ;) )
i want store data form in database-table (not in admin-interface).
when form sent error occurs: table class tableexercises not found in file.
i've created directory tables in component's directory , in there file called exercises.php:

code: select all

<?php

// no direct access
//defined('_jexec') or die('restricted access');


class tableexercises extends jtable
{
    /**
     * primary key
     *
     * @var int
     */
    var $id = null;

    /**
     * @var string
     */
    var $name = null;
    var $userid = null;
    var $datum = null;
    var $was = null;
    var $bereich = null;
    var $ziel = null;
    var $beschreibung = null;
    var $durchfuehrung = null;
    var $mittel = null;
    var $li_saetze = 0;
    var $li_wdhs = 0;
    var $li_zeit = 0;
    var $li_gzeit = 0;
    var $mi_saetze = 0;
    var $mi_wdhs = 0;
    var $mi_zeit = 0;
    var $mi_gzeit = 0;
    var $hi_saetze = 0;
    var $hi_wdhs = 0;
    var $hi_zeit = 0;
    var $hi_gzeit = 0;
    var $gzeit = 0;

    /**
     * constructor
     *
     * @param object database connector object
     */
    function __construct( &$db ) {
        parent::__construct('#__exercises', 'id', $db);
    }
}
?>

the model-file has function store():

code: select all

$my =& $this->gettable();

      $post   = jrequest::get( 'post' );
      
      $id    = jrequest::getvar( 'id', 0, 'post', 'int' );
      //$my->load($id);
      if (!$my->bind( $post )) {
         return jerror::raisewarning( 500, $row->geterror() );
      }


       return true;


where mistake? why can't tableclass?
thanks lot
aljoscha

the code looks right can see.  error coming jmodel ( joomla.application.component.model line 320 ) or jtable ( joomla.database.table line 105 ).  may have debug code there.

tcp





Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'