/**
 * ObjectHelper for admin generator.
 *
 * @package    symfony
 * @subpackage helper
 * @author     Fabien Potencier <*****@*****.**>
 * @version    SVN: $Id: ObjectAdminHelper.php,v 1.1 2006/08/28 15:32:17 arzen Exp $
 */
function object_admin_input_upload_tag($object, $method, $options = array())
{
    if (sfConfig::get('sf_logging_active')) {
        sfContext::getInstance()->getLogger()->err('This function is deprecated. Please use object_admin_input_file_tag.');
    }
    return object_admin_input_file_tag($object, $method, $options);
}
Beispiel #2
0
 form-error<?php 
}
?>
">
  <?php 
if ($sf_request->hasError('oferta{imagen}')) {
    ?>
    <?php 
    echo form_error('oferta{imagen}', array('class' => 'form-error-msg'));
    ?>
  <?php 
}
?>

  <?php 
$value = object_admin_input_file_tag($oferta, 'getImagen', array('control_name' => 'oferta[imagen]'));
echo $value ? $value : '&nbsp;';
?>
  <div class="sf_admin_edit_help"><?php 
echo __('Las imagenes tienen que ser de 100x100 px');
?>
</div>  </div>
</div>

</fieldset>

<?php 
include_partial('edit_actions', array('oferta' => $oferta));
?>

</form>