I am a beginner with php, and i want to create a very basic app where to start from scratch. I am currently at the “hello world” app example but i cannot go further. I am trying to use the php library called jpGraph, i have created in the lib folder first_graph.php file with the sample code provided by jpGraph for creating a bar graph referencing two more php files needed from this library (require_once (‘jpgraph.php’); require_once (‘jpgraph_bar.php’); in the code) that i have copied also in the lib folder.
After this, i just add bellow the h1 Hello World line in templates/content/index.php another line as stated in the jpGraph documentation but when i access to my app i just receive the hello world line as expected and bellow a broken source icon coming from this line.
Thanks Rello! That was exactly the kind of help i was looking for!!
I followed exactly your stepts ( the only difference from my original one was the folder location and the DIR on the require) but i am still getting the same result, it seems like if it looses all the css and i get just the index.pho from navigation and settings folder with no css format, so i couldnt get this base where to start off…
By the way, tried accesing resources throught template/content/index.php echo and it didnt work for me, even trying to access img files.
(its updated on github too).