FuelPHP Bin
Sign in
Public
PHP
Save
<?php namespace Controller; use Controller\Rest\Exceptions; /* * Test Controller, for test code */ class Test extends \Controller\Rest\Common\Base { public function get_index() { try { throw new Exceptions\TokenExpiredException("Token Exception!"); } catch(Exceptions\TokenExpiredException $ex) { echo 'Exception: ' . $ex->getMessage(); } try { throw new Exceptions\InvalidTokenException("Invalid Token Exception!"); } catch(Exceptions\InvalidTokenException $ex) { echo 'Exception: ' . $ex->getMessage(); } } public function get_phpinfo() { echo phpinfo(); } }