diff --git a/protected/src/Configs/on_HTML.php b/protected/src/Configs/on_HTML.php index 82893be..1ab1a2a 100644 --- a/protected/src/Configs/on_HTML.php +++ b/protected/src/Configs/on_HTML.php @@ -13,7 +13,8 @@ use IOcornerstone\Framework\Configure; Configure::set('html', array( 'author' => 'Robert Strutts', 'title' => 'StickingToGoal.com', - 'javascript' => array(), //'js/analytics.js'=>'project' + // 'javascript' => ['js/analytics.js'=>'project''], + 'css' => ['css/index.css'=>'project'], 'robots' => 'noindex', 'keywords' => 'goal, setting', 'description' => 'Goals site', diff --git a/protected/src/Controllers/App/HomeController.php b/protected/src/Controllers/App/HomeController.php index b01f9b9..b2357e0 100644 --- a/protected/src/Controllers/App/HomeController.php +++ b/protected/src/Controllers/App/HomeController.php @@ -35,9 +35,14 @@ class HomeController extends BaseController { Security::initSessions(); + $this->html->addToJavascript("function filterTag(tag){ \r\n window.location='?tag='+encodeURIComponent(tag); \r\n }"); + $pdo = Configure::get('db'); $model = new HomeFetchModel($pdo); + $this->view->set('html', $this->html); + $this->view->setPhpTemplate('main'); + $this->view->setView("App/Home/Index"); $this->view->set("Model", $model); diff --git a/protected/src/Templates/main.php b/protected/src/Templates/main.php new file mode 100644 index 0000000..b3f7cc4 --- /dev/null +++ b/protected/src/Templates/main.php @@ -0,0 +1,45 @@ + + + +
+ +