Zahari M. Posted May 22, 2014 Posted May 22, 2014 Hi guys! I was trying to develop a new site based on an old sites template files etc and I ended up getting a blank white screen! What happened was that my template files were calling for Comments and All in One Minify. As it was a new site being brought to life, I had not yet activated these two modules. So my question is... how can I use something like an if {...} statement to check if the Comments module and the All In One Minify module have been activated? Cheers guys!
netcarver Posted May 22, 2014 Posted May 22, 2014 Does this work... if (wire('modules')->isInstalled("module name")) { // boleh! } else { // 'tak boleh } ..? 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now