mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
[1200]
Author: phpnut Date: 9:51:53 PM, Monday, October 24, 2005 Message: Reverting changes to the Html::formTag(); I had changed it to allow CamelCase class names to be used, but this is a reference to a url not a model class like the other Html::methods(); git-svn-id: https://svn.cakephp.org/repo/trunk/cake@1201 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
c5e4f8cd79
commit
690d088329
3 changed files with 2 additions and 4 deletions
|
@ -35,7 +35,7 @@
|
||||||
<h1>Edit <?php echo Inflector::humanize($modelName);?></h1>
|
<h1>Edit <?php echo Inflector::humanize($modelName);?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $html->formTag('/'. $this->name .'/update');
|
echo $html->formTag('/'. Inflector::underscore($this->name) .'/update');
|
||||||
|
|
||||||
|
|
||||||
echo $form->generateFields( $fieldNames );
|
echo $form->generateFields( $fieldNames );
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<h1>New <?php echo Inflector::humanize($this->name)?></h1>
|
<h1>New <?php echo Inflector::humanize($this->name)?></h1>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $html->formTag('/'. $this->name .'/create');
|
echo $html->formTag('/'. Inflector::underscore($this->name).'/create');
|
||||||
|
|
||||||
echo $form->generateFields( $fieldNames );
|
echo $form->generateFields( $fieldNames );
|
||||||
|
|
||||||
|
|
|
@ -160,12 +160,10 @@ class HtmlHelper extends Helper
|
||||||
}
|
}
|
||||||
elseif ($url{0} == '/')
|
elseif ($url{0} == '/')
|
||||||
{
|
{
|
||||||
$url = Inflector::underscore($url);
|
|
||||||
$output = $this->base . $url;
|
$output = $this->base . $url;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$url = Inflector::underscore($url);
|
|
||||||
$output = $this->base.'/'.strtolower($this->params['controller']).'/'.$url;
|
$output = $this->base.'/'.strtolower($this->params['controller']).'/'.$url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue