?> <h2><?php echo JText::_('COM_TESTER'); ?> </h2> <pre> <?php var_dump($_GET); //echo $_POST['name']; include_once "myviewer.php"; include_once JPATH_BASE . "/standalones/jaycer/jobseeker.php"; $jobseeker = new Jobseeker($_POST); //echo $jobseeker->user_id; //$user = JFactory::getUser(); if (isset($_POST['name'])) { $jobseeker->create($_POST); JFactory::getApplication()->redirect("http://jobsglobal.dev/index.php/component/tester/"); return false; } elseif (isset($_POST['search'])) { $filter = "`idjobseeker`={$_POST['keyword']}"; $search = new Viewer($filter); $search->view_profile($filter); } elseif (isset($_POST['find'])) { $filter = "`{$_POST['field']}`='{$_POST['keyword']}'"; $viewer = new Viewer($filter); $viewer->view_profile($filter); } ?>
function regjobseeker($_post) { $user = JFactory::getUser(); $profile = new Jobseeker($user->id); return $profile->create($_post); }