/
Home_model.php
45 lines (39 loc) · 1.11 KB
/
Home_model.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Home_model extends GO_Home_model {
public function __construct(){
parent::__construct();
}
/**
* This function fires in ADMIN login process, so that additional application
* specific logic can be injected at login runtime.
*/
public function admin_login_helper($user, $post) {
return;
}
/**
* This function fires in HOME login process, so that additional application
* specific logic can be injected at login runtime.
*/
public function home_login_helper($data) {
return;
}
/**
* Data queries for page load, any datasets for which you want to return result sets
* should have a matching route below and your requested data
*
* @return array
*/
public function queries($route) {
switch ($route) {
case 'home':
return array(
'data' => "None Today!"
);
break;
default:
return array();
break;
}
}
}