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 Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initNavigation() | |
{ | |
$this->bootstrap('View'); | |
// $view = $this->getResource('View'); | |
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
<style> | |
a:link, | |
a:visited | |
{ | |
color: #0398CA; | |
} | |
span#zf-name | |
{ | |
color: #91BE3F; |
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
// when i do | |
Y.delegate('click',function(e){},Y.one('body'),Y.one('form')); | |
// It stops in Substitute.replace() | |
replace: function(newNode) { // newNode = /[|:,]/g | |
var node = this._node; // this._node = form | |
node.parentNode.replaceChild(newNode, node); // fails! "Node cannot be inserted at the specified point in the hierarchy" code: "3" | |
return this; | |
}, |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Lister</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.0.0/build/cssreset/reset-min.css"/> | |
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script> | |
<script> | |
YUI({ | |
filter : 'raw', |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>Timer Example</title> | |
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script> | |
<script> | |
YUI({ | |
'filter' : 'raw', |
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
_timerException : function(msg) { | |
var error = new Error(msg); | |
if(!error.message) { | |
error.message = msg; | |
} | |
error.name = EXCEPTIONS.NAME; // TIMER_EXCEPTION | |
return error; | |
} |
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
console.log('Body script'); | |
YAHOO.util.Event.onDOMReady(function(o) { | |
console.log('DOM Ready'); | |
var handleSuccess = function(o) { | |
alert('Success'); | |
}; | |
var handleFailure = function(o) { | |
alert('Failure'); | |
}; | |
var callback = { |
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
initializer : function(config){ | |
timerCallback = Y.bind(this._timer,this); | |
this.publish(EVENTS.START , { defaultFn : function(){ this.set('status',STATUS.RUNNING); this._makeTimer(); } }); | |
}, |
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
Global setup: | |
Download and install Git | |
git config --global user.name "Your Name" | |
git config --global user.email [email protected] | |
Add your public key | |
Next steps: | |
mkdir Echofin | |
cd Echofin | |
git init |
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 Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initAutoloader() | |
{ | |
$loader = new Zend_Application_Module_Autoloader(array( | |
'namespace' => 'Default_', | |
'basePath' => dirname(__FILE__) | |
)); |