spiffyjr / spiffy-crud Goto Github PK
View Code? Open in Web Editor NEWZF2 Crud module
ZF2 Crud module
Obviously this hasn't been updated in over a year but would you still promote its use today or not?
CrudRoute currently throws 'No controller given' if Controller was specified on the same level as route, i.e.
'route' => '/crud',
'controller' => 'MyController'
throws while
'route' => '/crud'
'defaults' => array(
'controller' => 'MyController'
)
works.
Suggestion for fix line 80,81:
$controller = isset($options['controller']) ? $options['controller'] : null;
if (!$controller) $controller = isset($defaults['controller']) ? $defaults['controller'] : array();
Hi,
I'm looking for a flexible zf2 CRUD module for RAD prototyping. Your module seems to be a perfect candidate for the job. I love the seperation of entity and model definition and the CrudManager with it's related sub managers.
I want to connect an EventStore with a CRUD-ish middleware via CQRS. A CqrsAdapter should delegate CreateEntity, UpdateEntity and RemoveEntity commands to a command bus and in the simplest case generic command handlers would handle them and pass them to event sourced entities. This is the theory, but I've a problem with the AdapterInterface. It looks like it is designed to support doctrine or an ORM in general. The CRUD information get lost cause the AdapterInterface only defines a persist method. Seperated create/insert and update methods would be helpful, otherwise I need to introduce an idntity map or ask my read model if it already knows the entity.
What do you think? Would it be ok to change it? I can do it and send you a pull request. Would be much faster than write my own module but maybe it is a BC break if other adapters exist outside your module.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.