Yet Another PHP Framework
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
0.8.48
0.8.49
0.8.50
0.8.51
0.8.52
0.8.53
0.8.54
0.8.56
0.8.57
0.8.58
0.8.59
0.8.60
0.8.61
LICENSE
README.md

README.md

YeAPF

Yet Another PHP Framework
(C) Esteban D.Dortta

Easy steps

  1. Installing and configuring
    Create a folder under your www folder called 'sample'
    Place 'includes' folder inside it
    Place 'configure.php' and 'yeapf.db.ini' from skel/webApp/ inside 'sample' too
    Give enough rights to Apache rwx on 'sample' folder
    Modify yeapf.db.ini
    Invoke 'configure.php'

2) Creating an app
Let's say you has a table called employees (see https://github.com/datacharmer/test_db.git)
Write an 'employees.html' as this:

<html>
  <table>
    #for("select * from employees order by last_name, first_name")
      <tr>
        <td><b>#(last_name)</b> #(first_name)</td>
        <td>#(emp_no)</td>
        <td>#date(birth_date)</td>
        <td>#(gender)</td>
      </tr>
    #next
  </table>
</html>

Now write this little script called 'employees.php'
<?php
  require_once "yeapf.php";
  processFile("employees.html");
?>

Run it.