mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-01-26 03:04:00 +00:00
Error 404 page and template
This commit is contained in:
@@ -30,6 +30,20 @@ class Welcome extends CI_Controller
|
||||
$this->load->view('_footer', $data);
|
||||
}
|
||||
|
||||
public function error404()
|
||||
{
|
||||
$data = array(
|
||||
'page_title' => array( 'Virhe 404: Sivua ei löydetty', 'Ystäväkylä eKortti' ),
|
||||
'page_classes' => array( 'error404' ),
|
||||
'count' => $this->card_count,
|
||||
'user' => $this->user
|
||||
);
|
||||
|
||||
$this->load->view('_header', $data);
|
||||
$this->load->view('error404', $data);
|
||||
$this->load->view('_footer', $data);
|
||||
}
|
||||
|
||||
public function info()
|
||||
{
|
||||
$data = array(
|
||||
|
||||
12
application/views/error404.php
Normal file
12
application/views/error404.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="large-12 small-12 columns">
|
||||
<div class="panel">
|
||||
|
||||
<h2>Virhe 404: Sivua ei löydetty</h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user