Welcome Guest, Not a member yet? Register   Sign In
if page is equal to home
#6

[eluser]ppwalks[/eluser]
Ahh with you now its really easy actually,

when I load the views in the index.php I switch them like I have shown you, I have created a site which I think is what you are after, on my home page I have no sidebar but on displaying products I do and I have done that using the method above:

As I load $main in the index.php it has the full width of the page and then in other pages (views) I simply use $this->load-view('view-name'); and load it as a sidebar but declare it in my controller by switching variables.

the logic above will work do you want me to provide an example?


Messages In This Thread
if page is equal to home - by El Forum - 04-25-2012, 04:13 AM
if page is equal to home - by El Forum - 04-25-2012, 05:51 AM
if page is equal to home - by El Forum - 04-25-2012, 05:57 AM
if page is equal to home - by El Forum - 04-25-2012, 06:11 AM
if page is equal to home - by El Forum - 04-25-2012, 06:13 AM
if page is equal to home - by El Forum - 04-25-2012, 06:23 AM
if page is equal to home - by El Forum - 04-25-2012, 06:26 AM
if page is equal to home - by El Forum - 04-25-2012, 06:29 AM
if page is equal to home - by El Forum - 04-25-2012, 06:30 AM
if page is equal to home - by El Forum - 04-25-2012, 06:34 AM
if page is equal to home - by El Forum - 04-25-2012, 06:41 AM
if page is equal to home - by El Forum - 04-25-2012, 06:46 AM
if page is equal to home - by El Forum - 04-25-2012, 11:22 AM
if page is equal to home - by El Forum - 04-25-2012, 11:39 AM
if page is equal to home - by El Forum - 04-25-2012, 11:45 AM
if page is equal to home - by El Forum - 04-25-2012, 11:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB