2017 © Pedro Peláez
 

library anax-mvc-content

Module for handling content in Anax-MVC

image

sofa15/anax-mvc-content

Module for handling content in Anax-MVC

  • Sunday, March 13, 2016
  • by sofiafahle
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Content management for Anax-MVC

with unit testing This is a module for Anax-MVC, that adds pages and a blog to your page, along with management tools för CRUD actions., (*1)

Requirements

  • PHP 5.4 or higher
  • Anax-MVC
  • mos/cdatabase
  • mos/cform

Install

  1. Install using Composer("sofa15/anax-mvc-content": "dev-master") or download files from GitHub. If downloading, remember to also download and install mos/cdatabase and mos/cform., (*2)

  2. Move/copy the config file corresponding to your database from cdatabase/webroot to your app/config folder. Make sure to edit the config file with your database connection info., (*3)

  3. To load the services, direct your webroot/config.php or configwithapp.php file to use Anax/DI/CDIFactoryContent as $di or add the services in CDIFactoryContent.php to your own DI-class., (*4)

  4. Move/copy the viewfiles from app/view to your own app., (*5)

Usage

To try the module out using prepared files:, (*6)

Move/copy webroot/testcontent.php to your own webroot and open the file in your browser. First do a setup of pages and blog. Then you can view a list of contents in both tables, and try out the CRUD actions., (*7)

To include the pages and blog into your own site:, (*8)

When using the module with your own site, feel free to edit viewfiles. Link to pages by using route 'page/view/' followed by the page slug. Link to the blog by using route 'blog' and link to specific posts by using 'blog/view/' followed by the post slug., (*9)

Find the filters supported for content in your src/Content/CTextfilter class., (*10)

If you wish to edit the pages and blogpost inserted at setup and reset they are located in the setup.php files in src/page/ or blog/ respectively. If you wish to alter what columns are in the tables you will also have to edit the CFormAdd and Update classes for each type of content, also found in src/page and src/blog, to make sure inserts and updates are done correctly when editing content., (*11)

License

This software is free software and carries a MIT license., (*12)

The Versions

13/03 2016

dev-master

9999999-dev http://dbwebb.se

Module for handling content in Anax-MVC

  Sources   Download

MIT

The Requires

 

by Sofia Fahlesson

micro mvc content blog education

13/03 2016

v3.x-dev

3.9999999.9999999.9999999-dev http://dbwebb.se

Module for handling content in Anax-MVC

  Sources   Download

MIT

The Requires

 

by Sofia Fahlesson

micro mvc content blog education

10/03 2016

v2.x-dev

2.9999999.9999999.9999999-dev http://dbwebb.se

Module for handling content in Anax-MVC

  Sources   Download

MIT

The Requires

 

by Sofia Fahlesson

micro mvc content blog education