this is an example I use in one of my plugins

           $file = new File(CSS_URL . 'cpanel.css');

            $css = $this->Html->css('/cpanel/css/cpanel.css');

            if ($file->exists()) {
                $css = $this->Html->css('cpanel.css');
           }

you should instead use the constant VIEWS


--
anl


On Fri, Feb 19, 2010 at 2:03 PM, Ernesto <[email protected]> wrote:

> Hello.
>
> is there a way to check if a view file ([view].ctp) exists?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to