Welcome Guest, Not a member yet? Register   Sign In
Newbie: Advice Please a on Best Practices for Creating Views

Hi - I'm building a site at the same time as learning CI. I have a a view called Page which presents a variety of differing page contents through a variable $content.

In addition I need to present on the same page a small login form which I have built in a separate view: login.php

Question: is it acceptable or bad practice to use the this->load->view('login')inside the page view ?

OR MUST I create a new function within the welcome controller and call it through the function?

My way works but is it could be acceptable practice ???

Many Thanks !

Theme © iAndrew 2016 - Forum software by © MyBB