formヘルパーにendとsubmitのメソッドを発見。
<?php e($form->end(array('label'=>$html->url('/img/hoge.jpg')))); ?>
<?php e($form->submit($html->url('/img/hoge.jpg'),array('type'=>'submit'))); ?>
それぞれ、上記で表示されることを確認しました。
違いは、endメソッドで</form>が挿入されることでした。
日々の生活で忘れそうなことを書いていく
<?php e($form->end(array('label'=>$html->url('/img/hoge.jpg')))); ?>
<?php e($form->submit($html->url('/img/hoge.jpg'),array('type'=>'submit'))); ?>
Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect.
The script whose uid is 10628 is not allowed to access /usr/local/lib/php
owned by uid 0 in /virtual/*******/public_html/default.mobaweb.net/cake/libs/configure.php
on line 459
if ( $path=='/usr/local/lib/php') continue;
<?php echo $html->textarea($fieldname,array('value'=>$html->tagValue($fieldname,true)));?>
$html->tagValue($fieldname,true)
<?php echo $html->css('common',NULL,NULL,false); ?>
<link rel="stylesheet" type="text/css" href="/css/common.css" />
$tmpfile = "/tmp/googlead.php";
$file = file_get_contents('http://pagead2.googlesyndication.com/pagead/show_ads.php');
$fp = fopen($tmpfile, "w");
fwrite($fp,$file);
fclose($fp);
$GLOBALS['google']['ad_type']='text';
$GLOBALS['google']['channel']='xxxxxxxxxx';
$GLOBALS['google']['client']='xxxxxxxxxx';
$GLOBALS['google']['format']='mobile_single';
$GLOBALS['google']['https']=$_SERVER['HTTPS'];
$GLOBALS['google']['host']=$_SERVER['HTTP_HOST'];
$GLOBALS['google']['ip']=$_SERVER['REMOTE_ADDR'];
$GLOBALS['google']['markup']='xhtml';
$GLOBALS['google']['oe']='utf8';
$GLOBALS['google']['output']='xhtml';
$GLOBALS['google']['ref']=$_SERVER['HTTP_REFERER'];
$GLOBALS['google']['url']=$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$GLOBALS['google']['useragent']=$_SERVER['HTTP_USER_AGENT'];
require($tmpfile);
http://pagead2.googlesyndication.com/pagead/ads?