Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test case for cached view files, and fatal errors caused by th…
…e view instance not being registered. View instances are now registered when rendering view caches, and unregistered if the cached view fails. This fixes issues rendering flash messages with custom layouts and fixes FormHelper methods inside nocache blocks. Fixes #60
- Loading branch information
Showing
3 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="users form"> | ||
<cake:nocache> | ||
<?php echo $form->create('User');?> | ||
<fieldset> | ||
<legend><?php __('Add User');?></legend> | ||
<?php | ||
echo $form->input('username'); | ||
echo $form->input('email'); | ||
echo $form->input('password'); | ||
?> | ||
</fieldset> | ||
<?php echo $form->end('Submit');?> | ||
</cake:nocache> | ||
</div> |