Welcome Guest, Not a member yet? Register   Sign In
Trying to get property of non-object
#3

Fatal error: Cannot use object of type stdClass as array in C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\pcategories.php on line 56
A PHP Error was encountered

Severity: Error

If I change call_parentctg() to return an array. I start to have this error message in my views:

Message: Cannot use object of type stdClass as array

Filename: views/pcategories.php

Line Number: 56

Backtrace:


<?php foreach ($posts as $post): ?>

<tr>
<td><?php echo $post['ctgparent_name']; ?></td> // line 56
" If I looks more intelligence please increase my reputation."
Reply


Messages In This Thread
Trying to get property of non-object - by davy_yg - 08-28-2016, 06:29 PM
RE: Trying to get property of non-object - by davy_yg - 08-29-2016, 11:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB