Iforp
Iforp
`render()` executes render process from dispatching data while `getRender()` takes the data as parameters and return the output as a string. **UPD:** I was a bit wrong. `getRender()` is just...
1) You unlinked `$myListener` variable of `MyListener` object, but `$eventsManager` still keeps this reference
Garbage collector copes poorly with only cyclical references: ``` php class A { public $b; } class B { public $a; } $a = new A; $b = new B;...
What will happen with $myListener if it was initialized inside some method after it is executed? ``` php call_user_func(function() use($di) { $myListener = new MyListener(); $di->get('eventsManager')->attachUsingWeakRef('somecomponent', $myListener); }); ``` Should...
So you will be able to attach the listener only in the global scope or ongoing call stack otherwise the reference will be lost.
And what about this case? ``` php $eventsManager->attachUsingWeakRef('somecomponent', new MyListener()); ```
+1 It would be really cool to implement the API docs in the same way as was done for [Yii API](http://www.yiiframework.com/doc/api)
+100500 It definitely should be specified in the source code docs
Moreover, we are now discussing with @xboston the multilingual application for convenient display of API docs, so this information is necessary.
**Maybe** this behavior should also be applied to Phalcon\Mvc\Model\Validator's If field value is null and the database allows to store nulls, then other validators should be skipped. At least every...