#626: Including view files by hand may lead to multiple includes of the class
file
-----------------------------------------+----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: david
Type: defect | Status: new
Priority: high | Milestone: 0.11.1
Component: controller | Version: 0.11.0
Severity: blocker | Keywords: view slot
-----------------------------------------+----------------------------------
Example case:
A login view which is used as slot as well as main content. The slot does
not display the errors and does always return the input view. The main
content view does display the errors and uses the LoginErrorView which
extends and require_once(s) the LoginInputView.
On login errors (e.g. wrong password) this leads to a "Fatal error: Cannot
redeclare class Auth_LoginInputView in
[...]app/modules/Auth/views/LoginInputView.class.php on line 0"
The error lies in the AgaviController::createViewInstance() which does a
require instead of a require_once for the view's class file.
--
Ticket URL: <http://trac.agavi.org/ticket/626>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets