2009/12/21 mark_story <mark.story@gmail.com>
Configure no longer holds path information in 1.3. You should use
App::path('views') instead.
-Mark
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
On Dec 21, 9:06 am, Nectom <nec...@gmail.com> 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
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+unsubscribe@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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment