A CodeIgniter helper to manipulate and return the current/new query string.
- Place
query_string_helper.phpinapplication/helpers. - Load helper with
$this->load->helper('query_string_helper')
| // html purifier | |
| require_once $this->fcpath.$this->apppath.'libraries/htmlpurifier/library/HTMLPurifier.auto.php'; | |
| $this->ci->htmlpurifier = new HTMLPurifier(); | |
| $config = HTMLPurifier_Config::createDefault(); | |
| $this->html = $this->ci->htmlpurifier->purify($this->html, $config); |
| /** | |
| * backdrop function. | |
| * | |
| * creates twitter bootstrap backdrop, optional callback | |
| * | |
| * @access public | |
| * @param mixed callback | |
| * @return void | |
| */ |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * MY_Session | |
| * | |
| * Adds all_flashdata | |
| * | |
| * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 | |
| * @author Mike Funk | |
| * @link http://mikefunk.com | |
| * @email mike@mikefunk.com |
| <?php | |
| // inside the test class... | |
| // mock | |
| require_once(BASEPATH.'libraries/email.php'); | |
| $this->_ci->email = $this->getMock('CI_Email'); | |
| $this->_ci->email->expects($this->any()) | |
| ->method('send') | |
| ->will($this->returnValue(true)); | |
| $this->assertTrue($this->_ci->email->send()); |
| <?php | |
| $to = 'mikedfunk@gmail.com'; | |
| $subject = 'the subject'; | |
| $message = 'hello'; | |
| $headers = 'From: admin@bookymark.com'; | |
| if (mail($to, $subject, $message, $headers)) | |
| { | |
| echo "mail test 2 successful \n\n"; | |
| } |
| <!doctype HTML> | |
| <html> | |
| <head> | |
| <title>IE Submit button test</title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" /> | |
| <style type="text/css"> | |
| body { | |
| padding: 40px; | |
| } |
| <!doctype HTML> | |
| <html> | |
| <head> | |
| <title>IE Submit button test</title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
| <link rel="stylesheet" type="text/css" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" /> | |
| <style type="text/css"> | |
| body { | |
| padding: 40px; | |
| } |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * contest_config_library | |
| * | |
| * Config for the library to get the contest config via CURL or config->load(). | |
| * | |
| * @license Copyright Xulon Press, Inc. All Rights Reserved. | |
| * @author Xulon Press | |
| * @link http://xulonpress.com | |
| * @email info@xulonpress.com |
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| /** | |
| * template_view | |
| * | |
| * Description | |
| * | |
| * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 | |
| * @author Mike Funk | |
| * @link http://mikefunk.com | |
| * @email mike@mikefunk.com |