-1
rated 0 times
[
5]
[
6]
/ answers: 1 / hits: 21672
/ 10 Years ago, sat, may 10, 2014, 12:00:00
I want to redirect from a view:
Route::get('/MyRoute', function () {
return View::make('MyView');
});
In MyView I want to execute some JavaScript and then Redirect to a download:
// some imaginary javascript code, which will get executed
<?php
Redirect::to('/MyRoute2');
I can't seem to find a way, which will work. What am I doing wrong?
Of course I could change the /MyRoute
to:
Route::get('/MyRoute', function () {
return Redirect::to('/MyRoute2');
});
but then I can't execute some JavaScript code.
More From » php