× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

JLoader::register/import

pred 9 rokmi 4 mesiacmi #871 od Micha Hobert
JLoader::register/import bolo vytvorené Micha Hobert
Hey there,
I am using Joomla 3.4.x and I want to register or import an class to my view. 
JLoader::import('LookupHelper', JPATH_COMPONENT_ADMINISTRATOR.'/helpers/helfers.php');
class: LookupHelfer
file: helfers.php

I am not using any frontend views, just backend. So what am I doing wrong? I call the function email() in my eventlist.php and before that I do the JLoader import. Anybody?

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 9 rokmi 4 mesiacmi #872 od Victor
Odpoveď od Victor na tému JLoader::register/import
HI Micha,

I'm Victor, Back-end developer of Component Creator. To include a class into the loader, what you would have to is:
JLoader::register('LookupHelper', JPATH_COMPONENT_ADMINISTRATOR.'/helpers/helfers.php');

Back-end developer on Component Creator

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 9 rokmi 4 mesiacmi #874 od Micha Hobert
Odpoveď od Micha Hobert na tému JLoader::register/import
That´s what I also tried, but it´s throwing me the exception "class not found" :/

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 9 rokmi 4 mesiacmi #875 od Victor
Odpoveď od Victor na tému JLoader::register/import
Hi again Micha,

Let's try something else, instead of use JPATH_COMPONENT_ADMINISTRATOR, let's use JPATH_ADMINISTRATOR. '/com_name/helpers/helfers.php

Back-end developer on Component Creator

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

Čas vytvorenia stránky: 0.058 sekúnd
Funguje na Kunena fórum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.