Skip to content

Instantly share code, notes, and snippets.

View dragoonis's full-sized avatar

Paul Dragoonis dragoonis

View GitHub Profile
paul@AllTheBestBuys:~/ppi2-composer/PPI$ sudo php composer.phar install
Installing dependencies
- Installing doctrine/common (2.2.x-dev)
Cloning 1e0aa60d109c630d19543d999f12e2852ef8f932
[RuntimeException]
Failed to clone http://github.com/doctrine/common via git, https and http protocols, aborting.
<?php
$controller->setHelper('routing', new RoutingHelper(
array_diff(array_keys($this->_matchedRoute), array('_module', '_controller', '_route'))
));
<?php
/**
* The Routing Helper For The Controller
*
* @package Controller
* @author Paul Dragoonis <[email protected]>
* @license http://opensource.org/licenses/mit-license.php MIT
* @link http://www.ppi.io
*/
array(3) {
["Tv show"]=>
array(15) {
[0]=>
string(10) "South Park"
[1]=>
string(9) "Entourage"
[2]=>
string(18) "The Colbert Report"
default server localhost (/etc/apache2/sites-enabled/000-default:13)
port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default:13)
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/cert.pem
ServerAdmin webmaster@localhost
DocumentRoot /var/www/htdocs/htdocs/
</VirtualHost>
<div id="grid-item-mustache-template" style="display: none;">
<a class="image" href="{{link}}" title="{{title}}" rel="nofollow">
<img src="{{image}}" alt="{{title}}" />
</a>
<p><a class="title" href="{{link}}" rel="nofollow">{{title}]</a></p>
<p class="was-price">{{highestPrice}}</p>
<p class="now-price">{{lowestPrice}}</p>
</div>
<?php
/**
* Inject services into our controller using setters matching against service names
*
* @return void
*/
public function injectServices() {
if($this->_serviceLocator === null) {
return;
<?php
$model = new Some\Model();
$insertID = $model->insert(
'title' => $data['title'],
'firstName' => $data['firstName']
);
<?php
class Application {
protected $_myStuff = null;
protected function getSomeStuffFromPHP() {
if($this->_myStuff === null) {
include_once(CONFIGPATH . 'myExtraData.php';