Welcome Guest, Not a member yet? Register   Sign In
Best practices:building html with CI
#1

[eluser]bill19[/eluser]
Hello everyone,

I am trying to build a dynamic portfolio page with a portion of the page made up a small html template fragment/"subview", each of which I would like to populate from a database. Therefore each subview corresponds to 1 database row . What is the best practice way in CI of looping through, populating and appending these subviews to an html page in codeigniter .

An example of a 'subview' is:

Code:
<h2>$db field 1</h2>
           <p>$db field 2. </p>
          <p><a class="btn" href="#">View details ยป</a></p>


Messages In This Thread
Best practices:building html with CI - by El Forum - 07-16-2012, 10:06 AM
Best practices:building html with CI - by El Forum - 07-16-2012, 08:50 PM
Best practices:building html with CI - by El Forum - 07-17-2012, 11:32 AM
Best practices:building html with CI - by El Forum - 07-17-2012, 11:41 AM
Best practices:building html with CI - by El Forum - 07-17-2012, 03:02 PM
Best practices:building html with CI - by El Forum - 07-17-2012, 06:43 PM
Best practices:building html with CI - by El Forum - 07-17-2012, 08:39 PM
Best practices:building html with CI - by El Forum - 07-17-2012, 11:38 PM
Best practices:building html with CI - by El Forum - 07-18-2012, 05:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB