Hello,
Where to type in that function? In which file?
I have this error appears in views/pcategories.php
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: views/pcategories.php
Line Number: 54
Backtrace:
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\views\pcategories.php
Line: 54
Function: _error_handler
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\application\controllers\Cpages.php
Line: 47
Function: view
File: C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyGiondaCI\index.php
Line: 315
Function: require_once
views/pcategories.php
PHP Code:
<div class="widget-box">
<div class="widget-title"><h5>Parent Categories</h5></div>
<div class="widget-content">
<table border="0" style="width: 100%; height: 90px;">
<tr>
<td>PARENT NAME</td>
<td>DESCRIPTION</td>
<td>EDIT</td>
<td>DELETE</td>
</td>
<?php// foreach($posts as $post){?>
<tr><?php echo $this->Mpages->call_parentctg(); ?>
<td><?php echo /*$data['ctgparent_name'];*/ $ctgparent_name; ?></td>
<td><?php echo /*$data['ctgparent_description'];*/ $ctgparent_description; ?></td>
<td><button type="button" class="edit" onclick="location.href='<?php echo site_url('cpages/editparentctg'); ?>';">EDIT</button></td>
<td><button type="button" class="delete" href="adminform.php">DELETE</button></td>
</td>
<tr>
<td><?php //echo $data['ctgparent_name']; ?></td>
<td><?php //echo $data['ctgparent_description']; ?></td>
<td><button type="button" class="edit" onclick="location.href='<?php echo site_url('cpages/addparentctg'); ?>';">EDIT</button></td>
<td><button type="button" class="delete" href="adminform.php">DELETE</button></td>
</td>
<?php// }?>
</table>
</div>
</div>
line 54: <tr><?php echo $this->Mpages->call_parentctg(); ?>
" If I looks more intelligence please increase my reputation."