• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I create a nested view within a nested view?

I've been stuck on this for a few days now and can't seem to put the final piece of the puzzle in place.  I've created a page of nested views that I populate with vars obtained from calls to models from the controller - using the TRUE Parameter to save the views as vars. I successfully reference these vars when loading a final page view. Works great and has simplified my first pass at this which was one huge view.

One of the six partial views is itself a table of eight rows.  I have at this point  built the logic for this list of smaller tables into a single view assigned to a single var. I can load it successfully as the fifth of the six partial page views.

What Id really like to do now is separate out the eight rows of each small table into separate view files that I can easily work on. I've studied the posts here that apply - especially "Business Logic in Nested Views" at https://forum.codeigniter.com/thread-348...sted+views - which it seems might hold the secret. I've also read the CI User Guide on views many times now. And many Stack Overflow possible answers. But from all that I still can't figure out a strategy for this last step.

This is my first CI project. I think I'm way out in space on this and that there's a a simple answer I'm totally missing. Any suggestions pointing me in a promising direction would be appreciated.

Messages In This Thread
How do I create a nested view within a nested view? - by codeguy - 09-25-2017, 05:24 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.