Monday, March 26, 2012

How can I render a template to grap the html from witihn a helper?

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 exist 
How 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: