Blog

Archive for the CodeIgniter Category


Creating a Counter using CodeIgniter
Posted on June 26, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

Controller Code Snippet

<?php
// If counter session variable is set,

Read more…


$_POST Data and the XSS Filter Using CodeIgnitor
Posted on June 25, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

Enable Global XSS Filtering in the config.php File

<?php
$config[‘global_xss_filtering’] = TRUE;
?>

Getting Form Post Data in Regular PHP

<?php
if ( ! isset($_POST[‘something’]))
{

Read more…


How to Pass Data from an Array in a Controller to a View in CodeIgniter
Posted on June 25, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

First Way

Controller File

<?php
class Test extends CI_Controller
{
public function hello()
{

Read more…


How to Call Views in CodeIgniter
Posted on June 25, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

Inside a test Controller, Example of Calling a test View

<?php
class Test extends CI_Controller
{
public function hello()

Read more…


A Basic Explanation of the MVC Framework Using the Codeigniter PHP Framework as an Example
Posted on June 24, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

In the CodeIgniter PHP MVC framework files:

All or most files dealing with data or database(s) go into a
Read more…

To Top ↑