/** * Reading data from inaccessible properties * * @param string $field * @return mixed * * @uses Route::get * @uses Route::uri * @uses System::icons */ public function __get($field) { switch ($field) { case 'edit_url': return Route::get('admin/widget')->uri(array('id' => $this->id, 'action' => 'edit')); break; case 'icons': return System::icons(); break; } return parent::__get($field); }
</div> </div> <?php } ?> <div class="form-group <?php echo isset($errors['image']) ? 'has-error' : ''; ?> "> <?php echo Form::label('image', __('Icon'), array('class' => 'control-label col-md-3')); ?> <div class="controls col-md-6 sys-icon"> <?php echo Form::select('image', System::icons(), $post->image, array('class' => 'select-icons col-md-12')); ?> </div> </div> <div class="form-group <?php echo isset($errors['descp']) ? 'has-error' : ''; ?> "> <?php echo Form::label('descp', __('Description'), array('class' => 'control-label col-md-3')); ?> <div class="controls col-md-6"> <?php echo Form::textarea('descp', $post->descp, array('class' => 'form-control', 'rows' => 3)); ?>