Ryo Matsuzaki
matsu****@vrtc*****
2006年 7月 14日 (金) 14:05:31 JST
はじめて質問します。 フレームワークの概念になかなか馴染むことができず、 本サイトに辿り着いた初心者です。 早速、チュートリアルにて学習していますが、クィックスタートの、 画面の起動 −−−−−−−−−−−−−−−−−−−−− ブラウザで「htdocs/index.php」にアクセスします。 のところで、world.htmlにて入力した名前が表示されません。 まず確認ですが、チュートリアルでは以下7つのファイルを生成していますが、 htdoc/index.php webapp/modules/hello/start/Hello_Start.class.php webapp/modules/hello/start/maple.ini webapp/templates/hello/start.html webapp/modules/hello/world/Hello_World.class.php webapp/modules/hello/world/maple.ini webapp/templates/hello/world.html 私が学習中の環境では、 C:\maple-3.1.1>c:\php\php.exe script\generate.php Action hello_start Smarty hello_start index [create] C:\maple-3.1.1/webapp/modules/hello/start/Start.class.php [create] C:\maple-3.1.1/webapp/modules/hello/start/maple.ini [create] C:\maple-3.1.1/webapp/templates/hello/start.html [create] C:\maple-3.1.1/htdocs/index.php C:\maple-3.1.1>c:\php\php.exe script\generate.php Action hello_world Smarty hello_world [create] C:\maple-3.1.1/webapp/modules/hello/world/World.class.php [create] C:\maple-3.1.1/webapp/modules/hello/world/maple.ini [create] C:\maple-3.1.1/webapp/templates/hello/world.html と確かに7つ作成しましたが、 クラスファイルの名前にて、それぞれHello_が抜けております。 Hello_が付かない私の環境がおかしいのでしょうか? 次にworld.htmlの記述ですが、 <?php echo h('name') ?>の文法について教えて頂けないでしょうか? <?php echo $name; ?>と同じことですか? また、拡張子htmlで、phpが動作するのですか? 環境 WindowsXP Pro PHP5.1.4 Apache2.0.58 Smarty2.6.14 初心者の質問で大変恐縮ですが、よろしくお願いします。