This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$controller->setHelper('routing', new RoutingHelper( | |
array_diff(array_keys($this->_matchedRoute), array('_module', '_controller', '_route')) | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array(3) { | |
["Tv show"]=> | |
array(15) { | |
[0]=> | |
string(10) "South Park" | |
[1]=> | |
string(9) "Entourage" | |
[2]=> | |
string(18) "The Colbert Report" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default server localhost (/etc/apache2/sites-enabled/000-default:13) | |
port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default:13) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameVirtualHost *:80 | |
NameVirtualHost *:443 | |
<VirtualHost *:443> | |
SSLEngine on | |
SSLCertificateFile /etc/ssl/certs/cert.pem | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/htdocs/htdocs/ | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Inject services into our controller using setters matching against service names | |
* | |
* @return void | |
*/ | |
public function injectServices() { | |
if($this->_serviceLocator === null) { | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$model = new Some\Model(); | |
$insertID = $model->insert( | |
'title' => $data['title'], | |
'firstName' => $data['firstName'] | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Application { | |
protected $_myStuff = null; | |
protected function getSomeStuffFromPHP() { | |
if($this->_myStuff === null) { | |
include_once(CONFIGPATH . 'myExtraData.php'; |