Commit for the hell of it.
git-svn-id: http://svn.cleancode.org/svn/pickles@78 4d10bc64-7434-11dc-a737-d2d0f8310089
This commit is contained in:
parent
52b58b81e7
commit
d6d774e04b
3 changed files with 10 additions and 4 deletions
0
classes/Controller.php
Executable file → Normal file
0
classes/Controller.php
Executable file → Normal file
|
@ -47,6 +47,10 @@ class Viewer_PHP extends Viewer_Common {
|
|||
$this->template = SITE_PATH . '../templates/' . $this->model_name . '.php';
|
||||
$this->shared_template = PICKLES_PATH . 'templates/' . $this->shared_name . '.php';
|
||||
|
||||
//if (filemtime($this->template)) {
|
||||
// readfile('/var/www/josh/pickles/var/joshtronic.localhost/smarty/cache/home.html');
|
||||
//}
|
||||
|
||||
/**
|
||||
* @todo There's a bug with the store home page since it's a redirect, maybe
|
||||
*/
|
||||
|
|
|
@ -56,9 +56,11 @@ class Viewer_Smarty extends Viewer_Common {
|
|||
* @todo move this to the config
|
||||
*/
|
||||
// Enables caching
|
||||
//$smarty->caching = 1;
|
||||
//$smarty->compile_check = true;
|
||||
//$smarty->cache_lifetime = 3600;
|
||||
$smarty->caching = 1;
|
||||
$smarty->compile_check = true;
|
||||
$smarty->cache_lifetime = 3600;
|
||||
|
||||
var_dump($smarty->is_cached('index.tpl', $this->model_name));
|
||||
|
||||
// Loads the trim whitespace filter
|
||||
$smarty->load_filter('output','trimwhitespace');
|
||||
|
@ -133,7 +135,7 @@ class Viewer_Smarty extends Viewer_Common {
|
|||
* template to determine whether or not the index should be loaded?
|
||||
*/
|
||||
if ($smarty->template_exists('index.tpl')) {
|
||||
$smarty->display('index.tpl');
|
||||
$smarty->display('index.tpl', $this->model_name);
|
||||
}
|
||||
else {
|
||||
$smarty->display($template);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue