Hi,

I have a usual CRUD system, and my add/edit form needs to be 
populated with data when present.

Currently I'm using in actions.class.php:
$this->product_extras = 
$q->select('p.description')->from('Product_Extras 
p')->where('p.Product.item_code = ?')->execute(array($product_id))->getFirst();

And in the template:
<?php echo textarea_tag('description', $product_extras->description); ?>

Is there any auto-fill option? This way also produces two notices 
when used for a non-existent record - while that isn't a problem it 
would be better if they weren't generated!

Thanks,
Peter

-- 
Maple Design Ltd - Web design and application development
http://www.mapledesign.co.uk
+44 (0)845 123 8008

Reg. in England no. 05920531 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to