Day-Report

day day up!

code-test

1<p>おなまえをどうぞ。</p>
2<?php echo form_tag('helloworld/youkoso')?>
3<?php echo input_tag('anatano_onamae', 'your name')?>
4<?php echo submit_tag('save')?>
5</form>

 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
 2"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 4<head>        
 5<?php echo include_http_metas() ?>  <!--(view.ymlのhttp_metas:の部分)-->
 6<?php echo include_metas() ?>        <!--(view.ymlのmetas:の部分)-->
 7<?php echo include_title() ?>          <!--(タイトル(アクションやview.ymlで設定可))-->
 8<link rel="shortcut icon" href="/favicon.ico" />
 9</head>
10<body>
11<?php echo $sf_data->getRaw('sf_content'?>  <!--(ここに個々のテンプレートが反映される)-->
12</body>
13</html>
14

 1<?php
 2
 3/**
 4 * helloworld actions.
 5 *
 6 * @package    myfirstsymfony
 7 * @subpackage helloworld
 8 * @author     Your name here
 9 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
10 */
11class helloworldActions extends sfActions
12{
13  /**
14   * Executes index action
15   *
16   */
17  public function executeIndex()
18  {
19//    $this->forward('default', 'module');
20  }
21  
22  public function executeYoukoso(){
23      print (htmlspecialchars($this->getRequestParameter('anatano_onamae'))."さん、今晩は!");
24      return sfView::NONE;
25  }
26}
27


<?php

/**
 * helloworld actions.
 *
 * @package    myfirstsymfony
 * @subpackage helloworld
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 
*/
class helloworldActions extends sfActions
{
  
/**
   * Executes index action
   *
   
*/
  
public function executeIndex()
  {
//    $this->forward('default', 'module');
  }
  
  
public function executeYoukoso(){
      
print (htmlspecialchars($this->getRequestParameter('anatano_onamae'))."さん、今晩は!");
      
return sfView::NONE;
  }
}

posted on 2008-02-14 09:52 Stven 阅读(66) 评论(0)  编辑 收藏 引用 网摘 所属分类: PHP文章原创


只有注册用户登录后才能发表评论。
网站导航: