Re: Is this possible a big issue

2011-05-07 Thread datgs
strtotime('now') is from the CakePHP core, I have no comment :) Someone told me about NPC to sync the time among multiple servers. Anyway, it should be the job of administrator :) On May 7, 4:36 pm, Elte Hupkes wrote: > Also make sure you use the same timezone on all servers.. I usually > use da

Re: newbie question - how to I find this particular value so I can pass it on via a redirect

2011-05-07 Thread dreamingmind
Barricades, You don't really say WHERE the process seems to break down. The find after the save seems suspicious to me. Is that returning the proper slug to pass along to your view function? It looks like $slug will end up holding the returned data array rather than the returned string from the sl

Re: I got problem in insert non english to form

2011-05-07 Thread Ryan Schmidt
Make sure your tables are in UTF-8 encoding instead of Latin-1. On May 7, 2011, at 06:43, taq wrote: > http://i.stack.imgur.com/H2mRB.jpg > > how to hide or fix this problem thank to any suggest -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out th

User data invalid as I enter UsersController::beforeFilter()

2011-05-07 Thread Rob Wilkerson
I'm creating a registration page that allows for the possibility that one user has created a partial record for another user. It looks like this: 1. Some user creates a property and assigns a realtor. 2. The system creates a partial user record and sends an email to the realtor to complete the use

Re: TDD in CakePHP

2011-05-07 Thread Santiago Basulto
Wow, thanks for your answer Daniel. It's great, i'll take a look and try it. > Try defining your test cases, groups, etc. before you build the actual > application, and not after the app is done. :) Good advise by the way. Unfortunately i'm already on the run, so i'll try to make tests for the n

newbie question - how to I find this particular value so I can pass it on via a redirect

2011-05-07 Thread barricades
Hi, I'm new so please don't shout at me for the stupid question but... When I save a record I want to redirect straight to the record I just created. The record which I have just created uses sluggable behaviour to create a slug in a beforeSave, so I can't just use $this- >data['Campaign]['slug']

I got problem in insert non english to form

2011-05-07 Thread taq
http://i.stack.imgur.com/H2mRB.jpg how to hide or fix this problem thank to any suggest -- 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. T

Re: Is this possible a big issue

2011-05-07 Thread Elte Hupkes
Also make sure you use the same timezone on all servers.. I usually use date_default_timezone_set('UTC') and the UTC_ MySQL functions to that end. On a different note, why use strtotime('now') instead of time()? On May 6, 8:09 pm, datgs wrote: > Thanks, I think NTP is a good choice. > > On May 6

Re: Is this URL secure enough

2011-05-07 Thread Elte Hupkes
Ah, well in that case it's more like the token-activation kind of thing you see on a lot of websites, that's usually pretty secure. In these situations always ask yourself the questions "how could somebody obtain this link?" and "if they obtain it, what can they do with it?". In your case it seems