This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* application/controller/welcome.php | |
* | |
*/ | |
class Welcome extends CI_Controller { | |
public function index() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DEFINER=`user`@`localhost` PROCEDURE `test`() | |
BEGIN | |
SELECT * FROM users; | |
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* application/controllers/welcome.php | |
* | |
*/ | |
class Welcome extends CI_Controller { | |
public function index() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_' | |
)); |
NewerOlder