本文整理汇总了PHP中html_helper::css方法的典型用法代码示例。如果您正苦于以下问题:PHP html_helper::css方法的具体用法?PHP html_helper::css怎么用?PHP html_helper::css使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类html_helper
的用法示例。
在下文中一共展示了html_helper::css方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build_form
/**
* internal, build each field then form
*
* @return string compiled form
*/
protected function build_form()
{
html_helper::css('widgets/dataform/assets/dataform.css');
$data = get_object_vars($this);
$data['container'] = $this->button_containers();
$form_type = 'open';
// See if we need a multipart form
foreach ($this->fields as $field_obj) {
if ($field_obj instanceof upload_field) {
$form_type = 'open_multipart';
break;
}
}
// Set the form open and close
if ($this->status_is('show')) {
$data['form_begin'] = '<div class="form">';
$data['form_end'] = '</div>';
} else {
$data['form_begin'] = form_helper::$form_type($this->process_url, $this->attributes);
$data['form_end'] = form_helper::close();
}
$data['fields'] = $this->fields;
return rpd::view('dataform', $data);
}