Menu icon Foundation
Yeti and index.php

When using Yeti, created a basic template project and when I change the index.html to index.php, it doesn't recognize the .php extension. Why is that?

index fileyeti.php

When using Yeti, created a basic template project and when I change the index.html to index.php, it doesn't recognize the .php extension. Why is that?

Dayo over 3 years ago

That is because the gulpfile is set up only to watch for, and process, ".html" files.

You can either leave it as ".html" and change it to ".php" in the dist folder after it is built or edit the gulpfile to include ".php".

I think you will need to make changes at the following lines in the gulpfile:

Line 74: From "gulp.src('src/pages/**/*.{html,hbs,handlebars}')" to "gulp.src('src/pages/**/*.{php, html,hbs,handlebars}')"

Line 102: From "html: ['src/**/*.html']," to "html: ['src/**/*.php', 'src/**/*.html'],"

Line 169: From "gulp.watch(['src/pages/**/*.html'], ['pages', browser.reload]);" to "gulp.watch(['src/pages/**/*.php', 'src/pages/**/*.html'], ['pages', browser.reload]);"