The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ah! Any time you include() or require() files you need to use server paths, not URLs. If you can't figure out the right absolute path (I've been there!) try a relative one instead - but make sure its relative from the CALLING page, not the file containing the class. If you're calling that class from multiple pages, you'll need to doctor the class like so:

PHP Code:
class CandidatesRegistrationController extends Controller {
    public function 
on_start() {
$curr_folder dirname(__FILE__);
$fields ft_api_init_form_page("""test");
$params = array(
"submit_button" => "submit",
"next_page" => "/success.php",
"form_data" => $_POST,
"finalize" => true

But you'll need to update the relative path in the require_once() call for your setup. What that new code does is always compute the relative path to the api.php file from the file containing the class - not the original file that includes the class file.

Jeez that sounds confusing. Paths are always a nuisance to figure out... maybe the absolute path is the simplest!

- Ben

Messages In This Thread
Help? - by stevenheidel - May 8th, 2009, 9:38 PM
RE: Help? - by Ben - May 9th, 2009, 12:57 PM
RE: Help? - by stevenheidel - May 9th, 2009, 1:26 PM
RE: Help? - by Ben - May 9th, 2009, 1:44 PM
RE: Help? - by stevenheidel - May 9th, 2009, 2:39 PM
Solved...ish - by stevenheidel - May 13th, 2009, 7:22 PM
RE: Help? - by Ben - May 13th, 2009, 8:23 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)