Hello,
I have a form that saves data to multiple tables. Everything was working fine until recently (actually I'm not sure when it stopped working).
I have this code on Sumbit (after):
It looks like $cf_just_registered no longer works? and $MyPlugins is also coming up empty. It has been awhile since I worked on this form - so maybe something changed?
Any ideas??
I have a form that saves data to multiple tables. Everything was working fine until recently (actually I'm not sure when it stopped working).
I have this code on Sumbit (after):
<?php
JRequest::setVar('name', JRequest::getVar("first_name")." ".JRequest::getVar("last_name"));
?>
<?php
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
global $cf_just_registered;
echo '<div class="key_page">';
$smuser = $MyPlugins->cf_joomla_registration['user']->id;
$strLogin = $MyPlugins->cf_joomla_registration['user']->username;
$name = $MyPlugins->cf_joomla_registration['user']->name;
...
It looks like $cf_just_registered no longer works? and $MyPlugins is also coming up empty. It has been awhile since I worked on this form - so maybe something changed?
Any ideas??
OK, so I dug through some old post and found that $cf_just_registered is indeed no longer used. So I added a bit more degugging code:
This turned up:
Nice that there were no errors but not nice that everything else was empty too?
<?php
$MyPlugins =& CFPlugins::getInstance($MyForm->formrow->id);
echo "<pre>";
print_r($MyForm);
echo "</pre>";
echo "MYPLUGINS INFO:";
echo "<pre>";
print_r($MyPlugins);
echo "</pre>";
?>
This turned up:
MYPLUGINS INFO:
CFPlugins Object
(
[thisformid] => 16
[_errors] => Array
(
)
[cf_cb_registration] => Array
(
[errors] =>
[user] =>
[complete] =>
)
[cf_joomla_registration] => Array
(
[errors] =>
[user] =>
[complete] =>
)
)
Nice that there were no errors but not nice that everything else was empty too?
This topic is locked and no more replies can be posted.