mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding loadPluginModels back to dispatcher until I fix issue with loading associated plugin models.
Corrected form.ctp template parse error git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5294 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f5c564f401
commit
4b6c5afe35
2 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
<div class="<?php echo $singularVar;?>">
|
<div class="<?php echo $singularVar;?>">
|
||||||
<?php echo "<?php echo \$form->create('{$modelClass}');?>\n";?>
|
<?php echo "<?php echo \$form->create('{$modelClass}');?>\n";?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php echo "<?php __('".Inflector::humanize($action).", true);?> <?php __('{$singularHumanName}');?>";?></legend>
|
<legend><?php echo "<?php __('".Inflector::humanize($action)."', true);?> <?php __('{$singularHumanName}');?>";?></legend>
|
||||||
<?php
|
<?php
|
||||||
echo "\t<?php\n";
|
echo "\t<?php\n";
|
||||||
foreach($fields as $field) {
|
foreach($fields as $field) {
|
||||||
|
|
|
@ -127,6 +127,7 @@ class Dispatcher extends Object {
|
||||||
$oldAction = $params['action'];
|
$oldAction = $params['action'];
|
||||||
$params = $this->_restructureParams($params);
|
$params = $this->_restructureParams($params);
|
||||||
$this->plugin = $plugin;
|
$this->plugin = $plugin;
|
||||||
|
loadPluginModels($plugin);
|
||||||
$this->base = $this->base.'/'.Inflector::underscore($ctrlName);
|
$this->base = $this->base.'/'.Inflector::underscore($ctrlName);
|
||||||
|
|
||||||
if(empty($params['controller']) || !class_exists($pluginClass)) {
|
if(empty($params['controller']) || !class_exists($pluginClass)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue