AnaestheticAgent::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : AnaestheticAgent
return AnaestheticAgent the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

	</div>
	<form id="admin_anaesthetic_agent">
		<input type="hidden" name="YII_CSRF_TOKEN" value="<?php 
echo Yii::app()->request->csrfToken;
?>
" />
		<table class="grid">
			<thead>
			<tr>
				<th>Agent Name</th>
				<th>Action</th>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach (AnaestheticAgent::model()->findAll(array('order' => 'display_order asc')) as $i => $anaestheticAgent) {
    ?>
				<tr>
					<td><?php 
    echo $anaestheticAgent->name;
    ?>
</td>
					<td>
						<a href="/admin/editAnaestheticAgent/<?php 
    echo $anaestheticAgent->id;
    ?>
">Edit</a>
						&nbsp;|&nbsp;
						<a href="/admin/deleteAnaestheticAgent/<?php 
    echo $anaestheticAgent->id;
    ?>
All Usage Examples Of AnaestheticAgent::model