Skip to content

Instantly share code, notes, and snippets.

View dragoonis's full-sized avatar

Paul Dragoonis dragoonis

View GitHub Profile
<?php
namespace FoursquareModule\Controller;
use FoursquareModule\Controller\Shared as SharedController;
class Index extends SharedController
{
public function indexAction()
{
return $this->render('FoursquareModule:index:index.html.php');
<!-- 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'); ?>
@dragoonis
dragoonis / index.js
Last active December 10, 2015 20:58
var map = null,
latitude = null,
longitude = null,
infoWindow = null;
function initialize() {
var latlng = null;
var myOptions = {
mapTypeId:google.maps.MapTypeId.ROADMAP
<?php
namespace FoursquareModule\Classes;
class ApiHandler
{
protected $secret;
protected $key;
protected $cache;
<?php
$config = array();
$config['foursquare'] = array(
'secret' => '[REPLACE ME]',
'key' => '[REPLACE ME]'
);
return $config;
$comments[] = array(
'title' => (string) $entry->title,
'link' => (string) $entry->link
);
<?php
$this->matchRoute(str_replace(
$this->_router->getContext()->getBaseUrl(),
'',
$this->_router->generate($this->_options['404RouteName'])
));
{
"name": "ppi/ppi",
"description": "The PPI Framework - A meta-framework built using Symfony2/ZendFramework2 and Doctrine2",
"homepage": "http://www.ppi.io",
"license": "MIT",
"keywords": ["framework"],
"type": "library",
"authors": [
{
"name": "Paul Dragoonis",
"repositories": [
{
"type": "package",
"package": {
"name": "ppi/zendframework",
"version": "2.0.0beta5",
"dist": {
"url": "http://packages.zendframework.com/releases/ZendFramework-2.0.0beta5/ZendFramework-2.0.0beta5-minimal.zip",
"type": "zip"
},
{
"name": "ppi/ppi",
"description": "The PPI Framework - A meta-framework built using Symfony2/ZendFramework2 and Doctrine2",
"homepage": "http://www.ppi.io",
"license": "MIT",
"keywords": ["framework"],
"type": "library",
"authors": [
{
"name": "Paul Dragoonis",