Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Last active December 10, 2015 20:58
Show Gist options
  • Save dragoonis/4491599 to your computer and use it in GitHub Desktop.
Save dragoonis/4491599 to your computer and use it in GitHub Desktop.
<!-- extend our base template at ./app/view/base.html.php -->
<?php $view->extend('::base.html.php'); ?>
<!-- inject some content into our include_css slot, which is defined in the base template -->
<?php $view['slots']->start('include_css') ?>
<link rel="stylesheet" href="<?php echo $view['assets']->getUrl('foursquare/css/index.css') ?>"/>
<?php $view['slots']->stop(); ?>
<!-- inject some content into our include_js_body slot, which is defined in the base template -->
<?php $view['slots']->start('include_js_body'); ?>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="<?=$view['assets']->getUrl('foursquare/js/index.js');?>"></script>
<?php $view['slots']->stop(); ?>
<!-- the actual content for this page -->
<section>
<h4>Tutorial: GeoLocation with Foursquare and Google Maps</h4>
<div class="map" id="map"></div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment