Components vs Helpers vs Utilities

2013-01-25 Thread tron
Im trying to wrap my head around utilzing some functionality at all levels of MVC. Right now, I'm writing a component that performs several date functions for my app (the date utility is insufficient for what Im doing). The problem is I need the these functions in both my models and views as

Calling save attempts to insert instead of update

2009-08-12 Thread tron
I have a problem with one specific controller trying to INSERT instead of UPDATE and I am getting duplicate entry errors. the $this-data variable contains the correct primary key of table I'm trying to update, but still tries to INSERT instead. Most notable text message is this in the debug dump: