Existing element sidebar.ctp showing as "file not found"

Hi,
I have added an element sidebar.ctp under the templates/element folder, but the app yet says “file not found”
How to fix this ?

Regards,
Frank

Hello,

You have sidebar.ctp in your folder and CakePHP is looking for sidebar.php, just rename your file

ah ok, thx a lot )
is .ctp depreciated in Cake 4.x ?

Hello,

I don’t know if that’s deprecating or not, but I had the same error going from CakePHP 3 to 4.

https://book.cakephp.org/4/en/appendices/4-0-migration-guide.html#id4

ah i c .ctp is now in fact replaced with .php
Thx Dirk