Redirect to another Codeigniter application

Asked

Viewed 389 times

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.

  • Each has its own address?

  • will be type sub.site.com ( site 1 ) sub.site.com/site2 sub.site.com/site3

  • You’re gonna shock the route?

  • The structure of folders thought this, but I accept other suggestions, I need 3 applications in the same codeignter

2 answers

1

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

You are not signed in. Login or sign up in order to post.