Post by Qphoria » Fri Jul 24, 2009 11:45 pm

There is
$this->request->get['']
and
$this->request->post['']

but often I find APIs that require the $_REQUEST method

For now I've just been using the raw version
$order_id = $_REQUEST['order_id'];

Could/Should this be added to the request library:
$this->request->request[''];

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Daniel » Sat Jul 25, 2009 12:02 am

$_REQUEST can mix stuff up.

I'm sure you know request is mix of $_GET, $_POST, $_COOKIE.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by Qphoria » Sat Jul 25, 2009 12:09 am

Well i know its a mix of the first 2.. but sometimes its only important to acquire the returned content.. regardless of method.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests