Hi,
strange, I do a find and I can debug my results perfectly.
Then I do a $this->set('results', $results); and I can debug() it
again in the view.
Then I need to do a foreach like
foreach($results as $key => $object):
debug($object);
The array looks like
Array
(
[Gesamtobjekt] => Array
(
[OBJ_NUMMER] => 8104-3
[OBJ_ID] => 1246
within the foreach I try to debug($object['Gesamtobjekt']) which
returns me the array like
Array
(
[OBJ_NUMMER] => 8104-3
[OBJ_ID] => 1246
When I do
debug($object['Gesamtobjekt']['OBJ_NUMMER']) I get the following error
message
Fatal error: Cannot use string offset as an array
I have done this so many times before, never had this kind of problems
before...
I can see the output from the debug and it's right! So I can access
the array correctly!
But why do I get this Fatal Error anyway??
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php