If Configure::read() outputs right value, and this is really output from right place, your very first code in this thread is the one you need.
My assumption was that you don't get right value by Configure::read() in model constructor because it is not set yet (I explained it before). And this still can be the case if you output this value in several places and confused by the right output from the wrong place. On 10 сен, 16:47, badben <[email protected]> wrote: > Thanks for you help but I am not sure that that is correct. > > Whilst I by no means pretend to be an expert at the inner workings of > cakephp, the construct function in UserModel is called as the user model is > first constructed, > > The parent::__construct() function in Model actually initializes the > behaviours so my theory was that if I change the value of actsAs prior to > parent::__construct() then I should be able to change the settings of the > behavior. > > Also if I simply echo the value of configure::read(......) then the correct > value is printed to the screen showing that the configure values have > actually been set when the UserModel __construct() function is called. > > This at least makes sense to me, whether I am right or not is a completely > different matter. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
