Welcome Guest, Not a member yet? Register   Sign In
Having problems with the table helper
#3

[eluser]sundancekid[/eluser]
I think so.

Model:

Code:
class Examplemodel extends Model {

    function Exampleemodel()
    {
        //Call the Model constructor
        parent::Model();
    }

    function get_trade_results()
    {
        // Produces: SELECT * FROM mytable
        $query = $this->db->query("SELECT * FROM example");
        return $query->result();
    }

Controler:

Code:
function examplesearch()
        {
            $this->load->model('Examplemodel', '', TRUE);
            $query = $this->Examplemodel->get_trade_results();
            $this->load->library('table');
                echo $this->table->generate($query);

          }


Messages In This Thread
Having problems with the table helper - by El Forum - 12-23-2007, 12:19 PM
Having problems with the table helper - by El Forum - 12-23-2007, 12:35 PM
Having problems with the table helper - by El Forum - 12-23-2007, 01:02 PM
Having problems with the table helper - by El Forum - 12-23-2007, 01:49 PM
Having problems with the table helper - by El Forum - 12-23-2007, 05:53 PM
Having problems with the table helper - by El Forum - 12-23-2007, 05:58 PM
Having problems with the table helper - by El Forum - 12-23-2007, 10:41 PM
Having problems with the table helper - by El Forum - 12-23-2007, 11:08 PM
Having problems with the table helper - by El Forum - 12-23-2007, 11:09 PM
Having problems with the table helper - by El Forum - 12-24-2007, 01:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB