This question may sound stupid, but I want this to work. I've got this code:
$data['method'] = 'get';
$this->app->$data['method']();
How can I replace $data['method'] with get but no string. I've tried this, but no luck.
$this->app->{$data['method']}();
Any idea?