I added your lines and got this ...
Parse error: syntax error, unexpected T_IF in /home/content/48/7895848/html/core/cache/includes/elements/modsnippet/47.include.cache.php on line 27
By the way, I simply added ... this ...
$dataobject->set('fullname', 'ZZZZZZ ZZZZZ ZZZZZ');
$dataobject->save();
Over the line with this ...
$allFormFields = $hook->getValues();
Don’t know if my DB is the problem ... but just as a way of letting you see how the table looks is the following SQL statement (maybe i’ve done something really dumb down there
just lemme know)
CREATE TABLE `vw_ah_pos_postings` (
`ind` int(10) unsigned NOT NULL auto_increment,
`id` int(10) unsigned NOT NULL,
`department` varchar(255) character set latin1 NOT NULL,
`duration` int(10) unsigned NOT NULL,
`renumeration` int(1) unsigned NOT NULL,
`apply-method` int(1) unsigned NOT NULL,
`interns` int(100) NOT NULL,
`date` varchar(10) character set latin1 NOT NULL,
PRIMARY KEY (`ind`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
And ... just so you know, I copied the snippet code from the first comment on this post, as is. Lemme know if there’s any other info that might help in debuggin ... + the table is already created + the schema/component folder files.