Get content of Container FOF

79 views
Skip to first unread message

Mickael Nappee

unread,
Feb 27, 2019, 11:23:34 AM2/27/19
to Joomla! Framework Development
Hi,
somebody can tel me how to recover content of container in module of Joomla ?
that is my helper.php
class ModAffinesearchHelper {
   
   
public static function getAffines($params){
        $config
= [
               
'view'              => 'Books',
               
'tmpl'              => 'component',
               
'task'              => 'browse',
               
'layout'            => 'default',
               
//'counter'            => $itemCount,
           
//    ''.$params.''         => JRequest::getVar($item),
               
'render_toolbar'    => false
       
];        
        FOF30
\Container\Container::getInstance('com_nglibrary', [
               
'tempInstance' => true,
               
'input' => $config
       
])->dispatcher->dispatch();

   
}
   
}

that is my default.php
Saisissez le cod            $app = JFactory::getApplication();
           
ModAffinesearchHelper::getAffines($params);
            $docs
= array('genre' => $app->get('genre'),'public' => $app->get('public'),'support' =>$app->get('support'));e ici...

thank you for the help

WHITE Hi

unread,
Nov 17, 2019, 4:31:46 AM11/17/19
to Joomla! Framework Development


среда, 27 февраля 2019 г., 19:23:34 UTC+3 пользователь Mickael Nappee написал:
Reply all
Reply to author
Forward
0 new messages