Tutorials

The tutorials show how to use different parts of Artaengine for developing. If you are new to Artaengine please read the tutorials and try the examples before seeing the API.

Getting started

Creating an Artaengine application from scratch using Artaengine is explained in this tutorial.

Starting from downloading required libraries, creating folders and files, config up configuration files to finishing by building a hello world.

After finishing this tutorial you will be able to create a working empty project.

Download example

URL mapping/dispatch

This tutorial explains how to map URLs to handlers which are called factories. Factories are PHP classes or functions that application logics which response to requests are written there. Special events and putting permissions on URLs, classes and factories will be explained.

After finishing this tutorial you can map URLs (requests) to handlers and start to create simple applications. You will understand how Artaengine dispatches requests to handlers.

Download example

Basics

This tutorial explains things like data types in Artaengine and debugging.

Download example

Request and Response

Artaengine provides Request and Response classes, Request is a wrapper around some PHP predefined arrays and Request contains methods for outputting data to the front-end in different formats such as templates, JSON, file contents...

Download example

Working with database

This tutorial shows how to connect to relational databases and execute commands and query data using Artaengine database abstract and advanced classes.

Download example

Data modeling - principle

This tutorial is about the principle of Artaengine data modeling. What it is, what benefits it brings, how to use it and an idea about how Artaengine deals with models.

Data modeling - creating models

This tutorial shows how to create basic data models. Model properties are explained completely.

After finishing this tutorial you will know how to make model classes and define data and non data properties.

Download example

Data modeling - using models

This tutorial shows how to basically use models. Subjects such as adding/updating/deleting/querying/fetching data, special event methods, mid-wares, binding and validating data will be explained.

After finishing this tutorial you will be a master of Artaengine data modeling.

Download example

Models - input form

This tutorial explains the Form class. Class Form lets rendering HTML add/update forms from model objects then putting posted form data into the model object to be added or updated.

Download example

Models - search form

This tutorial explains the FormSearch class. Class FormSearch lets rendering HTML search forms from model objects then using the posted form data pack to query model data.

Download example

Models - tables

This tutorial explains class Table. This class can render highly flexible and customizable HTML tabled from model data. A full working sortable table can be rendered using this class with only five or six lines of PHP, few CSS and JavaScript.

Download example

Paging

Class Paging helps creating raw or rendered(HTML) paging links for data sources which are sliced into pages. This tutorial will show how to use Paging beside database queries and with models.

Download example

Widgets

This tutorial describes widget implantation. By understanding how widgets are implemented in Artaengine you can create widget classes which can be used by Form and FormSearch classes. The default Artaengine Widget class which is used by the form generator classes is described in this tutorial. Widget generators can be used both manually or by form generators.

Download example

Uploading files

This tutorial shows how to upload files to server with Artaengine Upload class.

Download example

Editing images

This tutorial is about the Artaengine PhotoEdit class which uses the PHP GD extension to provide few basic photo editing actions such as resize, crop, watermark and changing image format.

Download example

arta.js

This tutorial shows how to use arta.js which is based on the jQuery library and includes tools and functions to integrate the front and back ends of an Artaengine based applications.

Artaengine project administrator

This tutorial describes the usability of Artaengine project administrator. This is a tool for creating and managing Artaengine projects. You can create the structure, config files, model files and some empty factory files with this tool via a gui in just few minutes and get an empty project.

Web server

This tutorial describes server configs required to run an Artaengine application.

TOP