<!--?php
namespace Fuel\Tasks;
class Apitest
{
public static function run()
{
$api = new \Myapi;
$api->set_params(\Config::get('apisettings'));
try
{
echo $api->assets();
}
catch (HttpServerErrorException $e)
{
Cli::error($e);
}
}
}
\HttpServerErrorException
, because the class is defined in the global namespace, not the Fuel\Tasks namespace.It looks like you're new here. If you want to get involved, click one of these buttons!