Unable to set parent_id = id in add or edit actions in self assoc model

2013-03-21 Thread mk
Hi I posted a question on stack overflow that I was hoping someone here could help me figure out. (should have probably posted here first...). Anyway I am having some issues trying to save (both add edit) into a parent_id column in a Model that I have setup as a self association. Basically I

Re: Self Association parent_id doesn't display in view drop down

2013-03-20 Thread mk
perfect... thanks. I knew it would be something simple after spending too many hours trying everything but that, On Wednesday, March 20, 2013 2:24:07 AM UTC-5, AD7six wrote: $parentItems - $parents AD On Wednesday, 20 March 2013 03:28:09 UTC+1, mk wrote: Hi I am having some trouble

Self Association parent_id doesn't display in view drop down

2013-03-19 Thread mk
Hi I am having some trouble getting a self association parent_id to show up in the scaffolding drop down list of a view. I have the following baked add action in my controller public function add() { if ($this-request-is('post')) { $this-Item-create(); if

Extending Plugin Question - location of new controllers/models/views

2013-01-10 Thread mk
Hi I’m using the cakedc users plugin in my app and have it working well. I’d like to extend it now and I have read through the readme “How to extend the plugin” https://github.com/CakeDC/users#how-to-extend-the-plugin, where they give example controller called AppUsersController and model

Re: Displayfield from plugin not used from main app

2013-01-04 Thread mk
what you mean by that. Have you tried debug($data) to see what's in the array? On Thu, Jan 3, 2013 at 7:22 PM, mk mkla...@gmail.com javascript: wrote: Thanks for quick reply. I will take another look at the plugin views, but I am not sure that is where I need to change things

Displayfield from plugin not used from main app

2013-01-03 Thread mk
Hi, I'm using the CakeDC Users plugin and have it working, however when I access it from a View in the main app, it is showing only the user id rather than the displayfield = 'username'; Plugin User Model contains public $displayField = 'username'; Main App View (add.ctp) Contains

Re: Displayfield from plugin not used from main app

2013-01-03 Thread mk
, cricket wrote: On Thu, Jan 3, 2013 at 5:14 PM, mk mkla...@gmail.com javascript: wrote: Hi, I'm using the CakeDC Users plugin and have it working, however when I access it from a View in the main app, it is showing only the user id rather than the displayfield = 'username

Re: CakeDC User Plugin not sending verification email

2012-07-10 Thread mk
Just to close loop on this... This is resolved, I was not calling correct config from my email.php. once I added -config('smtp') it worked... Thanks again On Monday, July 9, 2012 8:04:26 PM UTC-5, mk wrote: Thanks for the reply... I will review my email.php again and hope to find my

Re: CakeDC User Plugin not sending verification email

2012-07-10 Thread mk
Just to close loop on this... This is resolved, I was not calling correct config from my email.php. once I added -config('smtp') it worked... Thanks again On Monday, July 9, 2012 8:04:26 PM UTC-5, mk wrote: Thanks for the reply... I will review my email.php again and hope to find

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread mk
, cricket wrote: I don't see an error message, just the stacktrace. Is this a typo? Configure::wrote (should be write) On Mon, Jul 9, 2012 at 4:34 PM, mk mklap...@gmail.com wrote: Hi I’m trying to implement the 2.0 branch of the CakeDC Users Plugin (https://github.com

Re: CakeDC User Plugin not sending verification email

2012-07-09 Thread mk
Thanks for the reply... I will review my email.php again and hope to find my error. thanks again mk On Monday, July 9, 2012 6:25:48 PM UTC-5, sams wrote: Your email cfg is incorrect with your app - see Config/email.php - S On 9 Jul 2012 23:45, mk mklap...@gmail.com wrote: yes, sorry typo

Save then FindAll misses recently saved?

2007-01-24 Thread mk
My problem is pretty simple. I add a new item to the database via the model-save() method. I then try to retrieve the full list of items including the one that I just saved via model-findall() so I can make an ajax update. The first time I add something, the add is made in the database, but