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 Planner_AuthController extends Zend_Controller_Action { | |
protected $_flashMessenger = null; | |
protected $_form = null; | |
public function init() { | |
$this->_form = new Planner_Form_Login(); | |
$this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
<title>test</title> | |
<link rel="stylesheet" href="styles/default.css" type="text/css" media="screen" charset="utf-8"/> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> | |
<title>test</title> | |
<link rel="stylesheet" href="styles/default.css" type="text/css" media="screen" charset="utf-8"/> |
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 Planner_AuthController extends Zend_Rest_Controller { | |
protected $_flashMessenger = null; | |
protected $_form = null; | |
public function getForm() { | |
if(null === $this->_form) { | |
$this->_form = new Planner_Form_Login(); |
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 Planner_Bootstrap extends Zend_Application_Module_Bootstrap { | |
protected $_moduleName = "Planner"; | |
protected function _initNavigations() { | |
$this->bootstrap('View'); | |
$view = $this->getResource('View'); |
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
# 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
<?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
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') |