Can anybody point me in the good direction?
I'm trying to access to a table/model of my cook component from com_users, is it possible?
I search the web but with no luck
The reason why is because I need to when a user (joomla user) logs in tho the system go to a table compoment and read data...
com_users/controller/user.php
// Perform the log in.
if (true === $app->login($credentials, $options)) {
// Success
$app->setUserState('users.login.form.data', array());
$app->redirect(JRoute::_($app->getUserState('users.login.form.return'), false));
} else {
// Login failed !
$data['remember'] = (int)$options['remember'];
$app->setUserState('users.login.form.data', $data);
$app->redirect(JRoute::_('index.php?option=com_users&view=login', false));
}
in the coded above, when success check for som data in a table and then redirect to the cook component.
I think the redirect issue is covered , but how to get the data from a table component is my problem-.
thanks in advance