Skip to content
g105b edited this page Jan 28, 2013 · 22 revisions

Hello, World!

This tutorial shows how to set up a new PHP.Gt application and introduces the concept of a PageView, by displaying a static HTML page containing the traditional "Hello, World!" message.

View the Hello, World! tutorial

Hello, You!

This tutorial will introduce the concept of PageCode, the code is executed in context of individual pages. We will expand the Hello, World! application made in the first tutorial and add a form which takes your name, replacing the greeting with what was typed into the form.

View the Hello, You! tutorial

Content Management

In this tutorial, you will be introduced to the concept of a PageTool by building a static page, adding dummy content into the HTML and then transform it into a database-driven page. This workflow is very useful for when web designers don't code - it shows how easily a static design can be made into a live page.

As a bonus section, there is an extended tutorial showing how to use JavaScript to create an in-page content management system.

View the Content Management tutorial

Building a blog

This tutorial introduces the concept of template elements within your PageViews by treating certain HTML elements as templates, outputting them with injected content. Also, you will learn how to use DOM manipulation techniques to correctly modify the outputted content in your pages.

View the Blog tutorial

Database tables

In this tutorial, the concepts of the database API and auto-deployment will be explained. Database tables will be designed using MySQL workbench, and an application called "Bookface" will be created which allows images to be uploaded and anonymously rated. You will also be introduced to the User PageTool to anonymously track visitors.

View the Database tables tutorial

Authentication

In this tutorial, the previous content management tutorial will be expanded by adding user authentication so that only logged in users can edit the content. You will learn how to authenticate users using OAuth, using Google Accounts as the provider.

View the Authentication tutorial

Caching and HTTP

In this tutorial, the Http class will be used to connect to the Vimeo API, retrieving information about videos and embedding videos on the page. The results of querying the API will be cached for optimisation.

View the Caching and HTTP tutorial

Unit testing

In this tutorial, the concept of unit testing your applications will be explained, and you will learn how they are used to automatically deploy your application to the cloud.

View the Unit Testing tutorial

Starting out with PHP.Gt Cloud

This tutorial introduces the PHP.Gt Cloud control panel which can be used to host your code repositories and serve your applications to the internet.

Automatically deploying applications

This tutorial shows how unit tests and Git tags can be used to push new versions of code to live webservers through the PHP.Gt Cloud control panel, and how you can revert changes on servers, and migrate between database versions.

Clone this wiki locally