-
May012016
Blog app: tags
Published May 1, 2016 at 6:05 pm. Tagged as CSSPHP
I've added a tagging system to my blog app: each post can be tagged in multiple categories. Browsing through a list of tagged items is also possible.
-
April292016
Blog app: full text search
Published April 29, 2016 at 6:10 am. Tagged as CSSPHP
I've opted for a separate search page instead of an all present search box. This is my first implementation of a full text search using MySql and the syntax proved to be quite a challange.
-
April282016
Blog app #4: the view
Published April 28, 2016 at 8:08 pm. Tagged as PHPHTML
In a model-view-controller concept, the view is the part that renders the HTML. To make this more flexible, I have built a very simple and fast templating system.
-
April272016
Blog app #3: the model
Published April 27, 2016 at 6:33 pm. Tagged as PHP
In a model-view-controller concept, the model is the part that handles stored data. In my case, I am using PDO to interact with a MySql database.
-
April262016
Blog app #2: the controller
Published April 26, 2016 at 6:57 pm. Tagged as PHP
In a model-view-controller concept, the controller is the part that handles user requests, instructs the model to update or retrieve data. When something has to be displayed, the controller handles the data to the view, which then renders it.
-
April252016
Blog app #1: the basics
Published April 25, 2016 at 8:09 pm. Tagged as PHP
Using the .htacces file to prevent directory listings, redirecting all requests to one .php file and setting expiration dates. Launching the blog app or its admin interface from the index.php file.
-
April242016
My blog app: separation of concerns
Published April 24, 2016 at 2:57 pm. Tagged as General
These are the basic principles of my Blog application: In the browser, clear separation of content, presentation and behaviour. On the server: a basic model-view-controller concept.
-
April202016
Nice dates with PHP revisted
Published April 20, 2016 at 8:34 pm. Tagged as PHP
MySql gives the posted date of the post back in this format: 2016-04-17 20:58:00. To display the date in a more readable format and to display a nice tear-off calender cartouche in lists, I now use the PHP date/time functions instead of string manipulation.
-
April192016
Using SVG for icons
Published April 19, 2016 at 7:48 pm. Tagged as CSSSVG
SVG or Scalable Vector Graphics are supported by all modern browsers and can be used to replace image sprites. I'll explain how to use SVG sprites to render icons and logos by using tags and referring to them using the
-
April172016
Nice dates with PHP
Published April 17, 2016 at 8:58 pm. Tagged as CSSPHP
MySql gives the posted date of the post back in this format: 2016-04-17 20:58:00. I want to display this date in a more human readable format. To emphasize that this is a daily web log, I also want to display a nice tear-off calender cartouche in lists.