Welcome Guest, Not a member yet? Register   Sign In
layout question
#4

[eluser]ojcarga[/eluser]
Look, don't really understand why, but, what you are trying to do is to load 2 views on the same controller method, that is ok, it is not bad, but why are you doing that?

Are you sure "bras/bras.php" and "bras/bras_view.php" both exist?

It means you should have this structure of files/folders

application
-views
--bras
---bras.php
---bras_view.php

and to access the controller you posted above you should go to:

your_site_base_url/bras ---> for accessing the index() method
your_site_base_url/bras/bras_view ---> for accessing the bras_view() method.

Let me know if we are on the same point, if not, maybe what you need is to review what MVC is. The CI user guide is very useful for having an global understanding of how CI works, so please, read it step by step trying to understand every little piece of code there and come back if you don't understand something Smile


Messages In This Thread
layout question - by El Forum - 07-28-2012, 01:11 PM
layout question - by El Forum - 07-29-2012, 01:38 AM
layout question - by El Forum - 07-29-2012, 04:54 AM
layout question - by El Forum - 07-29-2012, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB