Hi there,
I’m having a little problem with ActiveRecord. I want to run a query like this:
DELETE FROM ci_news WHERE id IN (1, 2, 3);
I know you can write your own query and just run
$this->db->query();
method, but then you have a problem with the table’s prefix.
My questions are:
1. Is there an implementation of something like wherein() method in the ActiveRecord class?
2. If not, how can I access the database config to get the prefix? I tried using
$this->load->config('database')
but it returned an error like “Your database.php file does not appear to contain a valid configuration array.”, even though it works just fine through the entire application.
Thanks in advance.
