I'm currently getting undefined-index with the following line in my view
<?php echo $contentMangement['cms_name']; ?>
I am getting the information fine from the DB

Can someone explain why I am getting this error?
I'm currently getting undefined-index with the following line in my view
<?php echo $contentMangement['cms_name']; ?>
I am getting the information fine from the DB

Can someone explain why I am getting this error?
$contentManagement looks like it's an array of objects. Objects don't use bracket notation ([]), but rather arrow notation (->).
So first, you'll have to get the element of the one-item array:
$object = $contentManagement[0];
And then you can access the cms_name property of that object:
$value = $object->cms_name;