[eluser]cjoy[/eluser]
[quote author="jv2222" date="1270127093"]Well, what can I say
The error is because the core is not loaded! By rights you should also be getting another error/warning saying that the core is missing and there is an error trying to extend on top of it...[/quote]
since I am really desperate to get ezSQL working in CI - let me warm up this topic again.
the core is loaded - i tripple checked that.
Files moved:
Quote:/helpers/ez_sql_core_helper.php
/libraries/Ezsql_codeigniter.php
Autoload entries:
Code:
$autoload['libraries'] = array('session','database','ezsql_codeigniter');
autoload['helper'] = array('url','ez_sql_core');
Controller:
Code:
class Main extends Controller {
function Main()
{
parent::Controller();
$this->load->library('ezsql_codeigniter');
$this->ezsql = new ezSQL_codeigniter;
}
function index()
{
global $db;
$results = $db->get_results("SELECT * FROM table LIMIT 5");
}
the error I get:
Quote:Fatal error: Call to undefined method ezSQL_codeigniter::timer_start() in /Applications/MAMP/htdocs/tdict/system/application/libraries/Ezsql_codeigniter.php on line 47
Looking at the library and helper, there is no trace of a timer_start() metho, other then the call on line 47.
any help is appreciated!
edit:
stripped all the timer related lines from EZsql_codeigniter.php - now all ezSQL calls function as expected. *sigh*