Welcome Guest, Not a member yet? Register   Sign In
isset
#7

There's no problem using plain PHP, but you can also make your life easier by using CI's features.

For example, instead of doing this:
PHP Code:
$something = isset($_POST['foo']) ? $_POST['foo'] : NULL

...you can do this, for the same result:
PHP Code:
$something $request->getPost('foo'); 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
isset - by Jeewakapk - 11-06-2020, 11:07 AM
RE: isset - by captain-sensible - 11-06-2020, 12:26 PM
RE: isset - by Jeewakapk - 11-07-2020, 11:37 AM
RE: isset - by captain-sensible - 11-07-2020, 11:50 AM
RE: isset - by Jeewakapk - 11-11-2020, 04:01 AM
RE: isset - by captain-sensible - 11-12-2020, 01:08 PM
RE: isset - by includebeer - 11-14-2020, 05:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB