It looks like you're new here. If you want to get involved, click one of these buttons!
but when i search through the backend search field i get
// My model
public $filters = array( 'name', 'collection'); // where collection is the JOINed field
...
function list_items($limit = NULL, $offset = NULL, $col = 'id', $order = 'desc') {
$this->db->join('collections', 'collections.id = products.collection_id', 'left');
$this->db->select('products.id, collections.title as collection', FALSE);
$data = parent::list_items($limit, $offset, $col, $order);
return $data;
}
...
function _common_query(){
$this->db->join('collections', 'collections.id = products.collection_id', 'left');
$this->db->select('products.id, collections.title as collection', FALSE);
parent::_common_query();
}
Any clue?
A Database Error Occurred
Error Number: 1054
Unknown column 'products.collection' in 'where clause'
Comments
'UPDATE `ci_sessions` SET `last_activity` = 1340380635, `....'
(session query)
and PHP errors as stated above...