Sharing data between view partials - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Sharing data between view partials (/showthread.php?tid=12334) Pages:
1
2
|
Sharing data between view partials - El Forum - 10-16-2008 [eluser]xwero[/eluser] What is too complex to understand in the second example? Sharing data between view partials - El Forum - 10-16-2008 [eluser]John_Betong[/eluser] [quote author="xwero" date="1224168440"]What is too complex to understand in the second example?[/quote] The reason it is too difficult is there are too many variables on the one line. To achieve the same result I would add an extra line and make the code (for me) easier to read at a glance. Code: //========================================================================== Here are the results Code: Function: _myView : C:\awww\ci_jokes\controllers\joke.php line(35) |