CodeIgniter Forums

Full Version: how to set $heading on show_error() and show_404()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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