Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[Smarty 3.1.30] Fatal error: Uncaught --> Smarty: Smar

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
s2provn
Smarty n00b


Joined: 23 Feb 2017
Posts: 1

PostPosted: Thu Feb 23, 2017 9:20 am    Post subject: [Smarty 3.1.30] Fatal error: Uncaught --> Smarty: Smar Reply with quote

My code:
Code:
$smarty->caching = 2;
    $smarty->cache_lifetime = 86400;
    $smarty->compile_check = true;
    if(!$smarty->is_cached('index.tpl')) {
        $data = $admin->load();
        $smarty->assign('data', $data);
    }
    $smarty->display('index.tpl');

When run:
Code:
Fatal error: Uncaught --> Smarty: Smarty->is_cached() undefined method <-- thrown in C:\xampp\htdocs\startup\plugin\smarty\sysplugins\smarty_internal_undefined.php on line 47

Plz help me fix it.[/code]
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Thu Feb 23, 2017 12:34 pm    Post subject: Reply with quote

http://www.smarty.net/docs/en/api.is.cached.tpl
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP