Skip to content

Uncaught exception when try use Slim's redirect method #2

@nandodutra

Description

@nandodutra

Hi everyone, i'm was following this tutorial, but i had a issue when tryed use the Slim's redirect method in a controller, take a look at the output of log:

127.0.0.1:33766 [500]: / - Uncaught exception 'Slim\Exception\Stop' in /var/www/Slim-MVC/vendor/slim/slim/Slim/Slim.php:927

Stack trace:
#0 /var/www/Slim-MVC/vendor/slim/slim/Slim/Slim.php(947): Slim\Slim->stop()
#1 /var/www/Slim-MVC/vendor/slim/slim/Slim/Slim.php(1010): Slim\Slim->halt(302)
#2 /var/www/Slim-MVC/Controller/Main.php(9): Slim\Slim->redirect('/test/fernando')
#3 [internal function]: Controller\Main->index()
#4 /var/www/Slim-MVC/vendor/NetTuts/Router.php(68): call_user_func_array(Array, Array)
#5 [internal function]: NetTuts\Router->NetTuts{closure}()
#6 /var/www/Slim-MVC/vendor/NetTuts/Router.php(83): call_user_func_array(Object(Closure), Array)
#7 /var/www/Slim-MVC/public/index.php(23): NetTuts\Router->run()
#8 {main}

thrown in /var/www/Slim-MVC/vendor/slim/slim/Slim/Slim.php on line 927

i thought did something wrong when was following the tutorial, then i clone the Github's repository https://github.com/NETTUTS/Slim-MVC and i had the same issue.

Someone know how solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions