// jimport( 'joomla.user.authentication'); // comment out after joomla4 migration
echo "DEBUG: inside " . __FILE__ . " line " . __LINE__ ;
// get the database information
//////////////////////////////////////////$appvars = JFactory::getApplication(); // connect will use this // comment out after joomla4 migration
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . " set appvars";
$appvars = Factory::getApplication(); // connect will use this
// now get user object and 3 example user variables
//////////////$user = JFactory::getUser(); // comment out after joomla4 migration
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . " set user";
$user = Factory::getUser();
echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ ;
<?php
// teamforms.php
/// must be before header
include "includes/session.php"; // access joomla login
$ifadmin = ($my->usertype == 'Administrator' || $my->usertype == 'Super Administrator' );
/// init variables ///
$script_version = $parent_version = "021f4-008g1" ; // 20240204
$script_name = basename(__FILE__);
ClassNotFoundError
|
---|
Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "Factory" from namespace "Joomla\CMS". Did you forget a "use" statement for another namespace? at /home/usbf/public_html/apps/includes/session.php:69 at include() (/home/usbf/public_html/apps/teamforms.php:5) |