1. Go to this page and download the library: Download carlesjove/a library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// data/posts.php
// The array must be named $list
$list = array(
'first-post' => array(
'title' => 'My first post',
'body' => 'A very long post'
),
'second-post' => array(
'title' => 'My second post',
'body' => 'A very long post'
)
);
// posts_[id].php
// We get the post data in $item
<h1> echo $item['title'];
<!-- Make sure current language will be on the navigation links or in lists' links, using nav() -->
<a href=" echo $this->nav('my-page');
$this->content();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.