Welcome Guest, Not a member yet? Register   Sign In
Can I use ezSQL with codeigniter?
#8

[eluser]cjoy[/eluser]
[quote author="jv2222" date="1270127093"]Well, what can I say Smile 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! Smile



edit:
stripped all the timer related lines from EZsql_codeigniter.php - now all ezSQL calls function as expected. *sigh*
Tongue


Messages In This Thread
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 01:13 PM
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 03:41 PM
Can I use ezSQL with codeigniter? - by El Forum - 12-03-2009, 05:22 PM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 11:22 AM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 12:10 PM
Can I use ezSQL with codeigniter? - by El Forum - 03-20-2010, 12:54 PM
Can I use ezSQL with codeigniter? - by El Forum - 04-01-2010, 02:04 AM
Can I use ezSQL with codeigniter? - by El Forum - 06-14-2010, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB