reach to a function without refresh
Posted: Tue Dec 01, 2015 1:41 pm
Hi There,
I'm working on an application (legacy code) which is wrapped in laravel 4.2
On a nav bar, upon click I'd like to reach the laravel controller. Things go fine, but until I refresh the page I won't reach to the function.
My code looks like:
in the controller I've:
How do I fix it?
From controller I'd like user to view xyz page, or do some processing.
Do I need to go for AJAX?
Thanks.
I'm working on an application (legacy code) which is wrapped in laravel 4.2
On a nav bar, upon click I'd like to reach the laravel controller. Things go fine, but until I refresh the page I won't reach to the function.
My code looks like:
Code: Select all
if(isset( $_SESSION['currentfunc'])){
if(substr( $_SESSION['currentfunc'], 0,strlen('illumina')) === 'illumina'){
echo App::make('Controllers\illumina\mainIllumina')->route($_SESSION['currentfunc']);
}
}
Code: Select all
public function route($parameter){
Log::info("yes we are here");
}
From controller I'd like user to view xyz page, or do some processing.
Do I need to go for AJAX?
Thanks.