-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.php
More file actions
46 lines (37 loc) · 2 KB
/
controller.php
File metadata and controls
46 lines (37 loc) · 2 KB
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
46
<?php
/*==========================================================================*\
|| ######################################################################## ||
|| # MMInc PHP # ||
|| # Project: MyList # ||
|| # $Id: $ # ||
|| # $Date: $ # ||
|| # $Author: $ # ||
|| # $Rev: $ # ||
|| # -------------------------------------------------------------------- # ||
|| # @Copyright (C) 2010 - Cameron Barr, Magnetic Merchandising Inc. # ||
|| # @license GNU/GPL http://www.gnu.org/copyleft/gpl.html # ||
|| # -------------------------------------------------------------------- # ||
|| # http://www.magneticmerchandising.com info@magneticmerchandising.com # ||
|| ||
|| # -------------------------------------------------------------------- # ||
|| ######################################################################## ||
\*==========================================================================*/
jimport('legacy.controller.controller');
class MyListController extends JController {
function display(){
$input = new JInput;
$type = $input->get("format",'html');
$viewName = $input->get('view', 'mylist');
$view = $this->getView($viewName, $type);
if($model = $this->getModel($viewName)){
$view->setModel($model, true);
}
//gp($this->getModel('login', 'MyListModel'));
if($loginModel = & $this->getModel('Login', 'MyListModel')){
$view->setModel($loginModel, false);
}
$view->display();
$this->redirect();
}
}
?>