Standard view files do not load tabs.inc for plugins

XMLWordPrintable

      The Standard view files such as edit.ctp loads buttons.inc files for plugins using code like

      if(!empty($this->plugin)) {
          if(file_exists(APP . "Plugin/" . $this->plugin . "/View/" . $model . "/buttons.inc")) {
            include(APP . "Plugin/" . $this->plugin . "/View/" . $model . "/buttons.inc");
          } elseif(file_exists(LOCAL . "Plugin/" . $this->plugin . "/View/" . $model . "/buttons.inc")) {
            include(LOCAL . "Plugin/" . $this->plugin . "/View/" . $model . "/buttons.inc");
          }
        } else {
          if(file_exists(APP . "View/" . $model . "/buttons.inc")) {
            include(APP . "View/" . $model . "/buttons.inc");
          }
        } 

      but it does NOT do the same for tabs.inc, so the mechanism/framework is not available for plugins that want to use the tabs.

            Assignee:
            Arlen Johnson
            Reporter:
            Scott Koranda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: