Custom configuration checking function . - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Custom configuration checking function . (/showthread.php?tid=44254) |
Custom configuration checking function . - El Forum - 08-09-2011 [eluser]Dileep[/eluser] 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 : Code: $config['sitestatus']='UP'; 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. |