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 <cmn...@gmail.com> 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 <s...@webprogression.co.nz> 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 <cmn...@gmail.com> 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment