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.
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.
|
Welcome Guest, Not a member yet? Register Sign In |