Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The search is starting from a form. Now you have two cases.</p> <p>If you are invoking your view directly from the form, simply change the form method to GET (instead of the default POST) so your form will look like </p> <pre><code>&lt;form method="GET" .... </code></pre> <p>If you however are invoking a controller, and in turn the controller redirects to the form, you might need to change some logic. In this latter case, it doesn't matter if you use POST or GET invoking the controller; but the controller must not set the user state variables, instead add the parameters to the URL you are redirecting to </p> <pre><code>setRedirect(JRoute::_("index.php?option=com_something&amp;view=results&amp;param1=SOMETHING etc. </code></pre> <p>A final alternative after your comment: to only include some fields in the URL, assuming you are pointing directly to the view:</p> <pre><code>&lt;form method="POST" action="&lt;?php echo JRoute::_("index.php?option=com_yourcomponent&amp;view=yourview&amp;explicit_param_1=something&amp;explicit_param_2=somethingelse &lt;input type="hidden" ... </code></pre> <p>but this poses more problems as the page should be able to function both with and without the extra params, which won't be present if the user shares the url. You might be better off handling this in a (sub)controller without a redirect (just instantiate the view and its display method in the controller function being invoked).</p> <p>Remember you can have the syntax task=subcontroller.task to shorten your url.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload