Hi, how can i query using CI methods?
let’s say we have a expression engine template
and instead of using
{exp:query sql="SELECT distinct field_id_200 FROM exp_channel_data"}using this
ee()->db->query("SELECT distinct field_id_200 FROM exp_channel_data")what files should i include?
or how can i access the db files inside config/ in order to connect to db and get the files…
can any one give me one simple example, i do not understand CI,