Welcome Guest, Not a member yet? Register   Sign In
Create custom library
#1

[eluser]Tommy Liu[/eluser]
Dear experts - I have no idea that why I cannot call the function that I stored in my custom library called "Udpwebdb.php".

If I remove quota lines in function as below. I can show the result correctly. Please give me some hints to me to fix the problem. Thank you.

Quote: $this->load->library('udpwebdb');
printf('%s',this->updwebdb->tabletojson());

Code:
public function myctrlresult()
{
$this->load->library('udpwebdb');
printf('%s',this->updwebdb->tabletojson());
printf('%s','here');
}



File fullname: ../library/Udpwebdb.php
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Udpwebdb {

    public function tabletojson()
    {
     return 'hello';
    }
}


Messages In This Thread
Create custom library - by El Forum - 03-09-2013, 05:04 AM
Create custom library - by El Forum - 03-09-2013, 05:13 AM
Create custom library - by El Forum - 03-09-2013, 05:18 AM
Create custom library - by El Forum - 03-09-2013, 05:20 AM
Create custom library - by El Forum - 03-09-2013, 05:24 AM
Create custom library - by El Forum - 03-09-2013, 05:33 AM
Create custom library - by El Forum - 03-09-2013, 07:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB