How to check what goes wrong in $view->render with Zend Framework?

Posted by koko on Stack Overflow See other posts from Stack Overflow or by koko
Published on 2010-03-24T22:28:37Z Indexed on 2010/03/24 22:33 UTC
Read the original article Hit count: 263

Filed under:
|
|

Hi,

I'm working on a CMS with Widgets. On my localhost the followong code works perfect, but I have no idea what I'm doing wrong ... The neede files exist, I think and I get no error message. As far as I can see, the error occurs in the one before last line of code and I get no error message.

$view = new Zend_View();
$view->setScriptPath(APPLICATION_PATH . '/../public/websites/' . My_Cookie::get('alpha_key') . '/views');
$view->headScript()->appendFile($vervang['conf']['jqueryJS']);
$view->headLink()->appendStylesheet($vervang['conf']['jqueryCSS']);
$view->class = $pluginExtraFinal;
$view->vervang = $vervang['data'];
$view->moduleName = $moduleName;
$parsed =  $view->render($vervang['conf']['viewFile']);
$inhoud = str_replace($plugin, $parsed, $inhoud);

Is there a way to troubleshoot this code? How can I get an error message? What can be wrong?

Any suggestions please?

© Stack Overflow or respective owner

Related posts about zend-framework

Related posts about php