Welcome Guest, Not a member yet? Register   Sign In
My Request helper or library
#2

[eluser]slowgary[/eluser]
Did you load the helper?
Code:
$this->load->helper('request');

Also, I believe your methods are incorrect (I could be wrong). You should be able to use this:
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');



    function isGet()
    {
         return isset($_GET);
    }

     function isPost()
     {
          return isset($_POST);
     }

     function isAjax()
     {
          return isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
     }


Messages In This Thread
My Request helper or library - by El Forum - 09-05-2010, 06:33 AM
My Request helper or library - by El Forum - 09-05-2010, 09:27 AM
My Request helper or library - by El Forum - 09-05-2010, 09:43 AM
My Request helper or library - by El Forum - 09-05-2010, 09:54 AM
My Request helper or library - by El Forum - 09-05-2010, 09:57 AM
My Request helper or library - by El Forum - 09-05-2010, 10:23 AM
My Request helper or library - by El Forum - 09-05-2010, 12:43 PM
My Request helper or library - by El Forum - 09-05-2010, 02:38 PM
My Request helper or library - by El Forum - 09-06-2010, 12:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB