Dana utorak, 20. ožujka 2012. 11:25:55 UTC+1, korisnik pokerphp napisao je:
>
> https://groups.google.com/forum/?fromgroups#!topic/cake-php/8S7Ns6YBnYM
>
>
I'm sorry, I do not need that.

I just experimented :
1.Store submitted values as plain php, dbsetup.php
2.then load it via Configure :: load (); in bootstrap
3.read a value and then define constants,
 define('SITE1_TOKEN',$site1_token);
 define('SITE2_TOKEN',$site2_token);
...

in my database.php use:

...
public $site1 = array(
        'token' => SITE1_TOKEN,
        'password' => SITE1_PASSWORD
...
    );

public $site2 = array(
        'token' => SITE2_TOKEN,
        'password' => SITE2_PASSWORD
...
    );
...

The administrator of the site can now via a web form add or change the 
values ​​...

I'm not sure whether this is the best way ... 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to