function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Reppin__505Reppin__505 

Visual Force Site Page Injected using PHP into HTML Page - Controller Problem

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://my_public_visualforce_page.com");
curl_setopt($ch, CURLOPT_HEADER, 0);

curl_exec($ch);

curl_close($ch);
?>

 

Hello, I have used this for including a visual force page into an existing external web page. However the controller functions relating to the visual force page are not working.  

 

If i include the same visual force page through an iframe, the controller functions work fine. However when including it using php i cannot use the controller at all. 

 

Pulling a visual force page with a server side script into an existing html page and feeding that vf page into a div with ajax is what i'm doing and i do this for the purpose of styling. 

 

Is there something that i'm missing? Some reason why the controller is not getting fed in with the vf page into the html page? Any advice would be greatly appreciated.

 

Ryan-GuestRyan-Guest

You'll also have to pull down all the associated javascript files and rewrite all of the relative links.

 

Why don't you just use an iframe or link to the page directly?