Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1830

Extension Writers Discussion • Re: Creating a controller that handles POST

$
0
0
https://area51.phpbb.com/docs/dev/3.3.x ... -injection
No files requested, your __construct( is wrongly set.

Code:

class blobuploader{    protected $user;    protected $request;    protected $root_path;    protected $php_ext;    public function __construct(        \phpbb\user user $user,        \phpbb\request\request $request,        $root_path,        $php_ext) {        $this->user = $user;        $this->request = $request;        $this->root_path = $root_path;        $this->php_ext = $php_ext;    }    public function handle_request()    {        //...        return $this;    }

Statistics: Posted by Steve — Mon Jan 13, 2025 4:51 pm



Viewing all articles
Browse latest Browse all 1830

Trending Articles