Cricket,
Thanks for the explanation, but I am still having the same problem..
My .htaccess files are exactly as you listed and I am still getting
the max internal redirects in my apache logs.
My instance of cakephp worked fine for me when I tested the setup with
one model. However...
When I
I found what my problem was.
I had an .htaccess file above the root directory and that was causing
the issue. Once I removed that and restarted MAMP, it worked fine.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received
Thanks guys!
I used your advice running a query on the latest ID. I dont have to worry
about a race condition so it works great, thanks!
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/Get-the-last-insert-id-tp3236536p3252664.html
Sent from the CakePHP mailing list
What if I made the insert 20 days ago, how could I get the last id?
I want to get the current ID value in the beforeSave function to apend
it to a file I'm saving... Any thouhts?
kevando
On Oct 25, 11:17 pm, Larry E. Masters php...@gmail.com wrote:
$this-Model-save();
$id = $this-Model-id