08.10.2017 Views

codeigniter_tutorial

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CodeIgniter<br />

set_status_header(200);<br />

echo is_php('5.3')."";<br />

var_dump(is_really_writable('./Form.php'));<br />

echo config_item('language')."";<br />

8')."";<br />

}<br />

echo remove_invisible_characters('This is a &zwnj;test','UTF-<br />

$str = '< This > is \' a " test & string';<br />

echo html_escape($str)."";<br />

echo "is_https():".var_dump(is_https())."";<br />

echo "is_cli():".var_dump(is_cli())."";<br />

var_dump(function_usable('test'))."";<br />

echo "get_mimes():".print_r(get_mimes())."";<br />

public function test(){<br />

}<br />

echo "Test function";<br />

}<br />

?><br />

Change the routes.php file at application/config/routes.php to add route for the above<br />

controller and add the following line at the end of the file.<br />

$route['commonfunctions'] = 'CommonFun_Controller';<br />

Type the following URL in the address bar of your browser to execute the example.<br />

http://yoursite.com/index.php/commonfunctions<br />

70

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!