[Qgis-developer] PHP search web client

Milos Milos milosgis86 at gmail.com
Sun Feb 22 07:32:02 PST 2015


Hi. I am newbie with qgis web client.I installed it on Ubuntu.
I am trying to enable php serach. This is steps what I do:
*****************************************************************************
1. In GlobalOptions.js I put this:

var project_map = *Ext.urlDecode(window.location.search.substring(1)).map;
  var searchBoxQueryURL = '../php/search.php?map=' + project_map;
  var searchBoxGetGeomURL = '../php/search_geom.php?map=' + project_map;*


2. In /php/config.php file I put this:

  *#define('MAP_PATH_REWRITE', '/var/www/webclient/projects/ProjectParcel');
  // Append .qgs to the map name
  #define('MAP_PATH_APPEND_QGS', true);*



*  $searchlayers_config = array(
         'Parcel' => array(              'search_column' => 'number'
      )
  );*
  *  define('DEFAULT_SEARCH_LAYERS', 'Parcel');
  define('SEARCH_LIMIT', 100);*


*****************************************************

Now when I try to search I get the following in browser inspect:

xt-all-debug-w-comments.js:39775 GET
http://localhost/parcels/webclient/php/search.php?map=/var/www/webclient/projects/ProjectParcel.qgs&searchtables=&query=75&cb=stcCallback1001


Where I am made mistake?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150222/e727e13d/attachment-0001.html>


More information about the Qgis-developer mailing list