Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB