1
I have a Codeignter with 3 applications, within each welcome view
pattern, the structure is similar to that:
www
Applications
- website
- site2
- site3
- system
I need to figure out how to redirect to site2 for example from site 1.
1
I have a Codeignter with 3 applications, within each welcome view
pattern, the structure is similar to that:
www
Applications
I need to figure out how to redirect to site2 for example from site 1.
1
Hadrian,
A suggestion is to use the function header
, pointing to the URL of the application to be redirected:
header('Location: http://www.example.com/');
header('Location: https://answall.com');
It is a simple, native PHP solution that allows you to redirect. For more information, the PHP documentation explains a few more details.
0
Controller Site 1 to call site 2
public function redirecionar() {
redirect('nomecontrollersite2/indexsite2');
}
Controller Site 2
public function indexsite2() {
$this->load->view('indexsite2',);
}
did not work, are different applications
Browser other questions tagged php codeigniter
You are not signed in. Login or sign up in order to post.
Each has its own address?
– novic
will be type sub.site.com ( site 1 ) sub.site.com/site2 sub.site.com/site3
– Igor Oliveira
You’re gonna shock the route?
– novic
The structure of folders thought this, but I accept other suggestions, I need 3 applications in the same codeignter
– Igor Oliveira