|
|||
|
I'm new to PHP and Zend Framework. I'm trying to build a small web-app based on ZF and also using OpenLayers (a Javascript Ajax library for displaying maps).
I have some Javascript that runs fine in a stand-alone HTML page when called from <body onLoad="myscript();"> ...</body>, and it displays a map correctly using OpenLayers. The same Javascript appears to run fine when called in the same way from a body tag inside my .phtml view-page in ZF, but it doesn't display any map. I can see stuff happening in the browser status bar, so I'm fairly sure OL is running and getting the map data etc. But the map is never displayed. Has anybody got ZF and OL to work together, and if so, could you offer some tips or perhaps post a simple example of how to get it working? I'm not entirely sure how the page is rendered using ZF, so maybe it's something to do with the page being rendered before the OL script runs? But I'm just guessing, so any more informed comments would be greatly appreciated! Thanks! Chris |
![]() |
| Thread Tools | |
| Display Modes | |
|
|