Welcome Guest, Not a member yet? Register   Sign In
Link veiws within a function
#1

(This post was last modified: 04-19-2019, 10:53 PM by Mekaboo.)

Hello all!

I have a login page that has a register button. Issue is that when I cant link the register button to my register_page.php. I keep getting 404 PAGE NOT FOUND when I have the page in my view folder. This is my code:

    public function index()
    {
        $this->load->view('welcome_message');
    
    }
    public function hello()
    {
        $this->load->view('header');
      $this->load->view("login");
          $this->load->view('footer');
    }    
    public function register()
    {
        $this->load->view('header');
      $this->load->view("register_page");
          $this->load->view('footer');
    }    

    
   
Do I have to have multiple functions or just have one? Do I use an anchor? Ive tried a different controller(Register.php) but that didnt work either. Thanks for the help.



Heart Heart ,
Mekaboo
Reply


Messages In This Thread
Link veiws within a function - by Mekaboo - 04-19-2019, 10:50 PM
RE: Link veiws within a function - by Wouter60 - 04-20-2019, 03:00 AM
RE: Link veiws within a function - by Mekaboo - 04-20-2019, 08:48 PM
RE: Link veiws within a function - by Mekaboo - 04-20-2019, 08:49 PM
RE: Link veiws within a function - by ciadmin - 04-20-2019, 09:22 PM
RE: Link veiws within a function - by Wouter60 - 04-20-2019, 11:37 PM
RE: Link veiws within a function - by InsiteFX - 04-21-2019, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB