CodeIgniter Forums
End comments showing incorrect file path in native CI files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: End comments showing incorrect file path in native CI files (/thread-54130.html)



End comments showing incorrect file path in native CI files - El Forum - 08-23-2012

[eluser]php_princess[/eluser]
As suggested in the installation guide, I changed the names of my "application" and "system" folders. I also updated $system_path and $application_folder in index.php. However, I noticed that in the end comments for the native CI files, there are still paths like this:

/* End of file Controller.php */
/* Location: ./system/core/Controller.php */

Is this a bug and will it cause any problems?


End comments showing incorrect file path in native CI files - El Forum - 08-23-2012

[eluser]Aken[/eluser]
It's not a bug, those are the default paths. And it's just a comment...


End comments showing incorrect file path in native CI files - El Forum - 08-23-2012

[eluser]php_princess[/eluser]
Hmm, so, what is the purpose of the file path at the end of a script? Is it just for the reference of human coders and never looked at by CI?


End comments showing incorrect file path in native CI files - El Forum - 08-23-2012

[eluser]CroNiX[/eluser]
Yes.


End comments showing incorrect file path in native CI files - El Forum - 08-23-2012

[eluser]php_princess[/eluser]
Thanks guys Smile


End comments showing incorrect file path in native CI files - El Forum - 08-24-2012

[eluser]PhilTem[/eluser]
To be precise: It's a PHP comment which means it's not even of interest to the PHP interpreter/server you're running. Therefore it can contain basically any content and mustn't even lead to an existing path Wink