Jump to content
php.lv forumi

Kohana modules un ORM models


Infants

Recommended Posts

Jautājums, laikam diezgan specifisks Kohana 3 un hmvc.

Ir projekts, kura struktūra tiek būvēta kā Ko3 moduļi. Ir 2 moduļi - frontendam un backendam.

 

Kā pareizāk būvēt ORM modeļus, ja abi modules strādās ar vienām un tām pašām datubāzes tabulām?

 

It kā varētu iznest uz APPPATH/classes/model, bet gribās, lai katram modulim ir savi.

 

Taisīt katram modulim modeļus savā subfolderī (modules/frontend/classes/model/frontend/item.php) un norādīt $_table_name? Kaut kur manīju, ka šādā variantā esot problēmas ar caching?

Edited by Infants
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...