brazzy / kohana-transactional Goto Github PK
View Code? Open in Web Editor NEWDeclarative transactions for the Kohana PHP webapp framework
License: BSD 3-Clause "New" or "Revised" License
Declarative transactions for the Kohana PHP webapp framework
License: BSD 3-Clause "New" or "Revised" License
Does the module work correctly when HMVC sub-requests are used (see http://kohanaframework.org/3.3/guide/kohana/flow )?
The test application doesn't run on Kohana 3.0 - bootstrap has to be changed, but even then it produces an empty page
Currently, any application-registered shutdown-function that accesses the DB happens outside the transaction and is rolled back. According to the PHP docs, it should be possible to have a shutdown function be executed after all others by registering it inside a shutdown function, but this does not seem to work, perhaps because the auto-rollback of the DB driver has already happened at that point.
In Spring, transactional methods can be marked read-only - it would be great to offer the same feature
Currently it doesn't work at all because the Request class now evaluates the route in the execute method rather than in the constructor.
In order to do the Right Thing naturally, the decision whether to commit or rollback should depend partially or completely on the HTTP return code (2xx=commit, 5xx=rollback, what about others?)
This would allow using die/exit when handling errors inside an action.
Is it necessary to have lines 43 and 44 in https://raw.github.com/brazzy/kohana-transactional/master/classes/Transactional/Request/Client/Internal.php
Kohana::$log->add(Log::ERROR, $prefix.$controller);
Kohana::$log->write();
My log files are getting filled with error messages for every controller action.
2013-04-09 07:58:28 --- ERROR: Controller_Logs in /var/www/system/classes/Kohana/Request.php:990
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.