CodeIgniter Forums
how to set $heading on show_error() and show_404() - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: how to set $heading on show_error() and show_404() (/thread-48143.html)



how to set $heading on show_error() and show_404() - El Forum - 01-05-2012

[eluser]Alpha[/eluser]
general_error.php and error_404.php have this
Code:
<body>
<div id="container">
  <h1>&lt;?php echo $heading; ?&gt;</h1>
  &lt;?php echo $message; ?&gt;
</div>
&lt;/body&gt;

$message is set by passing string
Code:
show_error('this is error')
but how do i set the $heading?

for the show_404
Code:
show_404('/this_page_was_not_found', FALSE)
i can't set the $heading and $message, is something wrong?

tnx