Create custom Core/Record.php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dangerdodis
    Junior Member
    • May 2018
    • 26

    Create custom Core/Record.php

    I want to edit Record.php. But I do not want to do this on my own. I created it specially but it does not work.
    It works for the controller. But it does not work for the core/controllers folder.
    The sample namespace code is below.

    Code:
    namespace Espo\Custom\Core\Controllers;
    use \Espo\Core\Exceptions\Error;
    use \Espo\Core\Exceptions\Forbidden;
    use \Espo\Core\Exceptions\NotFound;
    use \Espo\Core\Exceptions\BadRequest;
    use \Espo\Core\Utils\Util;
    class Record extends Base
    {
    const MAX_SIZE_LIMIT = 200;
    public static $defaultAction = 'list';
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    You can not override core controllers in upgrade safe way, only each controller separately.

    Comment

    Working...