Principais perguntas e respostas de entrevista e testes online
Plataforma educacional para preparacao de entrevistas, testes online, tutoriais e pratica ao vivo

Desenvolva habilidades com trilhas de aprendizado focadas, simulados e conteudo pronto para entrevistas.

WithoutBook reune perguntas de entrevista por assunto, testes praticos online, tutoriais e guias comparativos em um unico espaco de aprendizado responsivo.

Preparar entrevista

Zend Framework perguntas e respostas de entrevista

Pergunta 16. How to include css from controller and view in zend.

From within a view file: $this->headLink()->appendStylesheet(ā€˜filename.css’);
From within a controller: $this->view->headLink()->appendStylesheet(ā€˜filename.css’);
And then somewhere in your layout you need to echo out your headLink object:
headLink();?>

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 17. How do you protect your site from sql injection in zend when using select query?

You have to quote the strings,
$this->getAdapter ()->quote ( );
$select->where ( ā€ = ā€œ, );
OR (If you are using the question mark after equal to sign)
$select->where ( ā€ = ? ā€œ, );

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 18. What is MVC?

=> Model-View-Controller development pattern.
=> MVC is a software approach that separates application logic from presentation.

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 19. Features of MVC in Zend Framework?

=> Declare custom routing rules
Not limited to ā€œcontroller/action/paramā€ format
=> Optional Controller Plugins, Action Helpers, and View Helpers
ErrorHandler plugin handles exceptions, 404 errors, etc.
FlashMessenger, Redirector, ViewRenderer helpers
Output common HTML elements in views
=> Extensible interfaces
Write your own plugins and helpers

Isto e util? Adicionar comentario Ver comentarios
 

Pergunta 20. Why can't Zend_Form render my File element without errors?

The file element needs a special file decorator, which is added by default. When you set your own decorators for file elements, you delete the default decorators.
For example:
$element->setDecorators(array(
array('ViewHelper'),
array('Errors')
));
You should use a File decorator instead of the ViewHelper for the file element, like so:
$element->setDecorators(array(
array('File'),
array('Errors')
));

Isto e util? Adicionar comentario Ver comentarios
 

Mais uteis segundo os usuarios:

Copyright Ā© 2026, WithoutBook.