#5681: Enabling a seperate bootstrap.php for every plugin
----------------------------+-----------------------------------------------
    Reporter:  stevieboy    |         Owner:     
        Type:  Enhancement  |        Status:  new
    Priority:  Medium       |     Milestone:     
   Component:  General      |       Version:     
    Severity:  Normal       |    Resolution:     
    Keywords:               |   Php_version:  n/a
Cake_version:               |  
----------------------------+-----------------------------------------------
Comment (by stevieboy):

 == REQUEST FOR CLOSING OF THIS TICKET ==

 After a while of using this way for handling plugin-related config-vars I
 switched to another way:[[BR]][[BR]]

 In '''app/plugins/<pluginname>/<pluginname>_app_controller.php''' in
 '''beforeFilter()''' I put:
 {{{
  Configure::load('settings.<pluginname>');
 }}}

 When installing a plugin this file (settings.<pluginname>.php) must be
 copied into '''app/config/''' and modified to the main apps needs. ( As
 described in [http://book.cakephp.org/view/42/The-Configuration-
 Class#load-415 The Book::Configure Class] )[[BR]][[BR]]

 This way the main app has complete control over the plugins behavior (as
 far as config values manage to) and the plugin is totally autarkic (which
 is perfect when using plugins via svn-externals).

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5681#comment:2>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to