Just a small correction. - Joomla! Forum - community, help and support
i think found error, let me expose it: example plugin :
class plgcontentjoomla extends jplugin
{
/**
* example after save content method
* article passed reference, after save, no changes saved.
* method called right after content saved
*
* @param string the context of content passed plugin (added in 1.6)
* @param object a jtablecontent object
* @param bool if content created
* @since 1.6
*/
public function oncontentaftersave($context, &$article, $isnew)
{
has still &$article parameter reference. in joomla 3 value parameter think
class plgcontentjoomla extends jplugin
{
/**
* example after save content method
* article passed reference, after save, no changes saved.
* method called right after content saved
*
* @param string the context of content passed plugin (added in 1.6)
* @param object a jtablecontent object
* @param bool if content created
* @since 1.6
*/
public function oncontentaftersave($context, &$article, $isnew)
{
has still &$article parameter reference. in joomla 3 value parameter think
Comments
Post a Comment