Announcement

Collapse
No announcement yet.

getLayout call from Service

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • getLayout call from Service

    Hello,

    What's the neatest way to retrieve a layout while in the Service scope? I'm not completely following what the Container in getContainer() refers to

    E.g. from

    PHP Code:
    application/Espo/Services/Record.php 

    Call something like

    PHP Code:
    $accountListLayout $something->get('layout')->get('Account''list); 

  • #2
    Sorry - I figured it out, you inject it in Core/Services/Base

    Comment

    Working...
    X