Load model or component under a different name
Hi,
I am about to use the email component, which is then accessible in the
controller through $this->Email. For validating the form I created a
model with the same name "Email", so it will also be accessed as $this-
>Email. I like both names, so I would like to keep them. Is there a
way to load one of these (preferably the component) under a different
name? So I could access the comp. e.g. via $this->EmailComponent?
Or how do you validate your emails?
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home