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 MyController extends Zend_Controller_Action { | |
//... | |
public function myAction(){ | |
$bootstrap = $this->getInvokeArg('bootstrap'); | |
$config_options = $bootstrap->getOptions(); | |
} | |
} |
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 Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
//... | |
protected function _initConfig(){ | |
$config_options = new Zend_Config($this->getOptions()); | |
Zend_Registry::set('config', $config_options); | |
return $config_options; | |
} | |
} |
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 | |
$bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap'); | |
$config_options = $bootstrap->getOptions(); |
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
diego$ git branch | |
* diego | |
master |
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
git checkout <branch_you_want_to_merge_from> <file_paths_to_merge...> |
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 | |
throw new Zend_Controller_Action_Exception("UPS!!! This page don't exist",404); |
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
source source1 | |
{ | |
type = mysql | |
sql_host = mysqlA | |
sql_user = user | |
... | |
sql_query = SELECT id, group_id, UNIX_TIMESTAMP(date_added) \ | |
date_added, title, content \ | |
FROM documents | |
sql_attr_uint = group_id |
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
index test1 { | |
source = source1 | |
source = source2 | |
charset_type = sbcs | |
path = /sphinx/data/test1 | |
} |
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
index dist1 | |
{ | |
type = distributed | |
local = archive | |
agent: hCHUNCK01:9332:CHUNK01 | |
agent: hCHUNCK02:9332:CHUNK02 | |
agent: hCHUNCK03:9332:CHUNK03 | |
agent: hCHUNCK04:9332:CHUNK04 | |
agent: hCHUNCK02:9332:CHUNK05 | |
} |
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
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" |