Mats Posted January 26, 2013 Posted January 26, 2013 (edited) I'm trying to use https://github.com/galen/PHPGoogleMaps to render Google maps from PW templates, but i can't get it to work. Any ideas on how to get this working from templates? Or is bootstrapping the way to go? /Mats Edited January 26, 2013 by Pete Fixed the link
diogo Posted January 26, 2013 Posted January 26, 2013 One way is to put all the PHPGoogleMaps folder inside the templates folder and load the library like this require( 'PHPGoogleMaps/Core/Autoloader.php' ); If you want more flexibility you can do this require( $config->paths->templates . 'PHPGoogleMaps/Core/Autoloader.php' ); 2
Mats Posted January 26, 2013 Author Posted January 26, 2013 Obrigado Diogo! And thanks for the link fix Pete!
Recommended Posts