redcoder
redcoder

Reputation: 2333

access components values using Joomla 1.5 plugin onAfterRender

can I access Component value from Plugin onAfterRender ? If yes , how do I do it ? I am using Joomla 1.5.

Upvotes: 1

Views: 426

Answers (1)

h_45h
h_45h

Reputation: 169

$this->assign('name', 'John');

This line just passes the string 'John' from the view to the layout, it has nothing to do with any plugin. If you work onnAfterRender and want to get certain info from the page about to be displayed, you could try search for it through the renderd content, ehich can be accessed using

JResponse::getBody();

if you want to replace some info on the page, do that and, at the end of the plugin, "rewrite" the page

JResponse::setBody($yourData);

Upvotes: 1

Related Questions