Jump to content

Help for the simple web site tutorial


ARG
 Share

Recommended Posts

Hello, I am completely new at PW, (and Php) coming from another CMS.  I decided to try to understand the beast, before crafting anything.
So, I started  from the beginning: the simple web site tutorial.
I am trying to output the Home page with Head and footer included in. 
Here is my Home page code:

include("./includes/head.inc.php");
echo "<h1>{$page->title}</h1>";
include("./includes/scripts.inc.php");
include("./includes/foot.inc.php");

Here is my  Head.inc.php code:

<?php require_once("./includes/functions.inc.php"); ?>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="<?php echo $pages->get("/site-settings/")->site_meta_description; ?>">
<title><?php echo $pages->get("/site-settings/")->site_meta_description;?></title>
<link rel="stylesheet" href="<?php echo $config->urls->templates?>css/simplegrid.css" />
<link rel="stylesheet" href="<?php echo $config->urls->templates?>css/site.css" />
</head>
<body>

And this the message I got, when I try to view my page:
Compile Error: require_once(): Failed opening required 'C:/wamp64/www/processwire-master/site/templates/includes/includes/functions.inc.php' (include_path='.;C:\php\pear') (line 1 of C:\wamp64\www\processwire-master\site\assets\cache\FileCompiler\site\templates\includes\head.inc.php)

Any advice would be helpful :-)
Thank you for your time.
 

Edited by kongondo
code blocks
Link to comment
Share on other sites

24 minutes ago, ARG said:

Failed opening required 'C:/wamp64/www/processwire-master/site/templates/includes/includes/functions.inc.php'

Is that path correct?

If you have only one includes directory change require_once("./includes/functions.inc.php");  to require_once("./functions.inc.php");

  • Like 1
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
 Share

×
×
  • Create New...