Welcome Guest, Not a member yet? Register   Sign In
how to set $heading on show_error() and show_404()
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB