This file contains 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
"Europe/Andorra", | |
"Asia/Dubai", | |
"Asia/Kabul", | |
"America/Antigua", | |
"America/Anguilla", | |
"Europe/Tirane", | |
"Asia/Yerevan", | |
"America/Curacao", | |
"Africa/Luanda", | |
"Antarctica/McMurdo", |
This file contains 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
- simple | |
- public over private | |
- personal vanity | |
- internet is global | |
- permalinks | |
- one important item per page | |
- don't break the browser | |
- don't wanker in technology | |
- a medium is not a grande | |
- break convention for your users |
This file contains 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 App_Controller_Plugin_LayoutSwitcher extends Zend_Layout_Controller_Plugin_Layout { | |
public function preDispatch(Zend_Controller_Request_Abstract $request) { | |
$this->getLayout()->setLayoutPath( | |
Zend_Controller_Front::getInstance()->getModuleDirectory( | |
$request->getModuleName() | |
) . '/views/layouts' | |
); |
This file contains 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
# On branch master | |
# Untracked files: | |
# (use "git add <file>..." to include in what will be committed) | |
# | |
# application/modules/backend/views/ | |
# application/modules/frontend/ | |
nothing added to commit but untracked files present (use "git add" to track) |
This file contains 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
Exception information: | |
Message: Unknown method Model_Page::findAll | |
Stack trace: | |
#0 [internal function]: Doctrine_Record->__call('findAll', Array) | |
#1 /Users/ranza/Sites/1kid/application/modules/backend/controllers/PageController.php(19): Model_Page->findAll() | |
#2 /Applications/MAMP/bin/php5/lib/php/Zend/Controller/Action.php(513): Backend_PageController->indexAction() | |
#3 /Applications/MAMP/bin/php5/lib/php/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction') |
This file contains 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
function showOptions() { | |
echo "Please select install method:" | |
echo "1) SVN" | |
echo "2) GIT" | |
echo "3) HTTP" | |
read opt; | |
case ${opt} in | |
1) METHOD="SVN";; | |
2) METHOD="GIT";; |
This file contains 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
#!/bin/bash | |
CURRENT_PATH=`pwd` | |
INSTALL_FOLDER="public_html" | |
METHOD="HTTP" | |
HTTP_SOURCE="http://wordpress.org/latest.tar.gz" | |
SVN_SOURCE="http://core.svn.wordpress.org/trunk/" | |
trap cleanup INT |
This file contains 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
#!/bin/bash | |
CURRENT_PATH=`pwd` | |
INSTALL_FOLDER="public_html" | |
METHOD="HTTP" | |
HTTP_SOURCE="http://wordpress.org/latest.tar.gz" | |
SVN_SOURCE="" | |
SVN_SOURCE_BASE="http://core.svn.wordpress.org" | |
SVN_SOURCE_STABLE="/tags/2.9.2/" | |
SVN_SOURCE_TRUNK="/trunk/" |
This file contains 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
function getDaysOfMonth(year, month) { | |
return 32 - new Date(year, month, 32).getDate(); | |
} |
This file contains 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 | |
protected function _initRestRoute() { | |
$this->bootstrap('frontController'); | |
$frontController = Zend_Controller_Front::getInstance(); | |
$restRoute = new Zend_Rest_Route($frontController, array(), array( | |
'api', | |
'planner' => array('event'), | |
)); | |
$frontController->getRouter()->addRoute('rest', $restRoute); |