Skip to content
Snippets Groups Projects
Commit 9d7e032f authored by Tilman Vatteroth's avatar Tilman Vatteroth :robot:
Browse files

vendor

parent e9eec356
No related branches found
No related tags found
No related merge requests found
Showing
with 30382 additions and 0 deletions
This diff is collapsed.
This diff is collapsed.
<?php
/**
* Controller bake template file
*
* Allows templating of Controllers generated from bake.
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
$defaultModel = $name;
?>
<CakePHPBakeOpenTagphp
namespace <?= $namespace ?>\Controller<?= $prefix ?>;
use <?= $namespace ?>\Controller\AppController;
/**
* <?= $name ?> Controller
*
* @property \<?= $namespace ?>\Model\Table\<?= $defaultModel ?>Table $<?= $defaultModel ?>
<?php
foreach ($components as $component):
$classInfo = $this->Bake->classInfo($component, 'Controller/Component', 'Component');
?>
* @property <?= $classInfo['fqn'] ?> $<?= $classInfo['name'] ?>
<?php endforeach; ?>
*/
class <?= $name ?>Controller extends AppController
{
<?php
echo $this->Bake->arrayProperty('helpers', $helpers, ['indent' => false]);
echo $this->Bake->arrayProperty('components', $components, ['indent' => false]);
foreach($actions as $action) {
echo $this->element('Controller/' . $action);
}
?>
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$compact = ["'" . $singularName . "'"];
?>
/**
* Add method
*
* @return void Redirects on successful add, renders view otherwise.
*/
public function add()
{
$<?= $singularName ?> = $this-><?= $currentModelName ?>->newEntity();
if ($this->request->is('post')) {
$<?= $singularName ?> = $this-><?= $currentModelName ?>->patchEntity($<?= $singularName ?>, $this->request->data);
if ($this-><?= $currentModelName; ?>->save($<?= $singularName ?>)) {
$this->Flash->success('The <?= strtolower($singularHumanName) ?> has been saved.');
return $this->redirect(['action' => 'index']);
} else {
$this->Flash->error('The <?= strtolower($singularHumanName) ?> could not be saved. Please, try again.');
}
}
<?php
$associations = array_merge(
$this->Bake->aliasExtractor($modelObj, 'BelongsTo'),
$this->Bake->aliasExtractor($modelObj, 'BelongsToMany')
);
foreach ($associations as $assoc):
$association = $modelObj->association($assoc);
$otherName = $association->target()->alias();
$otherPlural = $this->_variableName($otherName);
?>
$<?= $otherPlural ?> = $this-><?= $currentModelName ?>-><?= $otherName ?>->find('list', ['limit' => 200]);
<?php
$compact[] = "'$otherPlural'";
endforeach;
?>
$this->set(compact(<?= join(', ', $compact) ?>));
$this->set('_serialize', ['<?=$singularName?>']);
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
/**
* Delete method
*
* @param string|null $id <?= $singularHumanName ?> id.
* @return void Redirects to index.
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function delete($id = null)
{
$this->request->allowMethod(['post', 'delete']);
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id);
if ($this-><?= $currentModelName; ?>->delete($<?= $singularName ?>)) {
$this->Flash->success('The <?= strtolower($singularHumanName) ?> has been deleted.');
} else {
$this->Flash->error('The <?= strtolower($singularHumanName) ?> could not be deleted. Please, try again.');
}
return $this->redirect(['action' => 'index']);
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$belongsTo = $this->Bake->aliasExtractor($modelObj, 'BelongsTo');
$belongsToMany = $this->Bake->aliasExtractor($modelObj, 'BelongsToMany');
$compact = ["'" . $singularName . "'"];
?>
/**
* Edit method
*
* @param string|null $id <?= $singularHumanName ?> id.
* @return void Redirects on successful edit, renders view otherwise.
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function edit($id = null)
{
$<?= $singularName ?> = $this-><?= $currentModelName ?>->get($id, [
'contain' => [<?= $this->Bake->stringifyList($belongsToMany, ['indent' => false]) ?>]
]);
if ($this->request->is(['patch', 'post', 'put'])) {
$<?= $singularName ?> = $this-><?= $currentModelName ?>->patchEntity($<?= $singularName ?>, $this->request->data);
if ($this-><?= $currentModelName; ?>->save($<?= $singularName ?>)) {
$this->Flash->success('The <?= strtolower($singularHumanName) ?> has been saved.');
return $this->redirect(['action' => 'index']);
} else {
$this->Flash->error('The <?= strtolower($singularHumanName) ?> could not be saved. Please, try again.');
}
}
<?php
foreach (array_merge($belongsTo, $belongsToMany) as $assoc):
$association = $modelObj->association($assoc);
$otherName = $association->target()->alias();
$otherPlural = $this->_variableName($otherName);
?>
$<?= $otherPlural ?> = $this-><?= $currentModelName ?>-><?= $otherName ?>->find('list', ['limit' => 200]);
<?php
$compact[] = "'$otherPlural'";
endforeach;
?>
$this->set(compact(<?= join(', ', $compact) ?>));
$this->set('_serialize', ['<?=$singularName?>']);
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
/**
* Index method
*
* @return void
*/
public function index()
{
<?php $belongsTo = $this->Bake->aliasExtractor($modelObj, 'BelongsTo'); ?>
<?php if ($belongsTo): ?>
$this->paginate = [
'contain' => [<?= $this->Bake->stringifyList($belongsTo, ['indent' => false]) ?>]
];
<?php endif; ?>
$this->set('<?= $pluralName ?>', $this->paginate($this-><?= $currentModelName ?>));
$this->set('_serialize', ['<?= $pluralName ?>']);
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
$allAssociations = array_merge(
$this->Bake->aliasExtractor($modelObj, 'BelongsTo'),
$this->Bake->aliasExtractor($modelObj, 'BelongsToMany'),
$this->Bake->aliasExtractor($modelObj, 'HasOne'),
$this->Bake->aliasExtractor($modelObj, 'HasMany')
);
?>
/**
* View method
*
* @param string|null $id <?= $singularHumanName ?> id.
* @return void
* @throws \Cake\Network\Exception\NotFoundException When record not found.
*/
public function view($id = null)
{
$<?= $singularName?> = $this-><?= $currentModelName ?>->get($id, [
'contain' => [<?= $this->Bake->stringifyList($allAssociations, ['indent' => false]) ?>]
]);
$this->set('<?= $singularName ?>', $<?= $singularName ?>);
$this->set('_serialize', ['<?= $singularName ?>']);
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
$fields = collection($fields)
->filter(function($field) use ($schema) {
return $schema->columnType($field) !== 'binary';
});
?>
<div class="actions columns large-2 medium-3">
<h3><CakePHPBakeOpenTag= __('Actions') CakePHPBakeCloseTag></h3>
<ul class="side-nav">
<?php if (strpos($action, 'add') === false): ?>
<li><CakePHPBakeOpenTag= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $<?= $singularVar ?>-><?= $primaryKey[0] ?>],
['confirm' => __('Are you sure you want to delete # {0}?', $<?= $singularVar ?>-><?= $primaryKey[0] ?>)]
)
CakePHPBakeCloseTag></li>
<?php endif; ?>
<li><CakePHPBakeOpenTag= $this->Html->link(__('List <?= $pluralHumanName ?>'), ['action' => 'index']) CakePHPBakeCloseTag></li>
<?php
$done = [];
foreach ($associations as $type => $data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
?>
<li><CakePHPBakeOpenTag= $this->Html->link(__('List <?= $this->_pluralHumanName($alias) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'index']) ?> </li>
<li><CakePHPBakeOpenTag= $this->Html->link(__('New <?= $this->_singularHumanName($alias) ?>'), ['controller' => '<?= $details['controller'] ?>', 'action' => 'add']) ?> </li>
<?php
$done[] = $details['controller'];
}
}
}
?>
</ul>
</div>
<div class="<?= $pluralVar ?> form large-10 medium-9 columns">
<CakePHPBakeOpenTag= $this->Form->create($<?= $singularVar ?>); CakePHPBakeCloseTag>
<fieldset>
<legend><CakePHPBakeOpenTag= __('<?= Inflector::humanize($action) ?> <?= $singularHumanName ?>') CakePHPBakeCloseTag></legend>
<CakePHPBakeOpenTagphp
<?php
foreach ($fields as $field) {
if (in_array($field, $primaryKey)) {
continue;
}
if (isset($keyFields[$field])) {
$fieldData = $schema->column($field);
if (!empty($fieldData['null'])) {
?>
echo $this->Form->input('<?= $field ?>', ['options' => $<?= $keyFields[$field] ?>, 'empty' => true]);
<?php
} else {
?>
echo $this->Form->input('<?= $field ?>', ['options' => $<?= $keyFields[$field] ?>]);
<?php
}
continue;
}
if (!in_array($field, ['created', 'modified', 'updated'])) {
$fieldData = $schema->column($field);
if (($fieldData['type'] === 'date') && (!empty($fieldData['null']))) {
?>
echo $this->Form->input('<?= $field ?>', array('empty' => true, 'default' => ''));
<?php
} else {
?>
echo $this->Form->input('<?= $field ?>');
<?php
}
}
}
if (!empty($associations['BelongsToMany'])) {
foreach ($associations['BelongsToMany'] as $assocName => $assocData) {
?>
echo $this->Form->input('<?= $assocData['property'] ?>._ids', ['options' => $<?= $assocData['variable'] ?>]);
<?php
}
}
?>
CakePHPBakeCloseTag>
</fieldset>
<CakePHPBakeOpenTag= $this->Form->button(__('Submit')) CakePHPBakeCloseTag>
<CakePHPBakeOpenTag= $this->Form->end() CakePHPBakeCloseTag>
</div>
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
<?= $this->fetch('content');
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
<CakePHPBakeOpenTagphp
namespace <?= $namespace ?>\Model\Entity;
use Cake\ORM\Entity;
/**
* <?= $name ?> Entity.
*/
class <?= $name ?> extends Entity
{
<?php if (!empty($fields)): ?>
/**
* Fields that can be mass assigned using newEntity() or patchEntity().
*
* @var array
*/
protected $_accessible = [
<?php foreach ($fields as $field): ?>
'<?= $field ?>' => true,
<?php endforeach; ?>
];
<?php endif ?>
<?php if (!empty($hidden)): ?>
/**
* Fields that are excluded from JSON an array versions of the entity.
*
* @var array
*/
protected $_hidden = [<?= $this->Bake->stringifyList($hidden) ?>];
<?php endif ?>
<?php if (empty($fields) && empty($hidden)): ?>
<?php endif ?>
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
?>
<CakePHPBakeOpenTagphp
namespace <?= $namespace ?>\Model\Table;
<?php
$uses = [
"use $namespace\\Model\\Entity\\$entity;",
'use Cake\ORM\Query;',
'use Cake\ORM\RulesChecker;',
'use Cake\ORM\Table;',
'use Cake\Validation\Validator;'
];
sort($uses);
echo implode("\n", $uses);
?>
/**
* <?= $name ?> Model
*/
class <?= $name ?>Table extends Table
{
/**
* Initialize method
*
* @param array $config The configuration for the Table.
* @return void
*/
public function initialize(array $config)
{
<?php if (!empty($table)): ?>
$this->table('<?= $table ?>');
<?php endif ?>
<?php if (!empty($displayField)): ?>
$this->displayField('<?= $displayField ?>');
<?php endif ?>
<?php if (!empty($primaryKey)): ?>
<?php if (count($primaryKey) > 1): ?>
$this->primaryKey([<?= $this->Bake->stringifyList((array)$primaryKey, ['indent' => false]) ?>]);
<?php else: ?>
$this->primaryKey('<?= current((array)$primaryKey) ?>');
<?php endif ?>
<?php endif ?>
<?php foreach ($behaviors as $behavior => $behaviorData): ?>
$this->addBehavior('<?= $behavior ?>'<?= $behaviorData ? ", [" . implode(', ', $behaviorData) . ']' : '' ?>);
<?php endforeach ?>
<?php foreach ($associations as $type => $assocs): ?>
<?php foreach ($assocs as $assoc):
$alias = $assoc['alias'];
unset($assoc['alias']);
?>
$this-><?= $type ?>('<?= $alias ?>', [<?= $this->Bake->stringifyList($assoc, ['indent' => 3]) ?>]);
<?php endforeach ?>
<?php endforeach ?>
}
<?php if (!empty($validation)): ?>
/**
* Default validation rules.
*
* @param \Cake\Validation\Validator $validator Validator instance.
* @return \Cake\Validation\Validator
*/
public function validationDefault(Validator $validator)
{
$validator
<?php $validationMethods = []; ?>
<?php
$firstField = true;
foreach ($validation as $field => $rules):
if ($firstField !== true):
$validationMethods[] = "\n \$validator";
endif;
foreach ($rules as $ruleName => $rule):
if ($rule['rule'] && !isset($rule['provider'])):
$validationMethods[] = sprintf(
"->add('%s', '%s', ['rule' => '%s'])",
$field,
$ruleName,
$rule['rule']
);
elseif ($rule['rule'] && isset($rule['provider'])):
$validationMethods[] = sprintf(
"->add('%s', '%s', ['rule' => '%s', 'provider' => '%s'])",
$field,
$ruleName,
$rule['rule'],
$rule['provider']
);
endif;
if (isset($rule['allowEmpty'])):
if (is_string($rule['allowEmpty'])):
$validationMethods[] = sprintf(
"->allowEmpty('%s', '%s')",
$field,
$rule['allowEmpty']
);
elseif ($rule['allowEmpty']):
$validationMethods[] = sprintf(
"->allowEmpty('%s')",
$field
);
else:
$validationMethods[] = sprintf(
"->requirePresence('%s', 'create')",
$field
);
$validationMethods[] = sprintf(
"->notEmpty('%s')",
$field
);
endif;
endif;
endforeach;
$firstField = false;
$validationMethods[] = array_pop($validationMethods) . ";";
endforeach;
?>
<?= " " . implode("\n ", $validationMethods) ?>
return $validator;
}
<?php endif ?>
<?php if (!empty($rulesChecker)): ?>
/**
* Returns a rules checker object that will be used for validating
* application integrity.
*
* @param \Cake\ORM\RulesChecker $rules The rules object to be modified.
* @return \Cake\ORM\RulesChecker
*/
public function buildRules(RulesChecker $rules)
{
<?php foreach ($rulesChecker as $field => $rule): ?>
$rules->add($rules-><?= $rule['name'] ?>(['<?= $field ?>']<?= !empty($rule['extra']) ? ", '$rule[extra]'" : '' ?>));
<?php endforeach; ?>
return $rules;
}
<?php endif; ?>
<?php if ($connection != 'default'): ?>
/**
* Returns the database connection name to use by default.
*
* @return string
*/
public static function defaultConnectionName()
{
return '<?= $connection ?>';
}
<?php endif; ?>
}
<?php
/**
* Fixture Template file
*
* Fixture Template used when baking fixtures with bake
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
?>
<CakePHPBakeOpenTagphp
namespace <?= $namespace ?>\Test\Fixture;
use Cake\TestSuite\Fixture\TestFixture;
/**
* <?= $name ?>Fixture
*
*/
class <?= $name ?>Fixture extends TestFixture
{
<?php if ($table): ?>
/**
* Table name
*
* @var string
*/
public $table = '<?= $table ?>';
<?php endif; ?>
<?php if ($import): ?>
/**
* Import
*
* @var array
*/
public $import = <?= $import ?>;
<?php endif; ?>
<?php if ($schema): ?>
/**
* Fields
*
* @var array
*/
// @codingStandardsIgnoreStart
public $fields = <?= $schema ?>;
// @codingStandardsIgnoreEnd
<?php endif; ?>
<?php if ($records): ?>
/**
* Records
*
* @var array
*/
public $records = <?= $records ?>;
<?php endif; ?>
}
<?php
/**
* Test Case bake template
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
use Cake\Utility\Inflector;
$isController = strtolower($type) === 'controller';
if ($isController) {
$uses[] = 'Cake\TestSuite\IntegrationTestCase';
} else {
$uses[] = 'Cake\TestSuite\TestCase';
}
sort($uses);
?>
<CakePHPBakeOpenTagphp
namespace <?= $baseNamespace; ?>\Test\TestCase\<?= $subNamespace ?>;
<?php foreach ($uses as $dependency): ?>
use <?= $dependency; ?>;
<?php endforeach; ?>
/**
* <?= $fullClassName ?> Test Case
*/
<?php if ($isController): ?>
class <?= $className ?>Test extends IntegrationTestCase
{
<?php else: ?>
class <?= $className ?>Test extends TestCase
{
<?php endif; ?>
<?php if (!empty($fixtures)): ?>
/**
* Fixtures
*
* @var array
*/
public $fixtures = [<?= $this->Bake->stringifyList(array_values($fixtures)) ?>];
<?php endif; ?>
<?php if (!empty($construction)): ?>
/**
* setUp method
*
* @return void
*/
public function setUp()
{
parent::setUp();
<?php if ($preConstruct): ?>
<?= $preConstruct ?>
<?php endif; ?>
$this-><?= $subject . ' = ' . $construction ?>
<?php if ($postConstruct): ?>
<?= $postConstruct ?>
<?php endif; ?>
}
/**
* tearDown method
*
* @return void
*/
public function tearDown()
{
unset($this-><?= $subject ?>);
parent::tearDown();
}
<?php endif; ?>
<?php foreach ($methods as $method): ?>
/**
* Test <?= $method ?> method
*
* @return void
*/
public function test<?= Inflector::camelize($method) ?>()
{
$this->markTestIncomplete('Not implemented yet.');
}
<?php endforeach; ?>
<?php if (empty($methods)): ?>
/**
* Test initial setup
*
* @return void
*/
public function testInitialization()
{
$this->markTestIncomplete('Not implemented yet.');
}
<?php endif; ?>
}
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @since 0.1.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
echo $this->element('form');
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment