Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 친트럼프
- PHP Storm
- Github 등록
- Location Permission
- 3차 소환조사
- AWS
- 여러 개
- git
- 일치단결
- 챗지피티
- 흉기살해
- Chat GPT
- MySQL
- php
- XML Opacity
- nextFocusDown
- TextView 일부분
- 5회 인증
- junit
- git cannot identify version of git executable
- codeigniter
- Linux 패키지 관리자
- mac 패키지 관리자
- Android Studio
- Github Token
- sourceSet
- Execution failed for task ':test'.
- InvalidTestClassError
- 챗GPT
- 다음으로 이동
Archives
- Today
- Total
128june
[PHP Storm] Form Helper ( form_open() 함수 ) 본문
반응형
form helper란?
form helper는 form 조작에 필요한 함수들을 제공합니다.
헬퍼 로딩
$this->load->helper('form');
form 함수 사용
form_open( $action (string), $attributes (array), $hidden (array)
- $action (string) – Form action/target URI string
- $attributes (array) – HTML attributes
- $hidden (array) – An array of hidden fields’ definitions
ex)
<?php echo form_open(null, array('method'=>'get')); ?>
생성 결과
<form method="get" accept-charset="utf-8" action="기반url/">
$attributes (array) => 속성 추가하기
속성은 연관 배열로 만들어 두번째 파라미터로 전달하여 설정할 수 있습니다.
// 1번 방법
$attributes = array('class' => 'email', 'id' => 'myform');
echo form_open('email/send', $attributes);
// 2번 방법
echo form_open('email/send', 'class="email" id="myform"');
결과
<!-- http://example.com/index.php/가 기본 설정 url -->
<form method="post" accept-charset="utf-8" action="http://example.com/index.php/email/send" class="email" id="myform">
출처
http://www.ciboard.co.kr/user_guide/kr/helpers/form_helper.html
Form Helper ‐ 코드이그나이터 3.0 한글매뉴얼
HTML-formatted form validation error message(s)
www.ciboard.co.kr
반응형
'개발 > PHP Storm & Codeigniter' 카테고리의 다른 글
| [Codeigniter] 코드이그나이터 application 하위 폴더 설명 (0) | 2020.06.15 |
|---|---|
| [PHP Storm] canHaveHTML / canHaveChildren property (0) | 2020.06.10 |
| [PHP Storm] 단축키 정리 (0) | 2020.06.10 |
| [Codeigniter] 기본적인 MVC 모델 구현 (0) | 2020.06.08 |
| [Codeigniter] MVC 모델 - Controller에 대해서 (0) | 2020.06.05 |
Comments