el-cms / superBake

superBake repository for CakePHP 2.3.x
Other
12 stars 2 forks source link

Should we keep '<file>.targetFileName' in file configuration ? #32

Closed mtancoigne closed 10 years ago

mtancoigne commented 10 years ago

After using superBake, I think this is useless, as complete target file name can be defined in <file>.targetPath

mtancoigne commented 10 years ago

I'll delete it.

mtancoigne commented 10 years ago

Removed targetFileName and ext from both file declarations and menu declarations in the configuration file. You now have to specify all that in the targetPath option. I.e:

---
appBase:
  files:
    flash_succcess:
      targetPath: View::Elements::flash_success.ctp
      template: elements::flash_message
      options:
        alertClass: success
  menus:
    public_menu:
      template: menu
      targetPath: elements::menus::public.ctp

These changes will be available in next commit.