Google Maps-contribution in the Wiki **SOLVED** |
[eluser]tobben[/eluser]
Hello to all, I'm quite new to Code Igniter, a so called newbie My problem right now is in the Google Maps-implementation from a tutorial in the Wiki. I'm starting to understand bits 'n pieces of the MVC-approach, but the Google Maps-example made me a bit uncertain. My problem: I've included both the API class and the Cigooglemapsapi.php-file in the Lib-folder. And also put the HTML-part (the code in the bottom of http://codeigniter.com/wiki/Google_Maps/) in the Controllers-folder. Right here is the problem. Because, isnt that HTML-part supposed to be in the View-folder? Than use a controller like: Code: <?php Apparently, im doing something terrible wrong, because I don't get even a error-message. Only a blank page with no html or nothing. Right now I'm clueless like Alicia Silverstone. Thanks for any help.
[eluser]zeedy2k[/eluser]
How did you fix this? Im just getting a blank page too.
[eluser]zeedy2k[/eluser]
Got it... for anyone else having the problem I just put the following in controller instead of view: Code: $this->load->library('Cigooglemapapi');
[eluser]John_Betong[/eluser]
I have followed all the links and managed to get GoogleMaps up and running here If anyone is interested then here is the source code Special Notes: The source file is only the application folder so you will need to integrate CI's system folder. The installation source files are on a subdomain of http://johns-jokes.com. Cheers, John
[eluser]nmweb[/eluser]
I wrote the CI port of the library a long time ago. The example showed the syntax, it wasn't meant to be the way to code an application, just showcase syntax and usage. There should be a new version out of the original library over at the Smarty forums. You can probably just replace the old class with the new one as long as you don't touch the extended Cigooglemapsapi class.
[eluser]JOKERz[/eluser]
heres my controller Code: function maps(){ $HEAD_BFR is place before </head> tag, and $HEAD_AFR is place after <body> hope it help |
Welcome Guest, Not a member yet? Register Sign In |