3. This work is licensed under a Creative Commons
Attribution‐Noncommercial‐Share Alike 3.0
The use of these slides in commercial courses or
trainings is explicitly prohibited
http://creativecommons.org/licenses/by‐nc‐sa/3.0/es/
16. Cómo crear un nuevo formato
1. Crear la plantilla de la acción
(xxxSuccess.formato.php)
2. Deshabilitar el layout y establecer el Content‐
Type de la respuesta
3. Crear las páginas de error y de excepción
(config/error/[error|exception].formato.yml)
30. Zend Framework
Zend_Mail
quot;Zend_Mail provides generalized functionality to compose
and send both text and MIME‐compliant multipart e‐mail
messages. Mail can be sent with Zend_Mail via the default
Zend_Mail_Transport_Sendmail transport or via
Zend_Mail_Transport_Smtpquot;
36. quot;No reinventes la ruedaquot;
NIH (Not Invented Here)
“persistent sociological, corporate or institutional
culture that avoids using or buying already existing
products, research or knowledge because of its
different origins”
37.
38. Zend Framework
Zend_Search_Lucene
quot;...un buscador genérico de texto escrito completamente
con PHP 5. Como guarda sus índices en archivos y no
requiere de un servidor de bases de datos, permite incluir
un buscador en cualquier sitio web construido con PHP.quot;
66. idioma (ISO 3166‐1)
país (ISO 639‐1)
$this‐>getUser()‐>setCulture('fr_BE');
echo $this‐>getUser()‐>getCulture();
apps/frontend/config/settings.yml
all:
.settings:
default_culture: es_ES
81. <div class=quot;more_jobsquot;>
<?php echo __('and %count% more...', array(
'%count%' => link_to($count, 'category', $category)
))
?>
</div>
<?php echo format_number_choice(
'[0]No job in this category|
[1]One job in this category|
(1,+Inf]%count% jobs in this category',
array(
'%count%' => '<strong>'.$pager‐>getNbResults().'</strong>'
),
$pager‐>getNbResults()
)
?>
$ ./symfony i18n:extract frontend fr ‐‐auto‐save
82. apps/frontend/i18n/fr/messages.xml
<trans‐unit id=quot;6quot;>
<source>
[0]No job in this category|
[1]One job in this category|
(1,+Inf]%count% jobs in this category
</source>
<target>
[0]Aucune annonce dans cette catégorie|
[1]Une annonce dans cette catégorie|
(1,+Inf]%count% annonces dans cette catégorie
</target>
</trans‐unit>