Hi _k10_, > To add more to Brians method, it would be a good practise to set the > model instance to a variable (who's name is the name of the Model) if > you plan to use the model more than once.
Actually, that's incorrect. By using ClassRegistry, cake checks for both the required file and also checks for an existing instanciated model, so if you've called it previously, cake will use the model object that was created then, it doesn't create multiple objects for each model. This is why you should use ClassRegistry instead of App:import(); thanks, Jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---