How to overwrite custom controllers in client folder?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theBuzzyCoder
    Senior Member
    • Feb 2018
    • 102

    How to overwrite custom controllers in client folder?

    Previously in version 5.5.6 or before

    controllers in clientDefs as
    Code:
    {
        "controllers": "custom:controllers/some-entity"
    }
    used to load client/custom/src/controlllers/some-entity.js

    Now it's not working! Is there any change in 5.6.0 in this?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    It it was not working EspoCRM wouldn't work at all.

    Why not to check existing clientDefs, like: https://github.com/espocrm/espocrm/b.../Email.json#L2
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • theBuzzyCoder
      Senior Member
      • Feb 2018
      • 102

      #3
      It was working in the previous version and I have ensured that it is working in previous version. In the current version it is not working

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        > In the current version it is not working.

        It's working. You need to rename action methods in controller:

        name => actionName
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...