07-16-2012, 06:41 AM
[eluser]bill19[/eluser]
Hi everyone,
This a very basic concept, but I've never put together a website before so I've never thought about if before. I am working on the portfolio page of a website. On it there are 2 'summaries' of 2 separate items:
When I click on the button I want to go to a template page and dynamically fill in a more detailed discussion of each Item. But there has to be a way to uniquely identify item 1 and item 2 so I know which db record to use to populate the template.
using the anchor function I can do:
but how do I pass a unique identifier to the template controller?
Thank you,
Bill
Hi everyone,
This a very basic concept, but I've never put together a website before so I've never thought about if before. I am working on the portfolio page of a website. On it there are 2 'summaries' of 2 separate items:
Code:
<div class="span4">
<h2>Heading1</h2> // item1
<p>text1 </p>
<p><a class="btn" href="#">View details »</a></p>
</div>
<div class="span4">
<h2>Heading2</h2> // item2
<p>text2...</p>
<p><a class="btn" href="#">View details »</a></p>
</div>
When I click on the button I want to go to a template page and dynamically fill in a more detailed discussion of each Item. But there has to be a way to uniquely identify item 1 and item 2 so I know which db record to use to populate the template.
using the anchor function I can do:
Code:
?php echo anchor('template_controller', 'Learn More »', 'class="btn"');
but how do I pass a unique identifier to the template controller?
Thank you,
Bill