newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

quick addon for includePath troubleshooting #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

I move the includes directory to another location to keep the directory
structure of my project and to help me figure out why things were not
working(paths to jquery etc)  I added $this->phpincludePath to the error
message.

Specifically on like 1083 of the main class.

if(empty($this->phpIncludesPath) || !is_dir($this->phpIncludesPath))
            $str .= "\n\t" . '<script
type="text/javascript">alert("php-form-builder-class Configuration Error:
Invalid includes Directory Path\n\nUse the includesPath form attribute to
identify the location of the inclues directory included within the
php-form-builder-class folder.\n\n' .$this->includesPath .'");</script>';

This helped me see what path the class was actually seeing, vs what I
intended it to truly be.

This this small addition I was able to move the includes directory
structure to pretty much any place I wanted.

Great work on the form builder class I intend to use it from here forward.

Original issue reported on code.google.com by tpetr...@gmail.com on 5 May 2010 at 2:29

GoogleCodeExporter commented 8 years ago
Thanks for your suggestion and kind words.

Original comment by ajporterfield@gmail.com on 5 May 2010 at 3:11

GoogleCodeExporter commented 8 years ago
Hi tpetrone,

I have commit this change to SVN,

            $str .= "\n\t" . '<script type="text/javascript">alert("php-form-builder-class
Configuration Error: Invalid includes Directory Path\n\nUse the includesPath 
form
attribute to identify the location of the inclues directory included within the
php-form-builder-class folder.\n\nPath specified:\n' . $this->includesPath .
'\n\nEXTRA INFORMATION:\nPHP Path Used:\n' . $this->phpIncludesPath . 
'\n\nJavascript
Path Used:\n' . $this->jsIncludesPath . '");</script>';

That should make it much more clear what is going on!

Thanks!

Original comment by moncojhr@gmail.com on 7 May 2010 at 6:37