Tags: klederson/phpburn
Tags
A small implementation of Controllers routes so you can define better… … dynamic methods using __call() PHP magic function
Minor fix PhpBURN intelisense so now even a empty raw model can be up… …dated by just adding the PK(s) value(s) to it: ->id = 1; ->name = 'New Name'; ->save(); It will update the name based on id 1 as pk ( once id is defined as a PK of course )
Improved recursive toArray to use model itself for better compatibili… …ty with changes
changing empty function comparation for isset in field value and rout… …e param because zero value can be used and empty deny it
Added ->saveRelationship(); ->saveRelationship() - That means you now… … can save a unique relationship without call ->save() (it does still work as aways but now with new features) - So now you can save only the relationships by calling ->saveRelationship() or a UNIQUE RELATIONSHIP by calling ->saveRelationship();
MAJOR UPDATE: Added PhpBURN_ControllerConfig Auxiliar class it manage…
…s configurations for all Controllers.
MAJOR UPDATE: Added onCallActionBefore and onCallActionAfter in controllers so now is possible to define functions and structures before call an action, example:
PhpBURN_ControllerConfig::addOnCallActionBefore(
'phpburn_onCallActionBeforeTest',
function(, ) {
var_dump(, );
}
);
and are needed