blad Posted August 16, 2014 Share Posted August 16, 2014 I am doing a module to show tables of contents like widgets. The problem is that I receive the code footer before the tables. Any ideas? Sample: The code: public function ___execute() { $noticias = wire('pages')->find('template=noticia, limit=5'); $salida .= "<table style='width:30%; margin-right: 3%;' class='widget_admin'> <tr> <td colspan='3' class='cabeceraplugin' style='width:100%; background-color:#FF7F50; color:#fff;'><a href='#'><i style='margin-right:10px;' class='fa fa-home'></i>Últimas noticias</a> <a class='crearboton' href='{$config->urls->admin}page/add/?id={$noticia->parentID}'>Crear <i class='fa fa-plus'></i></a></td> </tr><tr>"; foreach($noticias as $noticia) { $salida .= "<td><a href='{$config->urls->admin}page/edit/?id={$noticia->id}'>{$noticia->title}</a></td> <td style='width:5%'> <a href='{$config->urls->admin}page/edit/?id={$noticia->id}'><i class='fa fa-edit'></i></a></br> <a href='{$config->urls->admin}page/delete/?id={$noticia->id}'><i class='fa fa-times'></i></a></td> </tr>"; } return $salida; 1 Link to comment Share on other sites More sharing options...
blad Posted August 16, 2014 Author Share Posted August 16, 2014 Okey i´m stupid $salida .= "</table>"; Sorry. Delete this post please. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now