Beispiel #1
0
				<?php 
    }
    ?>
			</fieldset>
			<div class="clear"></div>
		<?php 
}
?>

		<?php 
// Convert to XML so we can use the Form processor
$xml = Field::toXml($this->fields, 'create');
// Gather data to pass to the form processor
$data = new Hubzero\Config\Registry();
// Create a new form
Hubzero\Form\Form::addFieldPath(Component::path('com_members') . DS . 'models' . DS . 'fields');
$form = new Hubzero\Form\Form('profile', array('control' => 'profile'));
$form->load($xml);
$form->bind($data);
$scripts = array();
$toggle = array();
if ($this->fields->count() > 0) {
    ?>
			<fieldset>
				<legend><?php 
    echo Lang::txt('COM_MEMBERS_REGISTER_LEGEND_PERSONAL_INFO');
    ?>
</legend>

				<?php 
    foreach ($this->fields as $field) {
Beispiel #2
0
										<?php 
        echo $this->editor('about', $this->escape($this->model->about('raw')), 35, 25, 'about', array('class' => 'minimal no-footer'));
        ?>
									</label>
								</fieldset>

								<fieldset>
									<legend><?php 
        echo ucwords(Lang::txt('COM_PROJECTS_EDIT_INFO_EXTENDED'));
        ?>
</legend>
									<?php 
        // Convert to XML so we can use the Form processor
        $xml = Components\Projects\Models\Orm\Description\Field::toXml($this->fields, 'edit');
        // Create a new form
        Hubzero\Form\Form::addFieldPath(Component::path('com_projects') . DS . 'models' . DS . 'orm' . DS . 'description' . DS . 'fields');
        $form = new Hubzero\Form\Form('description', array('control' => 'description'));
        $form->load($xml);
        $data = new stdClass();
        $data->textbox = 'abd';
        $data->projecttags = 'testing, tagging';
        $form->bind($this->data);
        foreach ($form->getFieldsets() as $fieldset) {
            foreach ($form->getFieldset($fieldset->name) as $field) {
                echo $field->label;
                echo $field->input;
                echo $field->description;
            }
        }
        ?>
								</fieldset>