Er component.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Paul Webster
Sent: Thursday, 2 July 2009 8:56 a.m.
To: CakePHP
Subject: Re: How to Save Configuration in Database


Yeah something along those lines, we opted for putting together a
small configuration plugin, to keep all the appropriate data handling
in the right place:

Eg.
- Configuration model for all our data crunching & get, sets, etc
- Configurations Component to interface with the configuration model
from our controllers, and optionally load the config data into the app
- Configured behavior for attaching sets of config data to model
records, and providing a standard interface through to the
Configuation model from any other model
- Then a pretty standard standard CRUD scaffold for manual editing of
the data

But in reality you could wrap most of the simple functionality in just
one class, and most likely that will be a controller.





On Jul 1, 11:30 pm, CMNAJS <[email protected]> wrote:
> ya i will have to figure out the way to store and retrieve from
> table..
>
> well i am doing this by creating a component. and in its constructor i
> load the data from database and put it in cache  and check for cache
> next time.
> and a few more functions of this component like get, set, update,
> delete which will enable me to communicate with the data..
>
> is there any better way.. or i am doing right
>
> On Jul 1, 4:15 pm, Paul Webster <[email protected]> wrote:
>
> > We save sets of configuration data into a config table, and pull it
> > out from the db, or from cache before passing to Configure::write at
> > the start of the app load.
>
> > No pre made solutions for this one!
>
> > HTH,
>
> > Paul.
>
> > On Jul 1, 10:55 pm, CMNAJS <[email protected]> wrote:
>
> > > how can i manage configuration system in cakephp like in wordpress. In
> > > wordpress we save all the settings in database table named Options. If
> > > i use Configuration class, how can i manage all the settings
> > > separately i am doubtful about. So how should i do this.


__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4202 (20090630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4202 (20090630) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
  

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4206 (20090701) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 4206 (20090701) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to