2007-09-05から1日間の記事一覧

Viewの作成

で、実際の遷移では、 regist(action) ===> regist(view)(tpl) ===> regist_confirm(action) ===> ..... という風に遷移させたいので、regist.tplに下記通り記述。 {form ethna_action="regist_confirm"} {form_submit value="確認"} {/form}という風にし、h…

$action_mapの設定

app/Sample_UrlHandler.phpに追記 今回は、http://localhost/index.php/regist/confirm/もアクセスしたいので、2つ。 var $action_map = array( 'index' => array( 'regist' => array( 'path' => 'regist', 'path_regexp' => false, 'path_ext' => false, 'o…

URL_HANDLER変数の設定

www/index.phpに追記 $_SERVER['URL_HANDLER'] = 'index';

とりあえず、、、

<form action="http://localhost/index.php/regist/confirm" method="POST"> <input type="submit" value="確認"><br /> </form>という風に、URL直書きでPOSTさせました。 http://localhost/部分をどこかで定義してあげれば、よさげ、かも?

Ethna URL_HANDLERが使いこなせず、、、

使い方がイマイチわかりません、、、。http://localhost/index.php?action_regist=trueというURLをhttp://localhost/index.php/regist/とかに変えてみる事にしました。