![]() |
|
1.4.6.beta issue with cacheManager? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: 1.4.6.beta issue with cacheManager? (/thread-11767.html) |
1.4.6.beta issue with cacheManager? - vincent3569 - 2014-04-28 I don't know if it's realy an issue or not, so I post on the forum before create a ticket. in my themes, I use extensionEnabled('plugin_name') rather class_exists('class_name') or function_exists('function_name'). with that, I have an issue with cacheManager after a new install. in my themeoption.php file, I have these lines to support cacheManager plugin :
If I go firt on plugins tabs and apply without any other actinos, I have no issue. so, despite cacheManager plugin is loaded, cacheManager class is not loaded. 1.4.6.beta issue with cacheManager? - sbillard - 2014-04-28 Please change your theme to use the For instance, the cacheManager plugin may be enabled but will never get loaded on the front end. 1.4.6.beta issue with cacheManager? - vincent3569 - 2014-04-28 Could you explain how and when plugin classes are loaded? Don't you think that all classes of enabled admin plugins should be loaded when we are in admin? 1.4.6.beta issue with cacheManager? - sbillard - 2014-04-28 If the problem was corrected by re-saving the plugins tab then the cause was an improper value stored in the option. At any case, the answer of how your theme should be coded does not change. 1.4.6.beta issue with cacheManager? - vincent3569 - 2014-04-29 please, is there a coding rule which explain how and when I have to use it is not clear for me. 1.4.6.beta issue with cacheManager? - acrylian - 2014-04-29 I cannot answer for For the other two it depends what you use. Some plugins just consists of procedural functions you should check first. Others may be based on a class. If you use a method of their class somewhere you have to check if the class exists as there is no function to check. So the most secure is to check for function or class actually. 1.4.6.beta issue with cacheManager? - vincent3569 - 2014-04-30 In my themes, the only issue is with cacheManager and I don't have any trouble when I use So, I wish to understand: 1.4.6.beta issue with cacheManager? - sbillard - 2014-04-30
class_exists() means that, well, the class does exist, whether or not So if you want to use functionality of a plugin you check if the functionality exists ( You should be using |