Skip to content

Instantly share code, notes, and snippets.

@farrelley
Created October 5, 2011 18:00
Show Gist options
  • Save farrelley/1265174 to your computer and use it in GitHub Desktop.
Save farrelley/1265174 to your computer and use it in GitHub Desktop.
<a href="<?php echo $this->url(
array(
'controller' => 'index',
'action' => 'test'
),
array('name' => 'default')
) ?>">test</a>
Catchable fatal error: Object of class Application\View\Helper\Url could not be converted to string in /loc/www/zf2/modules/Application/views/index/index.phtml on line 28 Call Stack #TimeMemoryFunctionLocation 10.0010325664{main}( )../index.php:0 20.0145689820Zend\Mvc\Application->run( )../index.php:36 30.0158773464Zend\EventManager\EventManager->trigger( )../Application.php:217 40.0158773468Zend\EventManager\EventManager->triggerListeners( )../EventManager.php:204 50.0159774752call_user_func ( )../EventManager.php:418 60.0159774768Zend\Mvc\Application->dispatch( )../EventManager.php:418 70.0170804260Zend\Mvc\Controller\ActionController->dispatch( )../Application.php:316 80.0172808524Zend\EventManager\EventManager->trigger( )../ActionController.php:80 90.0172808572Zend\EventManager\EventManager->triggerListeners( )../EventManager.php:204 100.0175812204call_user_func ( )../EventManager.php:418 110.0175812220Application\View\Listener->renderView( )../EventManager.php:418 120.0176812276Zend\View\PhpRenderer->render( )../Listener.php:128 130.0180865552include( '/loc/www/zf2/modules/Application/views/index/index.phtml' )../PhpRenderer.php:417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment