CakePHP plugin to "shim" functionality up and down for major versions of the framework.
MIT License
Published by dereuromark about 1 month ago
isDebug()
Included commits: https://github.com/dereuromark/cakephp-shim/compare/3.2.2...3.2.3
Published by dereuromark 9 months ago
Fixed up isModified() on entity for non strict comparison, e.g. when comparing DateTime values.
Published by dereuromark 11 months ago
Fixed RedirectOutOfBoundsTrait to continue to support paginate property as well as config.
Published by dereuromark 11 months ago
Added RedirectOutOfBoundsTrait
for controller pagination to auto-fix 404s for humans.
Simply add the trait and enjoy the magic:
use Shim\Controller\Controller;
use Shim\Controller\RedirectOutOfBoundsTrait;
class AppController extends Controller {
use RedirectOutOfBoundsTrait;
Instead of showing a not user-friendly 404 page, the pagination will redirect right away to the last page available.
Published by dereuromark 11 months ago
Fixed up default model class detection for shims.
Published by dereuromark 12 months ago
Published by dereuromark about 1 year ago
Fixed Command args to be not nullable.
Published by dereuromark about 1 year ago
The plugin to help ease migration coming from CakePHP 4.x apps.
Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.
loadModel()
for apps that make heavy use of it still.Published by dereuromark about 1 year ago
The tool to help ease migration coming from CakePHP 4.x apps.
Shim Up: With CakePHP 4.x core and some of the shims, you can prepare your app already for 5.x.
Shim Down: Then, once upgraded, with 5.x core and some more shims you can further minimize required changes until the app works again.
Then you can slowly start refactoring again further while the app is already running again.
Published by dereuromark almost 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-shim/compare/0.7.5...0.7.6
Published by dereuromark about 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-shim/compare/2.4.0...2.4.1
Published by dereuromark over 2 years ago
set*OrFail()
functionality for entities to make it easier to have an early error system for invalid null setting.get*OrFail()
functionality.Published by dereuromark almost 3 years ago
Published by dereuromark over 3 years ago
ConfigureHelper::consumeOrFail()
method as view template proxy to Configure class.read()
or consume()
.Published by dereuromark over 3 years ago
Fixed propagation of options into widgets like Year, especially in dropdown use case.
Published by dereuromark about 4 years ago
Published by dereuromark about 4 years ago
Table::beforeFind()
Table::save()
Published by dereuromark over 4 years ago
Published by dereuromark over 4 years ago
Shim.Nullable
behavior can now also run on beforeSave()
callback instead of beforeMarshal()
.
This helps with validation that needs to have the empty string posted still available for isset()
checks and alike.
Also, that callback can be used specifically on "dirty" fields.
You can also refactor those to array_key_exists()
, if you want to keep the default event and expect nullish input.