Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Charts in FuelPHP
How does one connect a MySQL DB to charts.js within fuel? I am lost on even how/where to begin...
You don't. MySQL is backend, charts.js is frontend.
This is a pretty good example:
On the Fuel side, you need to create a Controller that extends Controller_Rest, which contains an action method that does the DB query to retrieve your data, and returns it as an array. The controller will convert it to a json response for you. What it needs to return depends obviously on what chart.js expects.
Once done, have the ajax call call your controller.
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion