Moderators servetas Posted April 28, 2012 Moderators Report Share 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 Link to comment Share on other sites More sharing options...
mattia Posted April 28, 2012 Report Share Posted April 28, 2012 I'm not sure but try this $this->set('comment', xxxData::xxxSearch($icao)); $this->render('xxx_searche.tpl'); Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted April 28, 2012 Author Moderators Report Share 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 Link to comment Share on other sites More sharing options...
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.