Thanks works perfectly now :)

2009/12/21 mark_story <[email protected]>

> Configure no longer holds path information in 1.3.  You should use
> App::path('views') instead.
>
> -Mark
>
> On Dec 21, 9:06 am, Nectom <[email protected]> wrote:
> > Trying to upgrade my app from 1.2.5 to the 1.3 dev.
> > I'm using the smarty templating system and its giving a few errors.
> > The code that gives errors is:
> >         $paths = Configure::getInstance();
> >
> >         foreach($paths->viewPaths as $path) {
> >             if (file_exists($path . 'layouts' . DS . $this->subDir .
> $type .
> > $this->layout . $this->ext)) {
> >                 $layoutFileName = $path . 'layouts' . DS . $this->subDir
> .
> > $type . $this->layout . $this->ext;
> >                 return $layoutFileName;
> >             }
> >         }
> >
> > Reading the migration page It says that getInstance is depreciated and I
> > should call string methods statically. I'm slightly unsure what this
> > actually means. Anyone able to help?
> >
> > Thanks,
> > Dave
>
> 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