app-template icon indicating copy to clipboard operation
app-template copied to clipboard

CakePHP 3.0 Version

Open josegonzalez opened this issue 10 years ago • 5 comments

We definitely want to keep the same features the app-template has - maybe even expand it if necessary - so filing this bug such that we don't forget.

We should also pull in whatever changes are necessary from the cakephp/app repo.

josegonzalez avatar Aug 25 '14 23:08 josegonzalez

Can we keep it a vanilla install. As additions will be managed with Composer it's easier for people to add their own bits to it. Otherwise it means that people will have to remove plugins, update composer and then actually edit their code to remove any package code.

davidyell avatar Sep 25 '14 10:09 davidyell

@davidyell Those who want vanilla can just use cakephp/app.

ADmad avatar Sep 25 '14 11:09 ADmad

Oh yes, sorry. Forgot that obviously with 3.x the app would be included from Composer.

davidyell avatar Sep 25 '14 11:09 davidyell

Okay so I think this can be done quite simply:

  • clone cakephp/app
  • set this gist as the app.default.php file
  • add this gist as the .env.default file
  • around line 60 of bootstrap.php, add the following:
josegonzalez\Dotenv\Loader::load([
    'filepaths' => [
        __DIR__ . DS . '.env',
        __DIR__ . DS . '.env.default',
    ],
    'toServer' => true,
    'skipExisting' => ['toServer'],
    'raiseExceptions' => true
]);

Open question: Do we want to keep or remove all the cakephp/app history? If keep, it makes updating it in the future potentially easier.

josegonzalez avatar Jun 05 '15 05:06 josegonzalez

This should also require @stable were possible. Probably also crud-view and authenticate? How does everyone feel about that?

jadb avatar Jun 09 '15 05:06 jadb