Re: incorporating many views

2006-09-29 Thread michael234
In my controller I have... function index() { return $this-set('data', $this-Enquiry-findAll()); } In my view (template/index.thtml) I have.. ?php echo $this-renderElement('index',

Re: incorporating many views

2006-09-28 Thread michael234
Thanks, that's very interesting. Can you tell me once called, how do you link the view back to it's controller. At the moment I get Fatal error: Call to a member function on a non-object in /app/views/elements/tasks/index.thtml on line 9 the file index.thtml i'm calling from being in

Re: updating to various tables

2006-09-26 Thread michael234
Thank you very much for your reply, I have been reading it closely and try to apply it to my work, however I have found myself stuck in the same rut. My problem is really very simply but I've tried everything and can get a solution. All I need is to populate a field in my appointments form with

afterSave() generate email

2006-09-23 Thread michael234
Hi, I've read that you can automatically generate an email after saving a form like below... function afterSave() { // mail me when a new bookmark is added mail('[EMAIL PROTECTED]', 'Bookmark saved to database'); return true; But what im