debug($this->Meta->getMetas('xdefault')); => I call this for testing reason in my default.ctp
and I get this error:
Notice (8): Undefined property: View::$Meta [CORE\Cake\View\View.php, line 804]Fatal error: Call to a member function getMetas() on a non-object in D:\SVN-Homes\PHP\trunk\y\View\Layouts\default.ctp on line 36
function getMetas($template){
$inhalt = $this->_View->render($template);
$inhalt = $this->_View->render($template);
I added 'Meta' to the AppController helper array.
Any ideas?
Hi,I would like to render a view to grap (for seo) the content to generate keywords.App::uses('AppHelper', 'View/Helper');class MetaHelper extends AppHelper {function getMetas($template){$content = $this->render($template);returns my this error:Method MetaHelper::render does not existHow else can I do this?Thanks!!
Am Montag, 26. März 2012 10:51:40 UTC+2 schrieb heohni:
--Hi,I would like to render a view to grap (for seo) the content to generate keywords.App::uses('AppHelper', 'View/Helper');class MetaHelper extends AppHelper {function getMetas($template){$content = $this->render($template);returns my this error:Method MetaHelper::render does not existHow else can I do this?Thanks!!
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment