Welcome Guest, Not a member yet? Register   Sign In
Custom configuration checking function .

Hello there ,

I have made a custom configuration file for my website,it includes the configuration of my website.

can i write a function to check the configuration outside the controller ?

as an example : i have a configuration file named siteconfig.php and a configuration item is :
//Values are UP and DOWN

when the $sitestatus is DOWN then i want to prevent the page loading and need to display a custom message/page.

there are somany configuration files and items on it,so can i create a function for validating the configurations ?because i dont want to check these on each and every controllers,i just need this as a function.

How can i achieve that ? and how can i use that ?

its looks like a newbie Q ,but i really need a solution .

Thanks in advance.

Theme © iAndrew 2016 - Forum software by © MyBB