Welcome Guest, Not a member yet? Register   Sign In
Help me to use lib parser of CI
#1

[eluser]mhungou04[/eluser]
Hi this is some code in my controller. I user class parser as

Code:
$query = $this->db->get('product');

$data['product'] = $query->result_array();

$this->parser->parse($data,'view.html')

So in my view.html i write

Code:
{product}
{productid}, {product_name}...etc
{/product}


But now when deverlop my application there was a problem. When i code function update. I have list box containing list of category. I can load data from db but i cant do this

Code:
<option value = "abc" selected>abc</option>

This is code in viewer.

Code:
{product}
<option value = "{categoryid}">{category_name}</option>
{/product}


Messages In This Thread
Help me to use lib parser of CI - by El Forum - 10-29-2008, 10:33 PM
Help me to use lib parser of CI - by El Forum - 11-03-2008, 10:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB