#1395: setAttribute() fails in action validate*() methods
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 1.0.6
Component: action | Version: 1.0.5
Severity: normal | Keywords:
Has_patch: 0 |
-----------------------+----------------------------------------------------
Using {{{setAttribute()}}} in the validate() method of an action triggers
"Fatal error: Call to a member function setAttribute() on a non-object in
app/cache/config/compile.xml_[...].php" as the action doesn't yet have its
container property set and {{{$this->container->setAttribute()}}} thus
fails.
Seems like a harder problem to solve, but it would definitely be a
desirable feature, as one would have to use "ordinary" class properties in
the action to work around this.
At least a proper exception should be thrown.
--
Ticket URL: <http://trac.agavi.org/ticket/1395>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets