Blog


Display all MySQL Table Rows using CodeIgniter with Model, Controller, and View Code Examples
Posted on July 2, 2015 in CodeIgniter, MVC, MySQL, PHP by Matt Jennings

<?php
class UserDashboardModel extends CI_Model
{
// Get all rows from “users” table
public function show_all_users()

Read more


Native Input, Session, and Flash Variables in CodeIgniter
Posted on June 26, 2015 in CodeIgniter, MVC, PHP by Matt Jennings

<?php
// Run a filter globally to fight against XSS attacks by
// updating the “application/config/config.php” file to “TRUE” like below:
$config[‘global_xss_filtering’] = …

Read more


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

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

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

<?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

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

Read more