• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where to put if ( ! defined('BASEPATH')) exit('No direct script access allowed');

#11
[eluser]tudo75[/eluser]
When I try to create docs with phpdoc I have a lot of errors that ask me to put a summary in every class at the top of every php line code, so my answear is:
it's safe to put a docblock before the if call?

Code:
<?php
/**
* Summary docblock
*/
if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);

Thanks

#12
[eluser]CroNiX[/eluser]
Well, yeah, as long as it's the first line of actual code.

#13
[eluser]tudo75[/eluser]
Thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.