taiwen / pi

Pi Engine in process
5 stars 0 forks source link

bacek modules #25

Closed voltan closed 11 years ago

voltan commented 11 years ago

Hello we need new type of modules that make some service for other modules ( like tag ). tag module have service in pi core for usage, And I think comment module will hve same service too.

But we need some other modules like this, such as vote/rate , ReportAbuse , Favorite/bookmark. what about this modules?

I need ReportAbuse and Favorite/bookmark module and wrote vote module, But for vote module I use API class . But which method is better? add service or use api? I hope I develop modules of correct way, that that useful for use in all projects and all other modules

taiwen commented 11 years ago

Use API service for module services. Once a module service is reviewed and accepted as a kernel service, it can be called via Pi::service()

voltan commented 11 years ago

Thanks understand