USING V2.2.3 PROBLEM |
if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php'))
{ // Whoops, we don't have a page for that! show_404(); } Fatal error: Call to undefined function file_exits() in C:********* IT GIVES ME AN ERROR.. KINDLY HELP ME OUT. THANKS
It looks like you may need to copy/paste your code and the error message directly over to the forum. Your error message doesn't match your code in this case, as the error message implies a typo in your code which isn't reflected in the code itself.
as mwhitney you need to copy and paste your script so we can debug it together
(08-19-2015, 03:25 AM)jon12345 Wrote: if ( ! file_exists(APPPATH.'/views/pages/'.$page.'.php')) You have a typo. file_exists() is defined in system/core/Codeigniter.php and is always available.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Actually, file_exists() is defined by PHP, which makes it even more likely that there's a typo, but the typo is clearly not in the code that was included in the question.
(08-24-2015, 08:30 AM)mwhitney Wrote: Actually, file_exists() is defined by PHP True! I had too much beer when I replied it was defined in CI !
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |