Johan Broddfelt

Posts

59 posts found (Follow using RSS)

Generating code

Automatically generate code and save to a file on the disc so that you can modify the code later. This speed up the time for development.
PHP Framework (framework, php, generic, software)

One list to rule them all

In this post I show how I create a generic list generator that can list rows from any table in the database.
PHP Framework (framework, php, generic, software)

List the items

Now when we got some data in our table we would like to display the data in a list. Here is how we do that.
PHP Framework (framework, php, database, software)

Fetch a specific post

Now that we have a connection to our database, we would like to fetch a post from a table. Here I show you how it is done the easy way and how to create one function that can do this for any class without having to write all the code again and again. This will save you a ton of time later on.
PHP Framework (framework, php, generic, software)

Connect to a database

When managing data it is very useful to work with a database. This is also what we are going to do here to manage out posts.
PHP Framework (framework, php, database, software)

How to use classes

Now it is time to implement your first class. It is a simple one with only one function.
PHP Framework (framework, php, classes, software)

Adding content

Managing and adding pages to a framework is an important task. To start out easy we are going to keep the content in files. Later we will move the content to the database. Here is how we do it.
PHP Framework (framework, php, software)

Style your page

This is the basic stylesheet for our draft template. We will extend upon this css as we go along.
PHP Framework (framework, css, software)

Main_template.php and html

Here is how to create a simple template
PHP Framework (framework, php, software)

Start at the index

The index.php is where everything starts. So it makes sense to start exploring PHP right here.
PHP Framework (framework, php, software)

Building your own framework

Do you want to learn to code your own website from scratch using php. Join me in this exploration of how much you can create with just a few lines of code.
PHP Framework (framework, php, software)
<< 1 2 3 4 5