Gadgetto Posted April 19, 2019 Share Posted April 19, 2019 Hi, I'm just experimenting with Markup Regions and have a question regarding conditional replacement of a region. Is this the right way to do the following: <?php if (!modules()->isInstalled('ModuleRequiredForRendering')) { ?> <div id="content"> <strong>ModuleRequiredForRendering</strong> module is not installed. Module is required to render this page! </div> <?php return; } ?> <div id="content"> // output content ... </div> Link to comment Share on other sites More sharing options...
bernhard Posted April 21, 2019 Share Posted April 21, 2019 Don't see anything wrong with that ? Link to comment Share on other sites More sharing options...
Gadgetto Posted April 21, 2019 Author Share Posted April 21, 2019 Thanks @bernhard! Link to comment Share on other sites More sharing options...
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