CodeIgniter at a Glance

CodeIgniter is an Application Framework CodeIgniter is a toolkit for people who build web applications using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task. CodeIgniter is Fre

CI_Input::post_get()

post_get($index[, $xss_clean = NULL]) Parameters: $index (string) – POST/GET parameter name $xss_clean (bool) – Whether to apply XSS filtering Returns: POST/GET value if found, NULL if not Return type: mixed This method works pretty much the same way as post() and get(), only combined. It will search through both POST and GET streams for data, looking in POST first, and then in GET: $this->input->post_get('some_data', TRUE);

index_page()

index_page() Returns: ‘index_page’ value Return type: mixed Returns your site index_page, as specified in your config file. Example: echo index_page();

CI_DB_driver::update_string()

update_string($table, $data, $where) Parameters: $table (string) – The target table $data (array) – An associative array of key/value pairs $where (mixed) – The WHERE statement conditions Returns: The SQL UPDATE statement, as a string Return type: string Generate an UPDATE statement string.

Running via the CLI

As well as calling an applications Controllers via the URL in a browser they can also be loaded via the command-line interface (CLI). Page Contents Running via the CLIWhat is the CLI? Why run via the command-line? Let’s try it: Hello World! That’s it! What is the CLI? The command-line interface is a text-based method of interacting with computers. For more information, check the Wikipedia article. Why run via the command-line? There are many reasons for running CodeIgniter from the command-