1.

I want to use the $config variable in my view files. What are the ways to use the same?

Answer»

 Active RECORD is a database design pattern, CI uses a modified version of it. The pattern allows data to be inserted, updated or deleted in the database with nominal scripting. The MAJOR benefit to using the Active Record features is that it allows you to create database INDEPENDENT applications since the query syntax is generated by each database adapter.

To get the raw query we can use $this->db->get_compiled_select(). Difference between get_compiled_select()  and last_query() is that get_compiled_select GIVES the query STRING generated even if we don’t run the query against database.



Discussion

No Comment Found