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
<img src="[[getResourceField:phpthumbof=`w=444&h=284&zc=1`? &id=`[[*slide1_home]]` &isTV=`1` &processTV=`1` &field=`imagen_nota`]]" alt="Imagen1" /> |
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 | |
// ...the other options before..... | |
'home' => array( | |
'type' => 'Zend\Mvc\Router\Http\Literal', | |
'options' => array( | |
'route' => '/', | |
'defaults' => array( | |
'controller' => 'Application\Controller\Index', | |
'action' => 'index', | |
), |
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
public function createThumbnail($source_folder, $thumbs_folder, $source_file, $extension, $thumbHeight){ | |
if ($extension == 'gif') { | |
$imgt = "ImageGIF"; | |
$imgcreatefrom = "ImageCreateFromGIF"; | |
}else if($extension == 'jpg' || $extension == 'jpeg'){ | |
$imgt = "ImageJPEG"; | |
$imgcreatefrom = "ImageCreateFromJPEG"; | |
}else if ($extension == 'png') { | |
$imgt = "ImagePNG"; | |
$imgcreatefrom = "ImageCreateFromPNG"; |
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
public function getOrderedByCategory(){ | |
$sql = new Sql($this->tableGateway->getAdapter()); | |
$select = $sql->select('alb_album')->where('alb_album.activo = 1 ORDER BY alb_album.id_categoria ASC'); | |
$join = $select->join('alb_categoria','alb_album.id_categoria = alb_categoria.id_categoria',array('nombre_categoria'=>'nombre')); | |
$statement = $sql->prepareStatementForSqlObject($join); | |
$result = $statement->execute(); | |
$rows = array_values(iterator_to_array($result)); | |
return $rows; | |
} |
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
LOAD DATA local INFILE '/path/to/file.csv' | |
INTO TABLE name_scheme.name_of_table | |
FIELDS TERMINATED BY ',' | |
ENCLOSED BY '"' | |
ESCAPED BY '\\' | |
LINES TERMINATED BY '\n' | |
IGNORE 0 LINES | |
(field1,field2,field3,field4); |
NewerOlder