<?php defined('SYSPATH') or die('No direct script access.'); ?> <div class="well"> <div class="hero-unit"> <h2><?php echo Request::current()->param('message') != NULL ? base64::decode_from_url(Request::current()->param('message')) : __('Page Not Found'); ?> </h2> <p><?php echo __('The requested page'); ?> <?php echo HTML::anchor($requested_page, $requested_page); ?> <?php echo __('is not found'); ?> .</p> <p><?php echo __('It is either not existing, moved or deleted. Make sure the URL is correct.'); ?> </p> <p><?php echo __('To go back to the previous page, click the Back button.'); ?>
/** * Serves HTTP 404 error page */ public function action_404() { $this->template->title = $this->_message != NULL ? base64::decode_from_url($this->_message) : __('Page Not Found'); $this->template->content = View::factory('pages/error/404')->set('error_message', $this->_message)->set('requested_page', Arr::get($_SERVER, 'REQUEST_URI')); }