Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
<?php
class Controller_Index extends Controller
{
//selectボックス用に使うフィールド「item2」を追加します
private $fields = array('name','email','msg','item','item2');
//selectボックス用の選択項目の配列を作成します
private $select = array(
"" => "選択してください",
"hokkaido" => "北海道",
"aomori" => "青森県",
"iwate" => "岩手県",
"akita" => "秋田県",
);
public function action_index()
{
〜略〜
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment