getTaxonomy() public static method

public static getTaxonomy ( )
Example #1
0
        <div class="controls">
                <?php 
$this->widget('ext.elFinder.ServerFileInput', array('model' => $model, 'attribute' => 'image', 'connectorRoute' => 'sysadmin/elfinder/connector'));
?>
                </div>
            </div>

    
    <?php 
echo $form->textFieldRow($model, 'order', array('class' => 'span5'));
?>

    <?php 
echo $form->dropDownListRow($model, 'parent', Category::getCategories(), array('class' => 'span3'));
?>
    
    <?php 
echo $form->dropDownListRow($model, 'taxonomy_id', Taxonomy::getTaxonomy(), array('class' => 'span3'));
?>

    <?php 
echo $form->dropDownListRow($model, 'state', array(1 => 'Publish', 0 => 'UnPublish'));
?>

</fieldset>
<?php 
$this->endWidget();
$this->widget('ext.TiiSlug.TiiSlug', array('model' => $model, 'source' => 'title', 'target' => 'slug'));
?>

Example #2
0
?>

        <?php 
$get_taxonomy_id = isset($_GET['taxonomy']) ? (int) $_GET['taxonomy'] : null;
?>
        
        <?php 
if ($get_taxonomy_id === null) {
    ?>
            <div class="row">   
                <?php 
    echo $form->labelEx($model, 'taxonomy_id');
    ?>
	        
                <?php 
    echo $form->dropDownList($model, 'taxonomy_id', Taxonomy::getTaxonomy(), array('ajax' => array('type' => 'POST', 'url' => Yii::app()->controller->createUrl('dynamicParentTerms'), 'update' => '#parent_id')));
    ?>
                <?php 
    echo $form->error($model, 'taxonomy_id');
    ?>
            </div>
        <?php 
} else {
    ?>
            <?php 
    echo $form->hiddenField($model, 'taxonomy_id', array('value' => $get_taxonomy_id));
    ?>
        <?php 
}
?>