Re: [Aikiframework-devel] How config class work

2012-04-17 Thread Jakub Jankiewicz
On Tue, 17 Apr 2012 21:18:13 +0200 Roger Martín wrote: > El 17 de abril de 2012 17:09, Jakub Jankiewicz > escribió: > > > One more question can I use selectors for session? For instance I > > want to set variable when user login, but I want that every > > language will have different value (i

Re: [Aikiframework-devel] How config class work

2012-04-17 Thread Jakub Jankiewicz
Awesome, great job with config class. On Tue, 17 Apr 2012 20:55:58 +0200 Roger Martín wrote: > So can I have 2 different values of the same variable for different > > language using selectors? > > > yes. > > > > Do they be getted automagically using default [current] as > > selector, > > >

Re: [Aikiframework-devel] How config class work

2012-04-17 Thread Jakub Jankiewicz
One more question can I use selectors for session? For instance I want to set variable when user login, but I want that every language will have different value (in different language) of course I can use (t([my_var])t) or (script( $aiki->config->session("foo", "(t(some text)t)"); )script) and hav

Re: [Aikiframework-devel] How config class work

2012-04-17 Thread Jakub Jankiewicz
So can I have 2 different values of the same variable for different language using selectors? (like [language_name] that I can use to show language as custom constants (that I added) - "Polish" for */*/pl "English" for */*/en and "Spanish" for */*/es). Do they be getted automagically using default

Re: [Aikiframework-devel] How config class work

2012-04-09 Thread Jon Phillips
I'm glad you solved it. Keep going! Jon 2012/3/29 Jakub Jankiewicz : > I think that everything, that can be, should be configurable. Really > flexible system should allow to change everything and look at > everything without modify it's code, check python for example. > > I'm not sure if I should

Re: [Aikiframework-devel] How config class work

2012-03-29 Thread Jakub Jankiewicz
I think that everything, that can be, should be configurable. Really flexible system should allow to change everything and look at everything without modify it's code, check python for example. I'm not sure if I should check everything in [brackets] and try to replace it with database from $config

Re: [Aikiframework-devel] How config class work

2012-03-28 Thread Jon Phillips
yes, so with what you are trying to do, you can replace the [nsfw] as a config option possible is one solution. I'm not sold on the idea of having constants everywhere that are custom. Anyway, the config class works now, and seems to be a better solution than just adding more constants to aiki. Ano

Re: [Aikiframework-devel] How config class work

2012-03-28 Thread Jakub Jankiewicz
Great I will read this. Can old config be moved to new one, so we get rid of this arrays in database? We can do this after changing Admin Panel since current Panel is using those arrays. Essential config can be put into a file, and the rest of it can be put into new system, arrays in database are

Re: [Aikiframework-devel] How config class work

2012-03-28 Thread Jon Phillips
It works quite well too. It manages old configs and new ones. Jon Phillips bj. +86-187-1003-9974 sf. +1-415-830-3884 http://fabricatorz.com On Mar 29, 2012 4:25 AM, "Roger Martín" wrote: hi folks!: corrected doc in http://www.aikiframework.org/wiki/Aiki_config_class ___

Re: [Aikiframework-devel] How config class work

2012-03-28 Thread Roger Martín
hi folks!: corrected doc in http://www.aikiframework.org/wiki/Aiki_config_class ___ Mailing list: https://launchpad.net/~aikiframework-devel Post to : aikiframework-devel@lists.launchpad.net Unsubscribe : https://launchpad.net/~aikiframework-devel Mo

Re: [Aikiframework-devel] How config class work

2012-03-28 Thread Roger Martín
Hi folks; Explained here http://www.aikiframework.org/wiki/Config_class ___ Mailing list: https://launchpad.net/~aikiframework-devel Post to : aikiframework-devel@lists.launchpad.net Unsubscribe : https://launchpad.net/~aikiframework-devel More help

[Aikiframework-devel] How config class work

2012-03-28 Thread Jakub Jankiewicz
Hi Roger I want to ask config class work, and what is used for? I take a look at it, and from what I saw, it check aiki_settings and aiki_configs and they are empty (there is only AIKI_REVISIONS in one of them), it have some selector I didn't read ce -- Jakub Jankiewicz twitter: @jcubic www: htt