Anax comment module.
This is a comment module for the Anax framework. This README.md assumes you have a decent knowledge of the Anax-framework.
Well, maybe you are a front-end developer who's building an anax app and can't really bother with the backend stuff. Well this is prebuilt for you, so you can style the default views and use data from modules to create new ideas and pages with the data.
We've added some jquery in the views, so you can get some Ajax in the questions views, but it's optional to use.
- Login System (users,admins)
- Questions and Answers System.
- Comment System
- Prebuilt HTMLForms
Let's get started. You can use composer to install the package, then we will integrate the module with your Anax.
composer require nicklas/comment
- Copy the
config/route/commentcatalog and paste it in your own Anax installation.
- Copy code in the
config/route.phpand paste it in your own
Copy everything that lies in the
config/di.php and paste it in your own DI-container. Also
make sure that you add any dependency that you might not added already.
Also don't be surprised that we're adding a
renderpage class, since this module
uses it's own renderpage functions, therefore we need to add them in our DI.
Use the SQL-code in the
src/Comment/sql/setup.sql to setup your database.
You'll need a
config/database.php file. In other words, you'll need a normal setup for
anax\database. If you already have a file, then you can use that one.
/views you'll find the views for the module. You can copy them and paste it in
own Anax installation. Then you can style them for your own website.
I recommend that you copy the
src/page into your own and that to the
in your DI, so you have better control of this part.
You can use
use class() if you want to make your own Pagerenders with the modules.
This software carries a MIT license.
. ..: Copyright (c) 2017 Nicklas Envall (Nicklas766@live.se)