Welcome Guest, Not a member yet? Register   Sign In
Data Mapper hasn't found table
#1

[eluser]Unknown[/eluser]
Hello mates,

I'm starting to use data mapper 1.7.1 with CI 1.7.2, but when I try to do a simple query like bellow:

Code:
// MODEL
class Table extends DataMapper
{
    public $table = 'tables';
    
    function __construct()
    {
        parent::DataMapper();
    }
    
}
// CONTROLLER
class test extends Controller
{
    function __construct()
    {
        parent::Controller();        
    
    }
    
    
    function index()
    {

        $t = new Table();
        $x = $t->get();
            foreach ($x->all as $b)
        {
        echo $b . '<br>';    
        }
        
    }
    
}
the following error is returned:

A Database Error Occurred

Error Number: 1096

No tables used

SELECT *

Somebody help me, please!!!!

Thanks, in advance


Messages In This Thread
Data Mapper hasn't found table - by El Forum - 07-14-2010, 03:45 PM
Data Mapper hasn't found table - by El Forum - 07-14-2010, 08:04 PM
Data Mapper hasn't found table - by El Forum - 07-15-2010, 01:14 PM
Data Mapper hasn't found table - by El Forum - 08-24-2010, 07:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB