Quote:
Originally Posted by rajdeep01
You can add conditional logic to vary the message returned, dependent upon the specific error code.
Here is an example of how to trap a 404 error and provide a custom message.
<?php if ($this->error->code == '404') { ?>
<div id="errorboxheader">Page not found</div>
<div id="errorboxbody"><p>Sorry! That page cannot be found.</p>
</div>
</div>
<?php } ?>
|
Quote:
Originally Posted by rajdeep01
If you want to see the error page in theme design and don't like redirecting to error page URL or duplicating HTML in the error page template, here is a way to apply your theme template to the error page.
First, put the following code in templates/<template-name>/error.php:
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
include dirname(__FILE__) . "/index.php";
?>
|
What does either of these have to do with the ops error? - you're talking about a 404 (page not found) error in the first message and in the second I have no idea what you're trying to get at. Neither seem relevant to the actual problem.