Comments on: Using Configure in CakePHP applications /cakephp/using-configure-in-cakephp-applications/?utm_source=rss&utm_medium=rss&utm_campaign=using-configure-in-cakephp-applications A glimpse at a coder's troubled mind Tue, 18 Sep 2012 15:06:14 +0000 hourly 1 http://wordpress.org/?v=3.4.2 By: Hans Heidemann /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-915 Hans Heidemann Tue, 23 Mar 2010 14:32:49 +0000 /1/using-configure-in-cakephp-applications/#comment-915 Thank you for this very helpful introduction into using configure. Since I do a lot of programming with CakePHP I was looking for a way to implement a configuration file without having trouble when updating CakePHP. Thank you for this very helpful introduction into using configure. Since I do a lot of programming with CakePHP I was looking for a way to implement a configuration file without having trouble when updating CakePHP.

]]>
By: Tom /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-543 Tom Thu, 11 Feb 2010 12:06:14 +0000 /1/using-configure-in-cakephp-applications/#comment-543 Thanks for the quick reference, I'm always forgetting the syntax of this stuff ;) I am also a coder with a very troubled mind this morning lol! Thanks for the quick reference, I’m always forgetting the syntax of this stuff ;) I am also a coder with a very troubled mind this morning lol!

]]>
By: Tad /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-468 Tad Fri, 29 Jan 2010 23:26:44 +0000 /1/using-configure-in-cakephp-applications/#comment-468 @adnan: Use Configure::store(). It's in the API docs. @adnan: Use Configure::store(). It’s in the API docs.

]]>
By: mariano /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-211 mariano Sat, 02 Jan 2010 14:53:09 +0000 /1/using-configure-in-cakephp-applications/#comment-211 Of course that wouldn't save to the file. The Configure class is not about writing to the configuration file you parse from, but just to parse it. You'd have to extend the Configure class yourself, and make it so after a write it saves to the file. Of course that wouldn’t save to the file. The Configure class is not about writing to the configuration file you parse from, but just to parse it. You’d have to extend the Configure class yourself, and make it so after a write it saves to the file.

]]>
By: adnan /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-210 adnan Sat, 02 Jan 2010 12:25:04 +0000 /1/using-configure-in-cakephp-applications/#comment-210 Configure::write('Settings', array( 'version' => '1.0.213', 'title' => 'My Application' ) ); does not save the value to config file.. How can I update the config file using Configure::write ?? Configure::write(‘Settings’, array(
‘version’ => ’1.0.213′,
‘title’ => ‘My Application’
)
);

does not save the value to config file.. How can I update the config file using Configure::write ??

]]>
By: oes tsetnoc [Visitor] /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-142 oes tsetnoc [Visitor] Thu, 01 Oct 2009 22:12:00 +0000 /1/using-configure-in-cakephp-applications/#comment-142 Does anyone know what I have to change for showing the thumbnail and just the excerpt with it?? Does anyone know what I have to change for showing the thumbnail and just the excerpt with it??

]]>
By: Gediminas [Visitor] /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-141 Gediminas [Visitor] Wed, 24 Jun 2009 00:58:00 +0000 /1/using-configure-in-cakephp-applications/#comment-141 Great job. But also need how to set config values from app_controller and so on Great job. But also need how to set config values from app_controller and so on

]]>
By: mariano.iglesias [Member] /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-140 mariano.iglesias [Member] Fri, 04 Jul 2008 02:39:00 +0000 /1/using-configure-in-cakephp-applications/#comment-140 @mark: your "of course" statement pretty much answered your own question. If you are looking for static constants, then defines would work just fine (in fact, it would provide a small performance improvement.)<br /> <br /> However, if you are looking for variables that you don't want fixed (since they could be overriden at the application level by using Configure::write, or while loading another configuration file with Configure::load), then Configure is your best friend. @mark: your “of course” statement pretty much answered your own question. If you are looking for static constants, then defines would work just fine (in fact, it would provide a small performance improvement.)

However, if you are looking for variables that you don’t want fixed (since they could be overriden at the application level by using Configure::write, or while loading another configuration file with Configure::load), then Configure is your best friend.

]]>
By: mark [Visitor] /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-139 mark [Visitor] Thu, 03 Jul 2008 20:04:00 +0000 /1/using-configure-in-cakephp-applications/#comment-139 what would be the big difference between doing it that way and just defining constants - which are applicating-wide as well<br /> <br /> (of course, if the content of the config constants are not supposed to be changed anymore) what would be the big difference between doing it that way and just defining constants – which are applicating-wide as well

(of course, if the content of the config constants are not supposed to be changed anymore)

]]>
By: Webmaster Mexico [Visitor] /cakephp/using-configure-in-cakephp-applications/comment-page-1/#comment-138 Webmaster Mexico [Visitor] Wed, 26 Mar 2008 09:14:00 +0000 /1/using-configure-in-cakephp-applications/#comment-138 I try to implement this example, but I lost the data into my app_model. I need to do something else? I try to implement this example, but I lost the data into my app_model. I need to do something else?

]]>