CodeIgniter Forums
return $fields = $db->getFieldNames('menus') not working!? - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: General Help (
+--- Thread: return $fields = $db->getFieldNames('menus') not working!? (/showthread.php?tid=78151)

return $fields = $db->getFieldNames('menus') not working!? - blaasvaer - 12-06-2020

What am I missing here (again).

I can't get a ResourceController to return the field names of a database table ... I can't seem to get my head around HOW to debug ANYTHING in CI except randomly typing stuff in ... WHAT am I missing in debugging CI 4?

RE: return $fields = $db->getFieldNames('menus') not working!? - InsiteFX - 12-06-2020

Did you setup the env file in the root where index.php is? You need to set the CI_ENVIRONMENT = development
there then save it as .env

Quick way old faithful:

PHP Code:
echo $whatEver;