HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/test.creativefellows.nl/geomil/classes/GeomilController.php
<?php


	class GeomilController extends CassetteController{
	
		function __construct($db_connection,$router=null,$view=null,$settings=null)
		{
			
			$this->db 					= $db_connection;
			$this->router				= $router;
			$this->view 				= $view;
			$this->settings				= $settings;	
			
			$this->client_settings 		= $this->getClientSettings();
					
			$this->config				= new BaseController($this->settings,$this->client_settings);	
			
						
		}
		
		private function getClientSettings()
		{
			
			$sql 		= "SELECT * FROM `instellingen` WHERE `id`='1'";
			$sth 		= $this->db->prepare($sql);
			$settings 	= $sth->execute();
				
			if($settings) return $sth->fetch();
			
		}
		
		public function getResource($request, $response, $args)
		{
			
			//die("here");
			// get url parameters		
			$this->get_uid			= isset($args["uid"]) ? $args["uid"] : 0;			
									
			// get page contents
			$data = $this->getEntryById($this->get_uid);
			
			// return the page
			return $this->view->render($response, "view.orbit.php", [
				"resource" => $data
			]);
			
		}
		
	}
?>