-
Notifications
You must be signed in to change notification settings - Fork 11
Services
Devin Smith edited this page Nov 29, 2015
·
19 revisions
Services in Tipsy are static models. They are accessible in the same ways as the built in services and models.
$tipsy->service('Service', [
hello => function() {
return 'world';
}
]);
$tipsy->router()
->home(function($Service) {
echo $Service->hello();
});- Home
- Getting Started
- Server Config
- Installation
- Installing Composer
- App
- Route Shorthand
- Config
- Routes
- Methods
- Controller Types
- Params & Regex
- Aliases
- Dependency Injection
- Advanced Routing
- Services
- User Defined Services
- Built in Services
- Middleware
- Views
- Templates
- Scope
- Resource
- Factory
- Looper
- Examples
- Plugins
- About