Here's how I included my ezComponent ezGraph class, so the same idea
should relate:
$found = App::import('Vendor', 'ezComponents', array('file' =>
'Base'.DS.'src'.DS.'ezc_bootstrap.php'));
$found = $found ? 'true' : 'false';
if(!$found) die('Unable to load required ezComponent bootstrap
file.');
I ended up having to use the array parameter to get my class included,
and then used the Directory Separate constant instead of a forward
slash.
Note: "ezComponents" is still the first directory found in the vendors
folder...so it would be ".../app/vendors/ezcomponents/Base/src/
ezc_bootstrap.php"
Hopefully that'll give you a head start, and a nice supplement to the
Cookbook examples.
On Nov 9, 2:18 am, jktress <[email protected]> wrote:
> Hi everyone,
>
> I'm building a simple graphing tool that pulls data from my database
> and creates a line chart. I'm trying to use the jgraph library,
> however after putting it in my vendors folder and calling it from the
> view, I get Fatal Error: Class Graph not found.
>
> I am accessing the jpgraph folder this way
> App::import('Vendors', 'jpgraph/jpgraph');
> App::import('Vendors', 'jpgraph/jpgraph_line');
>
> and I've tried several variations on that, thinking that the library
> isn't loading. Can you point me in the right direction as to what's
> going on?
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---