Friday 11 February 2011 12:14:29 pm
No, I didn't want the list of used templates. What I meant is something that would display the output of the error templates - a way of generating a fake error condition. What I did was write a one module, one view extension that just passes the error number to the error handler - I was just hoping that there was some easy way of doing this, I mean, I'm sure I'm not the first person who ever wanted to test error templates.
<?php
/*
# The following error codes for kernel is currently defined
# 1 - Access denied
# 2 - Object not found
# 3 - Object not available
# 20 - Module not found
# 21 - Module view not found
# 22 - Module or view disabled
# 50 - No DB connection
*/
$Module = $Params['Module'];
$errorId = $Params['errorId'];
return $Module->handleError( $errorId );
?> Edit - (D'oh) there is an easy way, all I needed to do was go to: error/view/kernel/<error number> error/view/shop/<error number>
Certified eZPublish developer
http://ez.no/certification/verify/396111
Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com
|