Replacing deprecated $html->formTag with $form->create

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3964 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2006-11-25 17:33:42 +00:00
parent e0096f0528
commit 3682fff468
2 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ else
{ {
$path = '/'.$this->plugin.'/'; $path = '/'.$this->plugin.'/';
} }
echo $html->formTag($path. Inflector::underscore($this->name).'/create'); echo $form->create($path. Inflector::underscore($this->name).'/create');
echo $form->generateFields( $fieldNames ); echo $form->generateFields( $fieldNames );
echo $form->generateSubmitDiv( 'Add' ) echo $form->generateSubmitDiv( 'Add' )
?> ?>

View file

@ -43,11 +43,11 @@ else
<?php <?php
if($type == 'Edit') if($type == 'Edit')
{ {
echo $html->formTag($path . Inflector::underscore($this->name) .'/update'); echo $form->create($path . Inflector::underscore($this->name) .'/update');
} }
else else
{ {
echo $html->formTag($path. Inflector::underscore($this->name).'/create'); echo $form->create($path. Inflector::underscore($this->name).'/create');
} }
echo $form->generateFields( $fieldNames ); echo $form->generateFields( $fieldNames );
echo $form->generateSubmitDiv( 'Save' ) echo $form->generateSubmitDiv( 'Save' )