Re: Conf: argue !

Manuel Holtgrewe <[email protected]>
Newsgroups gmane.comp.lib.binarycloud.devel
Message-ID <[email protected]>
Hi

> so in fact I think we have two choices:
> 
> 
> 1::
> 
>>/smarty
>>/smarty/options
>>/smarty/options/plugins_dir  =>(BC_PATH_BASE . '/smarty/libs/plugins')
>>/smarty/options/plugins_dir  =>(BC_PATH_BASE . '/smarty-plugins')
> 
> 
> this builds an array from like-pathed conf values, so an integer PK is
> obviously required.

This will not work if you want to translate the following:

   array(
     array(
         'foo',
         'bar',
     ),
     array(
         'foo2',
         'bar2',
     ),
   )

What about "real" trees then:

   section := (id, parent, name)
   property := (id, parent, name, value, type)
   nameless_property := (id, parent, value, type)

They would solve the problem nicely. Speed is not an issue if we do 
caching and configuration trees are bound to be comparatively small.



Manuel
_______________________________________________
dev mailing list
dev-PnctHDZWAvB/Cz2I37pSEPZ4XP/[email protected]
http://lists.binarycloud.com/mailman/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.