automagic

Cake PHP autmagic forms and multiple tables

I have a form with the following fields: firstName lastName emailAddress followed by (up to) ten name/email fields, like so friendName-1 friendEmail-1 friendName-2 friendEmail-2 ... etc. The firstName, lastName & emailAddress fields will be saved into a 'referrals' table, but 10 name/email pairs will go into a 'friends' table, c...

HTML scroll to bottom on a table

So I have a table set up that has a cutsy little javascript running in it, however it will not auto scroll to the bottom. So my question is, how the heck do I have it automatically do it? ...

CakePHP Controller::persistModel and Form Automagic

I am developing an app using the CakePHP framework. I just recently read an article that said enabling var $persistModel = true; could lead to performance gains. As I am working on a development server I thought I'd give it a try. Lo and behold the site was slightly faster at the cost of losing form automagic. For example, all user...

Accessing individual HABTM records in a form

I'm building a form in my CakePHP project that lets you edit a company's information. Among all other things, every company has at least one geographical area in which the company operates, but it may have more. The areas are selected individually using select dropdowns. The relationship between companies and areas is HABTM, because I n...