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

[eluser]slowgary[/eluser]
I recommend reading through the user guide when you have a specific problem like this. Here's the reference for helpers:
http://ellislab.com/codeigniter/user-gui...lpers.html

When you load a helper, you're just including a file. There's no magic that will take your functions and make them methods of an object. This mean that when you use your helper functions, you'll just call them like normal function, not methods of an object:
Code:
$this->load->helper('request');

if(isPost())
{
     echo 'there is post data';
}
This is wrong:
Code:
$this->request->isPost();

I hope this helps.


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