Hello, since Felony has been going really good I have decided to make an AAC based on it.
The main goal with this AAC is to make it simple, very very simple for user to edit the layout as wanted.
With that said, I mean that barely no PHP logic will be placed into the pages.
Some example is, this code:
Will pretty much produce this fully working register page
To edit the alerts, just include them where you want them in the layout.php etc
And how the alerts.php looks like:
This functions are Felony based, and can be viewed on our documentation page.
Please post some feedback here, muche macho lovelic <3
The main goal with this AAC is to make it simple, very very simple for user to edit the layout as wanted.
With that said, I mean that barely no PHP logic will be placed into the pages.
Some example is, this code:
PHP:
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
Register
</div>
</div>
<div class="panel-body">
<form action="post_requests/register.php" method="POST">
<h4>Account name</h4>
<input type="text" name="username" class="form-control">
<h4>Password</h4>
<input type="password" name="password" class="form-control">
<h4>Password again</h4>
<input type="password" name="password_again" class="form-control">
<input type="submit" value="Register" class="btn btn-success">
</form>
</div>
</div>
Will pretty much produce this fully working register page
To edit the alerts, just include them where you want them in the layout.php etc
PHP:
include __DIR__.'/pages/alerts.php';
And how the alerts.php looks like:
PHP:
if ($errors->errorHas())
{
echo '<div class="alert alert-danger">';
echo 'Following errors has occured:';
foreach ($errors->errorGet() as $error) {
echo '<li>'.$error;
}
echo '</div>';
}
if ($errors->successHas())
{
echo '<div class="alert alert-success">';
echo $errors->successGet();
echo '</div>';
}
This functions are Felony based, and can be viewed on our documentation page.
Please post some feedback here, muche macho lovelic <3