
Wave is a lightweight web development framework that implements a loose Model-View-Controller architecture. The framework was written by Austin Bales at 417east Models are powered by Luke Baker's ActiveRecord for PHP.
You're running: =S_WAVE_VER?>, "=S_WAVE_CODENAME?>"
Documentation for: 0.1,1/2 "WagonGap". This is pre-release software.
Warning, the current version of this software is 0.2,0 "BuckPrivate", some information may not have been updated.
To get started with developing or deploying your WAVE application, you need to get a few things in order:
short_open_tags support to use 417east-provided
templates and views.If you'd like to
used your block instead of a
.htaccess file, you'll have to customise it yourself. The
.htacess file is well-documented.
While you can certainly develop
applications and sites that run on a range of browsers,
the HTML helper creates elements only in
XHTML-compliant syntax. Additionally, the helpers were designed
with the availability of
display:inline-block in mind, although your CSS is
naturally up to you.
Using wave is actually pretty easy. We'll go through some basic configuration, and then get to work.
config/database.inc.php in
TextMate or an inferior editor. You'll need to provide your MySQL
hostname, username, and password. You'll also add table names you want
ActiveRecord to scan.config/application.inc.php,
where your constants are defined. You must define your FQDN and your
top-most URL fragment. In PHP 5.3, you can define constants with the
const keyword — how nice!
S_ACTION_RUNNER to True so that you can use
runner.php to generate_models.views/welcome.php, this is your
default view. For a completely static view, you can simply call
$this->present() and your views/welcome.html
file will be loaded. Consult the doc blocks for help with the
HTML helper and the templating system.Inside the framework/application, you'll find many folders and files. The functions inside are documented, and won't be extensively covered here.
S_ACTION_RUNNER is set to
True, this lets you access the database console.root.Message::send('Account
created', 'success') and Message::view()HTML::template(); insteadrunner.phpHTML helper.
pentagon($levels) method is used for access control and
requires a user/login system.Extend this class for
functionality..php
and .html files go here.HTML::render_fragment($name).