Advertisement
Guest User

Untitled

a guest
Nov 17th, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.         // Check if the path exists to the requested module, also make sure to check if the module exists.
  2.         $path = APPPATH.'modules/'.strtolower($moduleName);
  3.  
  4.         // Does the folder exist?
  5.         if(!is_dir($path))
  6.         {
  7.             CI::$APP->template->show404();
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement