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 | |
// PAGINADO PHP | |
$var = $aviso->listarAvisosActivosDeUnEnteTienda($params['IdEnte']); | |
$paginator = Zend_Paginator::factory($var); | |
$paginator->setItemCountPerPage(12); | |
$paginator->setCurrentPageNumber($this->_getParam('page',1)); | |
$b = $paginator->getPages(); | |
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
-- permiso a subcarpetas y archivos. | |
chmod 777 -R PHPExcel-develop |
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
------------------------------------------ | |
instalar dentro del /proyecto (composer.phar): | |
@url http://www.programania.net/diseno-de-software/gestionando-dependencias-en-nuestros-proyectos-php-con-composer/ | |
------------------------------------------ | |
01 - curl -s https://getcomposer.org/installer | php | |
Crear 1 archivo de configuracion : compouser.json para la configuracion de dependencias. | |
php composer.phar install |
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
// desargar archivo zend | |
public function registrationAction(){ | |
$response = $this->getEvent()->getResponse(); | |
$headers = new \Zend\Http\Headers(); | |
$headers->addHeaderLine('Content-Type', 'application/pdf') | |
->addHeaderLine('Content-Disposition', 'attachment; filename="Anmeldung.pdf"') | |
->addHeaderLine('Content-Length', filesize("Anmeldung.pdf")); | |
$response->setHeaders($headers); | |
$response->setContent("Anmeldung.pdf"); |
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
============================================ | |
-- EXPORTAR datos de mysql | |
01 - | |
mysqldump --no-data --user=root --password=123456 --host=localhost neo_local npc_suscriptores > neo_local.npc_suscriptores.sql | |
02 - storeProcedure and triger | |
mysqldump --no-data --user=root --password=123456 --host=localhost --routines neo_local npc_suscriptores > neo_local.npc_suscriptores.sql |
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
if (count($this->dataRevendedores) > 0): | |
$items = 3; | |
$filas = ceil(count($this->dataRevendedores) / $items); | |
?> | |
<?php for ($i = 0; $i < $filas; $i++): ?> | |
<div class="item content_conce_row fl-lf"> | |
<?php | |
$listTemporal = array_slice($this->dataRevendedores, ($i * $items), $items); | |
$cont = 0; | |
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 | |
// 11111 | |
// $frontController = Zend_Controller_Front::getInstance(); | |
// $router = $frontController->getRouter(); | |
// $route = new Zend_Controller_Router_Route( | |
// 'copitan', | |
// array( | |
// 'module'=>'default', | |
// 'controller' => 'anb', | |
// 'action' => 'index' |
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
1.- Levántate temprano: | |
2.- Planifica tu día: 20 a 40 min. |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
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
-- Filtro por intervalo desde ahora hasta hace 1 dia | |
SELECT | |
slots.slot, | |
slots.name, | |
slots.min, | |
slots.max, | |
AVG(datos.valor) valor | |
FROM slots |