I'm copying the following tutorial:

http://bakery.cakephp.org/articles/view/simply-storing-config-values-in-the-db

I noticed my value, which was 'Test', was being put into the DB as
'N;'.  The key remained correct.

I found that on an empty table, writing a key the wrong value would be
inserted into the DB ('MyApp.Test' would be inserted as 'MyApp.N;').
When i would attempt to read the key using the script in the tutorial,
I would return a variable with the value of 's'.

I started putting echo()'s in various parts of the writecfg().  For
some reason, the script would input the correct values into the DB.
Executing the getcfg() or Configure::read() would return the correct
value.  However, when I removed ALL echo()'s from the script, it
resumed to inserting 'N;' (without quotes, with semicolon) into the
DB.  NOTE that all write's were done on an empty table.

It leads me to believe that it's not the tutorial itself, but rather
the Configure class itself that causes this.

I am using Cake 1.2.0.7962 Final.

Is anyone else coming across these errors?  I've tried searching via
Trac and Google but the semicolon is ignored and nothing is returned
on the various search terms I've used related to this issue.
--~--~---------~--~----~------------~-------~--~----~
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