danimohamadnejad
5 months ago
363
0
General

How to grap error happning in output buffer and html element attribute?

Posted 5 months ago by danimohamadnejad

Hi I am working on a PHP framework and I am using output buffer to display view and layout. Problem is that I can't get PHP errors and exceptions happening in HTML element attributes. Please notice: If any thing is wrong with $name, it will be shown. But there will be no sign of errors if anything is wrong with PHP expression in href attribute. What is the best solution to fix this? Should I specify any error handler? <a href="<?php echo url();?>"><?php echo $name;?></a>

Please sign in or create an account to participate in this conversation.