alaxos 2.0 work with cakephp 2.3 - cakephp

I have been fighting with ACL for two days now and just recently i came across this plugin
alaxos
My question is: Does anyone know if it works with Cakephp 2.3 or higher?

The version that is currently online is not up to date. I won't give any excuse even if I have hundreds, but well, you know, bla bla bla...
That said, I have an updated version that I use with Cake 2.3 projects. I just made a quick download link on my server: you can find it here: http://www.alaxos.org/download/alaxos_acl_2.3.0.zip
And I promise, I'll update my website. Tomorrow...

Related

cakephp and phpunit 9

I need a confirmation and your feedback about phpunit version.
In cakephp documention, the 8.5 release is suggested.
I have launched my tests with PHPUnit 9.5.21 and all seems to be OK, but perhaps there are some drawback I've did not seen ?
I use PHP 8.1.5.
Thanks for your feedback about that
The docs aren't always up do date with the latest and greatest stuff in every single aspect, as it kinda needs to cover the major version. As far as PHPUnit goes, version ^9.3 is officially supported as of CakePHP 4.2.
https://github.com/cakephp/cakephp/blob/4.2.0/composer.json#L58-L63
https://github.com/cakephp/app/blob/4.2.0/composer.json#L14-L20

Datatable Plugin for CakePHP 4

I have been upgrading my application from cakephp 3 to cakephp 4. I was using fheider/cakephp-datatables and I have come across ypnos-web/cakephp-datatables where both support cakephp 3.
I am currently looking for a cakephp-datatable plugin which supports cakephp 4.
If anybody has an idea, I would be happy.
Thanks in Advance.
Isn't the built-in pagination is what you are looking for ? you can do advanced dynamic database links with your HTML tables.
I successfully use ypnos-web/cakephp-datatables on CakePHP 4.2.7. It works very well for me.
You might have to play around a bit to get it working correctly. Read some of the issues (open and closed) on the ypnos-web/cakephp-datatables github repository and you can likely get it working.
Good Luck!

CakePHP 3 and ACL plug in

I am trying to make a simple ACL using CakePHP 3, and there are no tutorials for it in the cook book (only for cakephp 2 and now acl doesn't exist in cakephp3)
Question 1
I am trying to install the acl plugin from https://github.com/cakephp/acl, how may I do that?
Question 2
Is there any comprehensive and beginner friendly tutorial on how to make an ACL on CakePHP3? I've trying searching everywhere, but found nothing. If anyone could guide me on how to do a simple one it would be much appreciated.
Many thanks
USE cakephp-3acl-example project to creating permission and granding permission for users
https://github.com/mattmemmesheimer/cakephp-3-acl-example
Question 1 I am trying to install the acl plugin from https://github.com/cakephp/acl, how may I do that?
Like any other plugin? See the documentation.
The readme.md itself contains instructions as well but also a warning:
Note: This is a non-stable plugin for CakePHP 3.0 at this time. It is
currently under development and should be considered experimental.
Maybe try it and provide feedback to the developers?
Question 2 Is there any comprehensive and beginner friendly tutorial on how to make an ACL on CakePHP3? I've trying searching everywhere, but found nothing.
If anyone could guide me on how to do a simple one it would be much appreciated.
ACL is always the same, if you know how ACL works you can implement it in any language and framework. If you don't know how, read about how ACL in general works.
But a better idea might to simply use the plugin you already found and help testing and completing it if you encounter issues.
burzum is correct that the installation instructions and documentation are available at https://github.com/cakephp/acl .
I am cutting over from a 1.3 implementation so have not gone through setting up a new acl database.
I have not seen a comprehensive doc on how to setup ACL, the 'short' version I have in my notes is:
1) setup 'Auth' as per the blog example (yes Auth is not ACL but this is what I am using it for)
2) install ACL using composer
3) override 'isAuthorized' in AppController with a check like:
...
use Acl\Controller\Component\AclComponent;
use Cake\Controller\ComponentRegistry;
...
public function isAuthorized($user){
$Collection = new ComponentRegistry();
$acl= new AclComponent($Collection);
$username=$user['username'];
$controller=$this->request->controller;
$action=$this->request->action;
$check=$acl->check($user['username'],"$controller/$action");
return $check;
}
You can follow this plugin.
CakePhp3-AclManager
And the tutorial (step by step) here
If you don't know Japan language, use google translate.
Good luck.

CakePHP Upgrade from 1.3.7 to 1.3.17

I have been working on a Cake project that was developed and setup by an outside company some time ago. It was setup with Cake 1.3.7 and seems OK for now.
I see that the 1.3 stream of Cake is now up to .17 and think it is about time I applied the update. But How??
I have googled for hours and can find masses of info on migrating to the V2 stream, but we are not ready to do that yet.
So how do I apply the latest patch of 1.3.17 to my environment? I thought it was just a case of replacing the cake folder with the new one but the .17 download has files in other places too, not just the cake folder.
Can anybody tell me what the process is to do this pls?
Thanks
Mark
I think you just have to replace the cake folder with the new version.

Is it possible to integrate Neil Crookes' search plugin to cakephp 2.0?

I am trying to integrate Neil's search plugin http://www.neilcrookes.com/2009/11/21/cakephp-searchable-plugin to my application but I can't get it to work. Does it work with Cakephp 2.0 and how do I go about doing it?
Thanks,
Lyman
is CakeDCs search plugin not an option? its very sophisticated and works in 2.0.
Ah, I see. The functionality is completely different.
Well, I don't see any 2.0 implementations yet. But you can easily upgrade it using the UpgradeShell.
run "cake upgrade all -p Searchable"
I've made the necessary changes to Jose Gonzalez's fork of Searchable in order to get it compatible with CakePHP 2.0. You can get it here - https://github.com/sc0ttyd/searchable
Remember to check out the 2.0 branch for CakePHP 2.0 compatibility.

Resources