Welcome Guest, Not a member yet? Register   Sign In
Unable to link images
#13

[eluser]Iván Argulo[/eluser]
Well, there are different ways to do that. You could have just one controller and there call different views. For example:

Code:
if ($something)
    $this->load->view('view_one');
else
    $this->load->view('view_two');

On the other hand, a more common situation is to have several controllers and several views. But the most important thing you have to know is that the main part of your application is the controller. So, you can't load a "page" (quoted, because is not really a page) if you don't have a controller.

For example, a controller called application/controllers/first_page.php will produce a page with URL localhost/your_app/index.php/first_page (without the extension .php).

Did you understand?


Messages In This Thread
Unable to link images - by El Forum - 07-14-2009, 04:28 AM
Unable to link images - by El Forum - 07-14-2009, 04:37 AM
Unable to link images - by El Forum - 07-14-2009, 05:19 AM
Unable to link images - by El Forum - 07-14-2009, 05:28 AM
Unable to link images - by El Forum - 07-14-2009, 05:39 AM
Unable to link images - by El Forum - 07-14-2009, 06:34 AM
Unable to link images - by El Forum - 07-14-2009, 07:20 AM
Unable to link images - by El Forum - 07-14-2009, 07:38 AM
Unable to link images - by El Forum - 07-14-2009, 07:41 AM
Unable to link images - by El Forum - 07-14-2009, 07:49 AM
Unable to link images - by El Forum - 07-14-2009, 08:27 AM
Unable to link images - by El Forum - 07-14-2009, 10:09 AM
Unable to link images - by El Forum - 07-14-2009, 11:23 AM
Unable to link images - by El Forum - 07-14-2009, 10:33 PM
Unable to link images - by El Forum - 07-14-2009, 11:53 PM
Unable to link images - by El Forum - 07-15-2009, 12:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB