Giter Site home page Giter Site logo

lutsen / lagan Goto Github PK

View Code? Open in Web Editor NEW
45.0 13.0 5.0 582 KB

Lagan is a different take on a CMS, with a focus on flexibility. Built with Slim, Redbean and Twig.

Home Page: https://www.laganphp.com

License: MIT License

PHP 54.68% HTML 45.32%
lagan redbean php slim twig cms headless-cms lagan-model lagan-properties

lagan's People

Contributors

jonasgeiler avatar lutsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lagan's Issues

Position Property - Failed CSRF check!

When I try to move an item, I get a "Failed CSRF check!".
I fixed it by adding this to the javascript block:

var newForm =
// ... 
.append( $('<input>', {
	'type': 'hidden',
	'name': '{{ csrf.keys.name }}',
	'value': '{{ csrf.name }}'
})).append( $('<input>', {
	'type': 'hidden',
	'name': '{{ csrf.keys.value }}',
	'value': '{{ csrf.value }}'
}));

I guess you added the CSRF protection to the delete button, but then forgot to do it for the position property too.
Good work with Lagan! It's like KeystoneJS for PHP!

~ Skayo

cannot get it run on windows

php: 7.0
os: win10

get 500 error, unless change these lines of public/index.php

// Make sure to add the missing details to the config.php file.
require __DIR__.'/../config.php'; // Note: change this path if your Lagan project is in a subdirectory

// Include the configuration for RedBean and autoloaders.
require __DIR__.'/../setup.php'; // Note: change this path if your Lagan project is in a subdirectory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.