Jump to content

The footer before the module contents


blad
 Share

Recommended Posts

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: 

post-2447-0-26656600-1408166203_thumb.jp

post-2447-0-90449600-1408166246_thumb.jp

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;

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...