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 <e.fanz...@gmail.com> 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 cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 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