Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8924743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:29:59+00:00 2026-06-15T07:29:59+00:00

I am developing a plugin and I’m trying to find the best way to

  • 0

I am developing a plugin and I’m trying to find the best way to have a set of default config options for it which are automatically used when the plugin is loaded, but also have the ability to customise them for a specific app.

I am struggling to find any good documentation about this for Cake 2.0+

Most of the solutions seem to involve configuring something in the main app bootstrap or making a config file in the main app, which seems like a bad idea because if you forget to do any of those things or don’t do them correctly, the plugin won’t work and it’s relying on the ‘outside’ app, which doesn’t seem right.

At the same time, it also seems like a bad idea to have the user edit some sort of config file within the plugin, as they are then tampering with the plugin itself.

What is the best way to do this (or what does everyone normally do)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:30:00+00:00Added an answer on June 15, 2026 at 7:30 am

    What you should do is put your configuration settings in the plugins bootstrap file in Plugins/PluginDirectory/Config/bootstrap.php.

    Then when loading the plugin the user has the option of whether to use the plugin’s bootstrap file (See the CookBook). This appears to be all or nothing though, but you do have the advantage that your default configuration settings could always be used and so the user wouldn’t have to create any config settings themselves.


    I have found a plugin development article on the bakery and found this note:

    Notice: be careful with configuration settings because plugin config files will override matching app settings, it is better to name settings with a plugin prefix

    This to me suggests that you can’t overwrite individual plugin settings from the application’s bootstrap file. The user would have to modify the plugin’s bootstrap file instead.

    (The article is quite old and appears to be for an older version of cake so I don’t know if things changed in more recent versions. Like you I am having a hard time finding much information on this subject)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a plugin which is used in several applications. This plugin is a
I'm developing an Jquery plugin and have to set many css values inside of
I am developing an plugin for OsiriX . In that app i have 3-4
I am developing an Eclipse plugin and have tests for it. Some are regular
I'm developing a plugin in Wordpress and am having difficulty trying to post data
I am developing a plugin host. The plugins should have as little trust as
I'm developing a Word plugin and I'd like to set the language layout depending
I am developing a plugin which its command will be displayed only at certain
I'm developing a greasemonkey plugin, which is supposed to send a form in background
I have been developing a plugin for Eclipse. The plugin has a couple of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.