ME and the community will enjoy you write a little tutorial about totally separate stuff calling partial.
Let's say you have the basic application, in your view at some place you want to grab last ten user connected to the website, so you will be able directly in the view to call <?= modules::run('modulenamer', '', 'controller ?') ?>
Something like that ?
thanks![/quote]
You would create a module something like this:
Code:
<?php
class Find_last10 extends Module
{
function Find_last10()
{
parent::Module();
$this->load->model('user_log');
}
function index() //default modules::run method is index
{
$data['result'] = $this->user_log->findPaged("ORDER DESC", 10);
return $this->load->view('last_login_view', $data);
}
}