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

[jfw] Question on FOF container



Hello
need help on fof3 container.
This is the code of my view:

<?php
/**
 * @var \FOF30\View\DataView\Form $this
 * @var \Nglibrary\Site\Model\Profile $member
 * @TODO executer la recherche et le nbre de page sans quitter le layout
 */
 setlocale (LC_TIME, 'fr_FR.utf8','fra');
$params = JFactory::getApplication()->getParams();
$member = $this->getModel();
$family = $member->getFamilyMembers();
?>
<div id="nglibrary">
    <div id="profile" class="borrowings">
    <a href="" class="btn btn-default"><i class="icon icon-arrow-left"></i> <?php echo JText::_('BACK'); ?></a>
        <h2><?php echo $member->lastname; ?> <small><?php echo $member->firstname; ?></small></h2>
        <div>
<?php
$config = [
    'view'           => 'Copies',
    'layout'         => 'profile',
    'task'           => 'browse',
    'limit'          => '0',
    'borrower'       => $family,
    'render_toolbar' => false
];

FOF30\Container\Container::getInstance('com_nglibrary', [
    'tempInstance' => true,
    'input' => $config
])->dispatcher->dispatch();
?>
            </div>
        </div>
        <div id="borrowings" class="borrowings">
            <div>
<?php

$config = [
    'view'                => 'Borrowings',
    'filter_order'           => 'borrow_from',
    /**    'limit'=> '7',
    'limitstart'=> '5',**/
    'filter_order_Dir'      => 'DESC',
    'layout'              => 'profile',
    'task'                => 'browse',
    'nglibrary_member_id' => $member->getId(),
    'render_toolbar'      => false
];

FOF30\Container\Container::getInstance('com_nglibrary', [
    'tempInstance' => true,
    'input' => $config
])->dispatcher->dispatch();

?>
            </div>
        </div>
</div>
 and this is my profile.xml

<?xml version="1.0" encoding="utf-8"?>
<form
    type="browse"
    show_header="0"
    show_filters="1"
    show_pagination="1"
    norows_placeholder="COM_NGLIBRARY_COMMON_NORECORDS"
>
    <headerset>
        <header name="title" type="Searchable" sortable="false" />
        <header name="authors" type="Field" sortable="false" />
        <header name="library" type="Field" sortable="false" />
        <header name="borrow_from" type="Field" sortable="false" />
        <header name="borrow_to" type="Field" sortable="false" />
    </headerset>
    <fieldset name="items">
        <field name="title" type="Text" />
        <field name="author" type="Text" />
        <field name="library" type="Text"/>
        <field name="borrow_from" format="%d %m %Y" type="Calendar"/>
        <field name="borrow_to" format="%d %m %Y" type="Calendar"/>
    </fieldset>
</form>

can somebody tel me why when i am clicking on filter or make a searchable title, the DNS of my page is reset to the index.php ?

--
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.