Moderators servetas Posted April 28, 2012 Moderators Report Posted April 28, 2012 I cannot find any solution to this problem: From the module: $this->set('comment', xxxData::xxxSearch($icao)); From the template (xxx_searche.tpl): <?php foreach($comment as $com) //This is line 14 { ?> <tr> <td><?php echo $com->xxx; ?></td> And in the end it gives me this error: Warning: Invalid argument supplied for foreach() in C:\AppServ\www\fss\core\templates\xxx\xxx_searche.tpl on line 14 Quote
mattia Posted April 28, 2012 Report Posted April 28, 2012 I'm not sure but try this $this->set('comment', xxxData::xxxSearch($icao)); $this->render('xxx_searche.tpl'); Quote
Moderators servetas Posted April 28, 2012 Author Moderators Report Posted April 28, 2012 Yes i had already that on my code! Fortunately i found the solution after some hours The problem was that i have not added anything on the database. Sorry for that!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.