Jump to content
Larry Ullman's Book Forums

Recommended Posts

require(dirname(__FILE__).DIRECTORY_SEPARATOR.'controllers'.DIRECTORY_SEPARATOR.$route.'.php');

require(dirname(__FILE__).'/controllers/'.$route.'.php');

 

I changed some of my code replacing '/' with the DIRECTORY_SEPARATOR constant does anyone else do this or have any views on this kind of coding technique?

Link to comment
Share on other sites

 Share

×
×
  • Create New...