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
// Upload file | |
$File = $this->params()->fromFiles('image'); | |
if($File['name'] != '') { | |
$thumbsDir = array( | |
array('dir' => 'small', | |
'resize' => '25'), | |
array('dir' => 'medium', | |
'resize' => '50'), | |
array('dir' => 'large', |
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
$resultSet = $this->tableGateway->select(function (Select $select) { | |
$select->order('name ASC'); | |
}); | |
return $resultSet; |
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
ln -s ~/Sites/E3SkeletonApplication/module/ElmContent/public elm-content |
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
Fix for sendmail on osx after mountain lion |
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
$> pear config-set preferred_state alpha | |
$> pear install --alldeps phing/phing | |
$> pear config-set preferred_state stable |
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
sudo pear config-set auto_discover 1 | |
sudo pear install pear.phpunit.de/PHPUnit |
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
$brew install mysql | |
$sudo chown -R $(whoami) /usr/local/share | |
$brew link mysql |
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
./configure \ | |
--prefix=/usr \ | |
--mandir=/usr/share/man \ | |
--infodir=/usr/share/info \ | |
--sysconfdir=/private/etc \ | |
--with-apxs2=/usr/sbin/apxs \ | |
--enable-cli \ | |
--with-config-file-path=/etc \ | |
--with-libxml-dir=/usr \ | |
--with-openssl=/usr \ |
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
if($this->title != null) { | |
$textUtils = new Text(); | |
$this->prettyurl = $textUtils->prettyUrl($this->title); | |
} |
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
public function onBootstrap(MvcEvent $e) | |
{ | |
$events = $e->getApplication()->getEventManager()->getSharedManager(); | |
$events->attach('ZfcUser\Form\Register', 'init', function($e) { | |
$form = $e->getTarget(); | |
$form->add(array( | |
'type' => 'Zend\Form\Element\Select', | |
'name' => 'role', | |
'options' => array ( | |
'label' => 'Select Role', |