Mats Posted January 26, 2013 Share 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 Link to comment Share on other sites More sharing options...
diogo Posted January 26, 2013 Share 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 Link to comment Share on other sites More sharing options...
Mats Posted January 26, 2013 Author Share Posted January 26, 2013 Obrigado Diogo! And thanks for the link fix Pete! Link to comment Share on other sites More sharing options...
diogo Posted January 26, 2013 Share Posted January 26, 2013 De nada Link to comment Share on other sites More sharing options...
Recommended Posts