Skip to content

Screencast code, script and Twiggy goodness for "Twig Templating for Friendly Frontend Devs"

Notifications You must be signed in to change notification settings

cactus-blossom-it-services-limited/twig-knp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twig for Frontend Friends!

Well hallo there! Inside this archive, you'll find 3 things:

  1. start - This is the start version of the code that's used in this screencast.

  2. finish - This is the finished version of the code that we build in this screencast. For more details on how to run the code, see the README.txt file in that directory.

  3. stubs - This directory contains a few files that we will use while building our project. For more details, see the README.txt file in that directory

And as always, thanks so much for your support and letting us do what we love!

<3 Your friends at KnpUniversity

How do I run the Project

Oh, so you want to code locally? Awesome! Let's assume you want to get the start code working locally:

  1. Download the code (since you're reading this, done!). You can download it anywhere on your system.

  2. Open up a terminal, and move into the start directory. For example, maybe on OSX, you might need to say:

cd ~/Downloads/knpuniversity-twig-xxxx/start
  1. Use PHP's built-in web server to run our app. So, run this from the terminal:
php -S localhost:8000
  1. Put http://localhost:8000/test.php in your browser. You should see the app!

Soon (in the first chapter), we'll make some changes, and you'll eventually change your URL to go to just http://localhost:8000.

Folder Structure (AF)

  • ~/My_Symfony/SymfonyCasts/April-2024/Twig/This Repository
  • Delete any .git directory in the root of the start directory
  • This is to prevent nested git repos. The 'top-level' repository will comply with sub-folder .gitignore files
  • So, in this case there is no need for sub-repositories.

About

Screencast code, script and Twiggy goodness for "Twig Templating for Friendly Frontend Devs"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.2%
  • Twig 7.6%
  • CSS 0.2%