loadsys / cakephp-creatormodifier Goto Github PK
View Code? Open in Web Editor NEWA Cake 3 plugin that provides a Behavior to automatically set creator_id and modifier_id fields on save.
License: MIT License
A Cake 3 plugin that provides a Behavior to automatically set creator_id and modifier_id fields on save.
License: MIT License
Adapt the code from the FlashComponent to pull in the active session from the Controller.
Ref: http://api.cakephp.org/3.2/source-class-Cake.Controller.Component.FlashComponent.html#62
$this->_session = $registry->getController()->request->session();
This should solve better some issues regarding the Session not being started.
hi,
I installed the plugin but verified it does't work I found that on line 168
$request->session()->started()
doesn't return true, commented the if clause it works properly.
can you help me?
thanks
If an Integration Test setups Session Data using the Session Proxy, this data is no longer available in v1.0.3
http://book.cakephp.org/3.0/en/development/testing.html#setting-up-the-request
Due to the session not being registered as started and hence starting the session which clears out the session data for it being a CLI instance of Session: https://github.com/cakephp/cakephp/blob/master/src/Network/Session.php#L311
composer require loadsys/loadsys/cakephp-creatormodifier:~1.0
Note double loadsys
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.