I am preparing a new app and I am planning to use KPPHP 3. Usually when a PHP MVC framework KPPHP, codeigner) I have set a different category that represents the business layer or service level (depending on which word you want to use). Thus, stack:
- view
- controllers [actually only a part of the ideas; Code-Back to C # Land]
- Business Layer [where business logic goes, because business logic spreads many domain items and is not suitable for a model / DAO]
< P> - Model [aka data access object]... moving between layers with domain objects (now "unit" in cake php3).
I think that cake PHP 3 is still no concept of a business layer in the default structure, which is disappointing but hardly difficult. But after that, my question is not really a pedestrian: this is where I keep MyBusinessLayer.php? In Cake PHP 2 I put it in app / lib, and it would have loaded with
app :: import ('Lib', 'Mibnnessale');
What is the equivalent in KPPHP 3, and how do I load it? I realized that I could touch any old place and need_once (), but I wonder if there is a way that coin is consistent with PHP standards. This question is easily ten-line utility class, but in my case it is applicable at the professional level.
No comments:
Post a Comment