Welcome Guest, Not a member yet? Register   Sign In
Using another database
#1

[eluser]ninjayan[/eluser]
Hello everyone. This is my code for the ignited datatables..


Code:
$this->load->library('datatables');
  $this->datatables
     ->select("doc_ref, source_doc, subject_doc, enter_doc, date_doc")
     ->from("tbl_doc")
     ->add_column("Action",
        "<form id='disable_form' acti method='post' target='_blank'>
        <input type='hidden' value='$1' id='reference_number' name='reference_number' readonly>
        <button type='submit' class='no_btn' title='View'>
        <img src='$base_dir/assets/img/execute.png' class='left' />
        </button>
        &lt;/form&gt;
        ",
        "doc_ref"
        );
  echo $this->datatables->generate();

I updated CI's db config and added another database connection and I want to use that in the ignited datatables. How can I do that? Thanks in advance!


Messages In This Thread
Using another database - by El Forum - 07-12-2013, 01:04 AM
Using another database - by El Forum - 07-12-2013, 03:38 AM
Using another database - by El Forum - 07-12-2013, 04:32 AM
Using another database - by El Forum - 07-12-2013, 04:39 AM
Using another database - by El Forum - 07-12-2013, 05:51 AM
Using another database - by El Forum - 07-13-2013, 08:16 PM
Using another database - by El Forum - 07-13-2013, 08:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB