Getting Error

3 months 3 weeks ago #334764 by Proteon
Getting Error was created by Proteon
The following code is giving "CBAuthentication not found" error. I am using it in the controller of my own component. How can I make it work? Please help.

global $_CB_framework, $mainframe;

if ( defined( 'JPATH_ADMINISTRATOR' ) ) {
if ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}

include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
} else {
if ( ! file_exists( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' ) ) {
echo 'CB not installed!';
return;
}

include_once( $mainframe->getCfg( 'absolute_path' ) . '/administrator/components/com_comprofiler/plugin.foundation.php' );
}

cbimport( 'cb.authentication' );

$cbAuthenticate = new CBAuthentication();

Please Log in to join the conversation.

3 months 3 weeks ago #334765 by Proteon
Replied by Proteon on topic Getting Error
Nevermind. There was a typo and I fixed it.
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.821 seconds