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\]" |
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 _initNavigation() | |
{ | |
$this->bootstrap('layout'); | |
$layout = $this->getResource('layout'); | |
$view = $layout->getView(); | |
$config = new Zend_Config_Xml(APPLICATION_PATH . |
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
... | |
<section id="breadcrumbs"> | |
<ul class="breadcrumb"> | |
<?= | |
$this->navigation() | |
->breadcrumbs() | |
->setMinDepth(0) | |
->setLinkLast(false) | |
->setSeparator(" / "); | |
?> |
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 ManagementController extends Zend_Controller_Action | |
{ | |
public function init() | |
{ | |
//where are we? | |
$uri = $this->getRequest()->getPathInfo(); | |
//activate the navigation option |
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 | |
$seleccion = 25; | |
$i = 1; | |
$cantidad_de_dias = 31; | |
echo "<select>"; | |
while($i<=$cantidad_de_dias){ | |
if($i == $seleccion){ | |
echo '<option value='.$i.' selected="selected">'.$i.'</option>'; | |
} else { |