Welcome Guest, Not a member yet? Register   Sign In
Sharing data between view partials
#8

[eluser]John_Betong[/eluser]
 
 
Hi @Xwreo and @Isuka,
 
I have amended my original post and removed $data where it was unnecessary.
 
 
@Isuka in complex controllers it does get tricky, just ensure all your variables are declared before loading the partial views otherwise some weird errorrs appear which are not easy to track down.
 
Keep your code clean and simple so it is easy to read later and to easily add
Code:
echo '$problem_variable ---&gt;' .$problem_variable .<---'; die;
&nbsp;
&nbsp;
By the way, I am from the old school (with umpteen T-shirts) that shy away from variables that are global and prefer using locals instead. Far easier to trace problems.
&nbsp;
&nbsp;


Messages In This Thread
Sharing data between view partials - by El Forum - 10-15-2008, 09:53 AM
Sharing data between view partials - by El Forum - 10-15-2008, 10:31 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:05 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:11 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:19 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:23 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:33 AM
Sharing data between view partials - by El Forum - 10-16-2008, 02:54 AM
Sharing data between view partials - by El Forum - 10-16-2008, 03:12 AM
Sharing data between view partials - by El Forum - 10-16-2008, 03:43 AM
Sharing data between view partials - by El Forum - 10-16-2008, 03:47 AM
Sharing data between view partials - by El Forum - 10-16-2008, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB