Hi,
I'm not sure I even know how to ask this:
I have a form created by admin generator with the following
<li id="activitytype_id">
<?php echo label_for('activity[activitytype_id]',
__($labels['activity{activitytype_id}']), '') ?>
<div class="content<?php if ($sf_request-
>hasError('activity{activitytype_id}')): ?> form-error<?php endif; ?
>">
<?php if ($sf_request->hasError('activity{activitytype_id}')): ?>
<?php echo form_error('activity{activitytype_id}', array('class'
=> 'form-error-msg')) ?>
<?php endif; ?>
<?php $value = object_select_tag($activity, 'getActivitytypeId',
array (
'related_class' => 'Activitytype',
'control_name' => 'activity[activitytype_id]',
'include_blank' => true,
)); echo $value ? $value : ' ' ?>
</div>
</li>
works great!
I need the list of activity types to display in a template of the
activity module, but not as select options.
I tried adding to the activity class:
public function getActivitytypes($con = null)
{
// include the related Peer class
include_once 'lib/model/om/BaseActivitytypePeer.php';
$this->aActivitytypes = ActivitytypePeer::doSelectRS();
return $this->aActivitytypes;
}
no luck.
any conceptual guidance?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---