I think you could do this with the Model alias property:
http://api13.cakephp.org/class/model

But that would let you use a different name for your model rather than
the component.

Don

On May 20, 8:17 am, Matthias <[email protected]>
wrote:
> 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to