Configuring PHP grid