Welcome Guest, Not a member yet? Register   Sign In
How to maintain end of file comment?
#1

[eluser]kenjis[/eluser]
Hi, guys!

CodeIgniter file must have a comment block to mark the end of file and it's location
according to http://ellislab.com/codeigniter/user-gui...losing_tag

Like this:
Code:
/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */

I sometimes forget to update the comment.
How do you maintain the comment?
#2

[eluser]Eric Barnes[/eluser]
I personally have a "eof" tab trigger in my editor that does it automatically.

In textmate it is this snippet:
Code:
/* End of file $TM_FILENAME */
/* Location: `
filepath=$TM_FILEPATH
project=$TM_PROJECT_DIRECTORY
echo ${filepath/$project/.}
` */
#3

[eluser]CroNiX[/eluser]
Its also just good practice, not mandatory. CI, like any php app, will work just fine without any comments, even the ones in the footer.




Theme © iAndrew 2016 - Forum software by © MyBB