mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
690d088329
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
47 lines
No EOL
1.3 KiB
Text
47 lines
No EOL
1.3 KiB
Text
<?php
|
|
/* SVN FILE: $Id$ */
|
|
|
|
/**
|
|
* Base controller class.
|
|
*
|
|
* PHP versions 4 and 5
|
|
*
|
|
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
|
|
* Copyright (c) 2005, CakePHP Authors/Developers
|
|
*
|
|
* Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com>
|
|
* Larry E. Masters aka PhpNut <nut@phpnut.com>
|
|
* Kamil Dzielinski aka Brego <brego.dk@gmail.com>
|
|
*
|
|
* Licensed under The MIT License
|
|
* Redistributions of files must retain the above copyright notice.
|
|
*
|
|
* @filesource
|
|
* @author CakePHP Authors/Developers
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
|
* @package cake
|
|
* @subpackage cake.cake.libs.controller.templates.scaffolds
|
|
* @since CakePHP v 0.10.0.1076
|
|
* @version $Revision$
|
|
* @modifiedby $LastChangedBy$
|
|
* @lastmodified $Date$
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
*/
|
|
?>
|
|
<h1>New <?php echo Inflector::humanize($this->name)?></h1>
|
|
|
|
<?php
|
|
echo $html->formTag('/'. Inflector::underscore($this->name).'/create');
|
|
|
|
echo $form->generateFields( $fieldNames );
|
|
|
|
echo $form->generateSubmitDiv( 'Add' )
|
|
|
|
?>
|
|
<ul class='actions'>
|
|
<?php
|
|
echo "<li>".$html->linkTo('List '.Inflector::humanize($this->name), '/'.$this->viewPath.'/list')."</li>";
|
|
|
|
?>
|
|
</ul> |