New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Lavacharts in CodeIgniter ? #14
Comments
Yeaaaah, so when I was making this library, I didn't realize that all my class references were relying on composer's autoload functionality. I realized this once I was deep into refactoring for version 2, and so I decided that I would wait to fix this until the release. Now that V2 is in the wild, this is definitely on my list of todos. I'm looking into borrowing the symfony autoloader to allow use of the library in non composer/laravel environments. |
I would highly recommend learning about composer and using it within your php development workflow. It makes adding packages and managing dependencies so much easier. https://philsturgeon.uk/blog/2012/05/composer-with-codeigniter/ |
Please see Issue #24 |
If you want to pull and test against the 2.4 branch, I have included a Psr4 Autoloader so you do not have to use composer (even though it is a great tool) Here is an example:
|
Thank you very much. In the meantime, I started my project directly with the google API. But for my next project, I will test Lavachart again :+) |
Hi,
I would like to use Lavacharts as a CodeIgniter helper. I put the src/Khill/Lavachart drectory in my helpers directory and created a lavacharts_helper.php file :
Then, I try to call it with :
But it did'nt worked. So I tried :
But I got a fatal error : "Fatal error: Class 'Khill\Lavacharts\Volcano' not found in application/helpers/Lavacharts/Lavacharts.php on line 118"
I don't use Composer or Laravel. Is it mandatory ?
Thanks
The text was updated successfully, but these errors were encountered: