i installed the plugin and cannot find anything that tells me how it works and how to use it.
i have the icon in place and an empty onClick event
in homeSuccess.php:
<input class='submit_img' type="image" src="/images/rainbow/feed-icon-14x14.png" value="Feed" alt="Feed" onClick="gotoFeed(this.value,<?php echo $usr_profile->getId();?>)">
gotoFeed JS in homeSuccess.php:
function gotoFeed(id)
{
console.log("testing");
//must redirect to feeds page??
}
in the actions class:
public function executeFeed(sfWebRequest $request)
{
$profile_id = $this->getUser()->getAttribute('profile_id','zero');
}
can anybody help please?
thanks
You can find the complete tutorial at this link sfFeed2Plugin, just clicking the tab Readme
UPDATE
I’m using this plugin with an action like this in my action class:
and this code inside the template
feedRssSuccess.php:Finally simply I have a link to this action in my layout through a template, but of course in a pageSuccess.php is the same.
I hope this can help you.