Welcome Guest, Not a member yet? Register   Sign In
Charts Library
#11

[eluser]J. Brenne[/eluser]
Wow, i just trying to include pchart 3 hours. now i found this. very nice. love it.
Thanks. You alrdy extend it to bar, line etc?
#12

[eluser]Phil Sturgeon[/eluser]
Small modification, your constructor should set the application dir automatically using APPPATH like so:

Code:
class Charts {

    var $obj;
    private $_ext_path;
    private $_img_path = "charts";

    function Charts()
    {
        $this->obj =& get_instance();
        $this->obj->load->helper('string');

                $this->_ext_path = APPPATH;

        include($this->_ext_path."/classes/pData.class");  
        include($this->_ext_path."/classes/pChart.class");
    }

// ......................

No point duplicating the config setting.
#13

[eluser]redwiz[/eluser]
[quote author="JulianBrenne" date="1232311407"]Wow, i just trying to include pchart 3 hours. now i found this. very nice. love it.
Thanks. You alrdy extend it to bar, line etc?[/quote]

Hi
I made something, but i'm not ready to share it.
If i find time i want to finish it this week, stay tuned!

Andrea
#14

[eluser]redwiz[/eluser]
[quote author="pyromaniac" date="1232380322"]Small modification, your constructor should set the application dir automatically using APPPATH like so:

No point duplicating the config setting.[/quote]

You're right
This will be included on next version
thank you

Andrea




Theme © iAndrew 2016 - Forum software by © MyBB