I want to use a single application generated by PHPRunner so that the records displayed in a table depend on the parameters that the project start page receives.
Example:
This common application contains the "" condition.
To call the application I created a previous page named "[font="Courier New"]index.php" .
This page starts a session with " the parameters passed in the URL:
[font="Courier New"]index.php?desde=2&hasta=3
<?php
// Enable sessions
session_start();
$_SESSION['grupo_desde'] = $_GET['desde'];
$_SESSION['grupo_hasta'] = $_GET['hasta'];
// Go to List Page
header("Location: output/documentos_list.php");
?>
Inside event I modify the table's where clause:
$desde=$_SESSION['grupo_desde'];
$hasta=$_SESSION['grupo_hasta'];
$query->addWhere(" grupo between '".$desde."' and '".$hasta."' ");
This does not work, since when arriving at the code of this event the initial session no longer exists, but only the initiated in [font="Courier New"]dbcommon.php.
Any idea how to pass parameters from outside of a PHPRunner generated page and that another one inside pick them up and use them?
Thank you.