[eluser]Unknown[/eluser]
Hi Guys,
I'm using Wiredesign HMVC, but I got a problem with multiple view.
the view not showing in the right place.
Any comments/suggestions welcomed
Dashboard - Controller
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dashboard extends MX_Controller {
public function index( )
{
$this->load->view('dahboard_main_view');
}
}
Dashboard - Views
Code:
<html>
<head>Test Page</head>
<body>
<div class="container">
<div class="row">
<?php foreach ($plugins as $row) : ?>
<div class="span3"><?php echo Modules::run($row.'/widget'); ?></div>
<?php endforeach; ?>
</div>
</div>
</body>
</html>
Browser Source Code - Dashboard
Code:
<div class="widget01">
<table>
<tr>
<th>No</th><th>Requestor</th><th>Action</th>
</tr>
<tr>
<td>1</td><td>Name 01</td><td>Not Yet</td>
</tr>
<tr>
<td>2</td><td>Name 02</td><td>Created</td>
</tr>
<tr>
<td>3</td><td>Name 03</td><td>Created</td>
</tr>
</table>
</div>
<div class="widget02">
<table>
<tr>
<th>No</th><th>Requestor</th><th>Action</th>
</tr>
<tr>
<td>1</td><td>Name 01</td><td>Not Yet</td>
</tr>
<tr>
<td>2</td><td>Name 02</td><td>Created</td>
</tr>
<tr>
<td>3</td><td>Name 03</td><td>Created</td>
</tr>
</table>
</div>
<!DOCTYPE html>
<head>Test Page</head>
<body>
<div class="container">
<div class="row">
<div class="span3"></div>
<div class="span3"></div>
</div>
</div>
</body>
</html>
and now my widget table (example plugin) showing in the top of my page. not in the page body.
Thanks In advance
Sorry for my english.