[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfw] Get content of Container FOF



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

--
Framework source code: https://github.com/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
---
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-framework.