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


Messages In This Thread
Where to put if ( ! defined('BASEPATH')) exit('No direct script access allowed'); - by El Forum - 09-04-2014, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB