- Getting started
- Basics
- Finding
- Relation Mapping
- Models
- Adding Models
- FUSE
- Custom Methods
- Cooker
- Dependency Injection
- Database
- BeanCan
- Advanced
- Architecture
- Other
Fuse Custom Method
FUSE does not only support hooks like update() and delete(). You can also call a non-existent method on a bean and it will fire the corresponding method on the model.
class Model_Dog extends RedBean_SimpleModel {
public function bark() {
echo 'Whaf!';
}
}
$dog = R::dispense('dog');
$dog->bark(); //echos 'Whaf!'
Learn how you can write Models that automatically connect to be beans using FUSE.
Tweet
User contributed notes. Please use the comment section to provide tips, notes and examples. To ask for support or to provide feedback use the forum. For bug reports use Github Issue Tracker.
Site comments powered by Disquspage generated in 0.01056694984436 sec.