In my controller I have:
$query = $this->db->query("select * from table");
I want to have a file myquery.sql in which the only contents of that file are:
select * from table
And so I can do something like:
$query = $this->db->query(myquery.sql);
What is the right syntax to do this?