Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php namespace Craft;
- class MypluginVariable
- {
- // return the result directly
- public function exampleVariable()
- {
- return 'Anything you want!';
- }
- // call a service method and return the result
- public function exampleServiceMethodWrapper($value)
- {
- return craft()->myPlugin->myServiceMethod($value);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement