helpers/loader.php
loader.php is the file where to place ALL your requirements. When I started to develop Cook I had no idea it was possible to do this.
Loading all your component does not mean loading in memory. You can try to check your memory and you will see ...
(Note : CkJLoader replace JLoader for cross compatibility)
It only register the path where to find the class. JLoader receive the Class name and path in parameters.
Then if you want to load physically in memory :
CkJLoader::load('Class name')
So in your example you can also try this possibility to optimize the performances.
CkJLoader::register('JteammanagerClassView', JPATH_ADMIN_JTEAMMANAGER .DS.'classes' .DS.'view'.DS. 'view.php', true);
If if does not work, try to load it in memory :
CkJLoader::register('JteammanagerClassView');
All this is loaded from MY memory
. Maybe syntax error.
Hope it helps.
I cannot help you more for the moment because I have a lot of others issues to fix.