|
|
@@ -217,16 +217,16 @@ php_value "short_open_tag" "on"
|
|
|
]]></programlisting>
|
|
|
|
|
|
<para>
|
|
|
- This will only be possible if you are allowed to create and
|
|
|
- utilize <filename>.htaccess</filename> files. This directive can
|
|
|
- also be added to your <filename>httpd.conf</filename> file.
|
|
|
+ Isso só será possível se você tiver permissão para criar e utilizar arquivos
|
|
|
+ <filename>.htaccess</filename>. Esta diretiva também podem ser adicionada ao seu
|
|
|
+ arquivo <filename>httpd.conf</filename>.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- Enable an optional stream wrapper to convert short tags to
|
|
|
- long tags on the fly:
|
|
|
+ Habilitar um stream wrapper opcional para converter tags curtas para tags longas
|
|
|
+ em tempo real:
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
@@ -234,92 +234,91 @@ $view->setUseStreamWrapper(true);
|
|
|
]]></programlisting>
|
|
|
|
|
|
<para>
|
|
|
- This registers <classname>Zend_View_Stream</classname> as a stream
|
|
|
- wrapper for view scripts, and will ensure that your code
|
|
|
- continues to work as if short tags were enabled.
|
|
|
+ Isso registra <classname>Zend_View_Stream</classname> como um stream wrapper
|
|
|
+ para scripts de visualização, e garantirá que seu código continue trabalhando
|
|
|
+ como se as tags curtas estivessem habilitadas.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
|
|
|
|
<warning>
|
|
|
- <title>View Stream Wrapper Degrades Performance</title>
|
|
|
+ <title>Stream Wrapper Prejudica o Desempenho</title>
|
|
|
|
|
|
<para>
|
|
|
- Usage of the stream wrapper <emphasis>will</emphasis> degrade
|
|
|
- performance of your application, though actual benchmarks are
|
|
|
- unavailable to quantify the amount of degradation. We recommend
|
|
|
- that you either enable short tags, convert your scripts to use
|
|
|
- full tags, or have a good partial and/or full page content
|
|
|
- caching strategy in place.
|
|
|
+ O uso do stream wrapper <emphasis>irá</emphasis> prejudicar o desempenho de sua
|
|
|
+ aplicação, embora benchmarks atuais estejam indisponíveis para quantificar o
|
|
|
+ montante da degradação. Recomendamos que você ative as tags curtas, converta seus
|
|
|
+ scripts para usar tags completas, ou tenha uma boa estratégia de cache completo e/ou
|
|
|
+ parcial do conteúdo da página no lugar.
|
|
|
</para>
|
|
|
</warning>
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="zend.view.introduction.accessors">
|
|
|
- <title>Utility Accessors</title>
|
|
|
+ <title>Acessadores Utilitários</title>
|
|
|
|
|
|
<para>
|
|
|
- Typically, you'll only ever need to call on <methodname>assign()</methodname>,
|
|
|
- <methodname>render()</methodname>, or one of the methods for setting/adding
|
|
|
- filter, helper, and script paths. However, if you wish to extend
|
|
|
- <classname>Zend_View</classname> yourself, or need access to some of its
|
|
|
- internals, a number of accessors exist:
|
|
|
+ Normalmente, você somente precisará invocar <methodname>assign()</methodname>,
|
|
|
+ <methodname>render()</methodname>, ou um dos métodos para configurar/adicionar caminhos
|
|
|
+ de filtro, ajudante e script. No entanto, se você desejar estender
|
|
|
+ <classname>Zend_View</classname> você mesmo, ou ter acesso a alguns de seus internos,
|
|
|
+ existe para isso alguns acessadores:
|
|
|
</para>
|
|
|
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getVars()</methodname> will return all assigned variables.
|
|
|
+ <methodname>getVars()</methodname> retornará todas as variáveis atribuídas.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>clearVars()</methodname> will clear all assigned variables;
|
|
|
- useful when you wish to re-use a view object, but want to
|
|
|
- control what variables are available.
|
|
|
+ <methodname>clearVars()</methodname> limpará todas as variáveis atribuídas; útil
|
|
|
+ quando você quer reutilizar um objeto visualização, mas quer controlar quais
|
|
|
+ variáveis estão disponíveis.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getScriptPath($script)</methodname> will retrieve the
|
|
|
- resolved path to a given view script.
|
|
|
+ <methodname>getScriptPath($script)</methodname> recuperará o caminho resolvido
|
|
|
+ para um dado script de visualização.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getScriptPaths()</methodname> will retrieve all registered
|
|
|
- script paths.
|
|
|
+ <methodname>getScriptPaths()</methodname> recuperará todos os caminhos de script
|
|
|
+ registrados.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getHelperPath($helper)</methodname> will retrieve the
|
|
|
- resolved path to the named helper class.
|
|
|
+ <methodname>getHelperPath($helper)</methodname> recuperará o caminho resolvido
|
|
|
+ para a classe assistente chamada.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getHelperPaths()</methodname> will retrieve all registered
|
|
|
- helper paths.
|
|
|
+ <methodname>getHelperPaths()</methodname> recuperará os caminhos de todos os
|
|
|
+ assistentes registrados.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getFilterPath($filter)</methodname> will retrieve the
|
|
|
- resolved path to the named filter class.
|
|
|
+ <methodname>getFilterPath($filter)</methodname> recuperará o caminho resolvido
|
|
|
+ para a classe filtro chamada.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>getFilterPaths()</methodname> will retrieve all registered
|
|
|
- filter paths.
|
|
|
+ <methodname>getFilterPaths()</methodname> recuperará os caminhos de todos os
|
|
|
+ filtros registrados.
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|