Skip to content

Instantly share code, notes, and snippets.

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* application/controller/welcome.php
*
*/
class Welcome extends CI_Controller {
public function index()
CREATE DEFINER=`user`@`localhost` PROCEDURE `test`()
BEGIN
SELECT * FROM users;
END
@ckdarby
ckdarby / welcome.php
Created June 6, 2012 00:30
Issue #1328
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* application/controllers/welcome.php
*
*/
class Welcome extends CI_Controller {
public function index()
{
@ckdarby
ckdarby / config.php
Created June 5, 2012 23:33
Example that bcit-ci/CodeIgniter#1291 has been fixed
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* application/config/config.php
*
*/
//These are the only options in refernece to this issue
$config['base_url'] = '';
$config['csrf_protection'] = TRUE;
@ckdarby
ckdarby / Config_test.php
Created June 5, 2012 19:15
CI /tests/codeigniter/core/Config_test.php
public function set_up()
{
$cls =& $this->ci_core_class('cfg');
// set predictable config values
$this->ci_set_config(array(
'index_page' => 'index.php',
'base_url' => 'http://example.com/',
'subclass_prefix' => 'MY_'
));