Jump to content

Contact Form tutorial


giannisok

Recommended Posts

  • 1 year later...

Hi everybody!

I'm trying to use this form

But I have a issue. In the post giannisok says to put this line in "partials/contact/_controller.php" (I don't use the other option)

require(dirname(__FILE__) . "/../../vendor/vlucas/valitron/src/Valitron/Validator.php");

It doesn't work. I have this message in my contact page instead : 

Quote

Compile Error: require(): Failed opening required '/mnt/d/myWebsite/site/templates/partials/contact/../../vendor/vlucas/valitron/src/Valitron/Validator.php' (include_path='.:/usr/share/php:/usr/share/pear') (line 4 of /mnt/d/myWebsite/site/templates/partials/contact/_controller.php) 

This error is in my development environment. I try to put the file in my ftp. The only difference is :

Quote

(include_path='.:/usr/local/php5.6/lib/php')

I don't think this is the problem, but I'm not sure. 
Can someone help me please? Sorry I'm not good with PHP..

Thanks by advance !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...