mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
e0096f0528
commit
3682fff468
2 changed files with 3 additions and 3 deletions
|
@ -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' )
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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' )
|
||||||
|
|
Loading…
Reference in a new issue