本文整理匯總了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);
}