[eluser]Basketcasesoftware[/eluser]
[quote author="WanWizard" date="1297561476"]Looks like the database is not loaded either...[/quote]
I thought that might be the issue. I was hoping to create a generic test model with out having to create a test db. Got that error message and created one just for the purpose of testing.
Same error. I'm going to switch browsers and see if it's a cache issue.
database.php file:
Code:
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = 'ritg1967';
$db['default']['database'] = 'test';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;
database:
Code:
-- phpMyAdmin SQL Dump
-- version 3.2.4
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 12, 2011 at 02:02 PM
-- Server version: 5.1.41
-- PHP Version: 5.3.1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `test`
--
-- --------------------------------------------------------
--
-- Table structure for table `dmobjs`
--
-- Creation: Feb 12, 2011 at 01:47 PM
--
DROP TABLE IF EXISTS `dmobjs`;
CREATE TABLE IF NOT EXISTS `dmobjs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`test` text COLLATE utf8_bin,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1 ;
--
-- Dumping data for table `dmobjs`
--
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
model: dmobj.php
Code:
<?php
class Dmobj extends DataMapper
{
var $has_one = array();
var $has_many = array();
function __construct($id = NULL)
{
parent::__construct($id);
}
}
/* End of file dmobj.php */
/* Location: ./application/models/dmobj.php */