CakePHP 5 - Token Authentication
43:19
CakePHP 4 - Adding a Custom Helper
11:24
CakePHP 4 - JSON and XML views
20:20
Пікірлер
@ynellekylenovicio9798
@ynellekylenovicio9798 2 күн бұрын
I'm using upgrade tool particulary to upgrade from 4.5 to 5.x. But I get an error: Call to undefined method Cake\Upgrade\Application::pluginEvents() in /upgrade/vendor/cakephp/console/CommandRunner.php
@ynellekylenovicio9798
@ynellekylenovicio9798 2 күн бұрын
What is the Pre Rector commit for? I am upgrading my project from 4.5 to 5.0 but its kind a missing of AbstractRector and now the pluginEvents
@toggenation
@toggenation 2 күн бұрын
That is so after your run the upgrader you can see any code changes if any that the tool makes.
@ynellekylenovicio9798
@ynellekylenovicio9798 2 күн бұрын
@@toggenation I'm using upgrade tool particulary to upgrade from 4.5 to 5.x. But I get an error: Call to undefined method Cake\Upgrade\Application::pluginEvents() in /upgrade/vendor/cakephp/console/CommandRunner.php
@iam_fahadshaikh
@iam_fahadshaikh 9 күн бұрын
i created this pfsense vm and test vm in a resource group which already consisted a VM, now I want to make the pfsense work as a firewall for that VM, so can you please make a video on how to connect the pfsense VM with already existing VM in a resource group on azure.
@ppetrix
@ppetrix 20 күн бұрын
Nice. Thank you. I manage to done this 2 years ago with old BSD . Now I want to upgrade. My problem : the azure backup not working without the Agent installed and configured for azure. Is there a solution???
@toggenation
@toggenation 19 күн бұрын
You can try to manually install the agent github.com/Azure/WALinuxAgent/ Plan B is just take a snaphot and test if you can restore to a new VM and it runs OK
@toggenation
@toggenation 19 күн бұрын
Not sure how similar pfSense is to opnSense but this is how I got the agent running in opnSense toggen.com.au/it-tips/getting-the-azure-agent-running-in-opnsense/
@leinwaters94
@leinwaters94 20 күн бұрын
There is a Opensense VM template in Azure so you could skip the HyperV part
@vartanshakhoian9606
@vartanshakhoian9606 22 күн бұрын
Cool, also you can add freeradius package, and configure authentication with username, password and MFA.
@toggenation
@toggenation 22 күн бұрын
Yes! 2FA on a shoestring. Love it!
@aax73
@aax73 22 күн бұрын
James, thank you for your time making the video
@wellingtonalmeida4111
@wellingtonalmeida4111 Ай бұрын
Thank you very much, I managed to do it with your explanation, but how do I add attachments when sending an email? Can you help me? Hugs from Brazil
@toggenation
@toggenation 22 күн бұрын
You can pull in either PHPMailer or SwiftMailer and create an email with attachments. See => kzbin.info/www/bejne/omjLdKJ8ap2tiq8
@wellingtonalmeida4111
@wellingtonalmeida4111 21 күн бұрын
Thank you
@Nathanael-g3g
@Nathanael-g3g Ай бұрын
First of all, thank you very much for this detailed tutorial! I've got a question regarding the layout. At 50:50, you delete all the PHP code from the layout. However, in my project I'm using quite a few CakePHP elements (e.g. header, nav-bar, sidebar etc.) to assemble my layout in a structured way. How can I still use these elements, when configuring the layout with Intertia?
@ccrsphere
@ccrsphere Ай бұрын
Great video. Unfortunately doesn't work for me. What about the requirements for Azure VMs, for example the Azure VM Guest Agent?
@ppetrix
@ppetrix 20 күн бұрын
Same thing. Anyone manage to install the agent?
@DaviniusPratama
@DaviniusPratama Ай бұрын
This is what I need. Thanks for sharing :)
@toggenation
@toggenation Ай бұрын
No worries. Good to have some DIY options in Azure.
@vijayrudra285
@vijayrudra285 Ай бұрын
🎉🎉
@АндрейШахрай-р9ь
@АндрейШахрай-р9ь Ай бұрын
Could you record a lesson that discusses the topic of sessions, cookies and cache in more detail? (redis, memcache etc)
@АндрейШахрай-р9ь
@АндрейШахрай-р9ь Ай бұрын
Hello, your tutorials are very interesting and help me a lot in learning cakephp. Thank you.
@dakterwakz
@dakterwakz 2 ай бұрын
I couldn't for the life of me figure it out, didn't know it was that simple. Many thanks!
@ramo._.
@ramo._. 2 ай бұрын
Hi, could you please make a video on how to make a file management system, I've looked everywhere on the internet and I can't find how to do it, do you think you can do it? I just basically wanna know how to organize files with granted permissions depending on the user :(
@Mirandur
@Mirandur 2 ай бұрын
Thank you! Easy instructions, but a bit difficult to follow along with the back-and-forth. Azure was a lot faster for me, unsure why. Given that Netgate seems to sabotage CE installations in Azure by automatically removing repo information and thus not allowing updates if pfSense CE detects it is running there, I will be using your method to install a different brand if pfSense gives me any more problems.
@rhtservicestech
@rhtservicestech 2 ай бұрын
Would like to see a video that shows how this can be done with the service class being used by both the CLI and the Controller
@GermanJet5
@GermanJet5 3 ай бұрын
Hello James! Cakephp is an underrated framework. Are you planning a full course of application development for version 5?
@toggenation
@toggenation 3 ай бұрын
Hi @GermanJet5, No I'm not planning to do a course. I tend to post stuff I've found interesting personally and hopefully useful to others. I feel I lack the skill depth to create something truly compelling for CakePHP in course format.
@jjy1212
@jjy1212 3 ай бұрын
Test Users ja tgn
@r.j.dunnill1465
@r.j.dunnill1465 3 ай бұрын
Thanks, man! I wanted to clone a Windows 11 installation on a 1tb SSD to a 2tb so as to get more free space. However, there were several utility partitions, including the EFI firmware, between the C: partition and the free space. Following your example, I used Rufus and created a bootable USB stick with gparted. Gparted easily moved all these smaller partitions to the end of the space, in point and click fashion. No need for expensive subscription-only tools!
@toggenation
@toggenation 3 ай бұрын
Aweseom r.j. I'm glad you got a good result... This video is rough and unedited but it gives the general idea.
@itachielarbi3304
@itachielarbi3304 3 ай бұрын
Good job ❤❤
@navturn
@navturn 4 ай бұрын
Thank you very much sir!
@DecoFMartins
@DecoFMartins 4 ай бұрын
James! Thanks! This video was very useful and insightfull. Thanks!
@АндрейШахрай-р9ь
@АндрейШахрай-р9ь 4 ай бұрын
Very useful lessons. Thanks to them, learning the framework becomes easier and more interesting. I'm really looking forward to new videos on cakephp. Thank you!
@АндрейШахрай-р9ь
@АндрейШахрай-р9ь 4 ай бұрын
It helps me a lot. Thank you
@ShawnO316
@ShawnO316 4 ай бұрын
Great video, but couldn't get azure agent to install
@toggenation
@toggenation Ай бұрын
A way of figuring out how to get the agent to install would be to check the Microsoft official FreeBSD Images as they have the agent installed already learn.microsoft.com/en-us/azure/virtual-machines/linux/freebsd-intro-on-azure#overview Some tweaking required I would imagine
@toggenation
@toggenation 19 күн бұрын
This is for opnSense but may work for pfSense toggen.com.au/it-tips/getting-the-azure-agent-running-in-opnsense/
@Reinnyny
@Reinnyny 5 ай бұрын
Hi James, I've been stuck at 49.00 for a while now, I keep getting the "Authorization\Exception\ForbiddenException" error - any tips on how to debug that please!!!
@toggenation
@toggenation 5 ай бұрын
Hi @Reinnyny, Have you got your config/permissions.php file in place? I had a typo when creating the video so check for typos.
@halilzembilci5598
@halilzembilci5598 5 ай бұрын
Hello, in the meantime I have deployed a new Pfsense instance with version 2.7.2 in Azure and noticed that the Packege Manager is not available. I get the error message Unable to retrieve package information. Have you had similar experiences?
@marksmith3293
@marksmith3293 5 ай бұрын
Yes, I have the same issue and have spent hours troubleshooting it.
@halilzembilci5598
@halilzembilci5598 5 ай бұрын
On Netgate forums people write that this is intended by Netgate to push pfsense plus in azure. I have spent hours trying to reach the packet manager. I don't even know if there are other functions that don't work.
@zax123
@zax123 2 ай бұрын
Same issue here, has anyone figured it out?
@marksmith3293
@marksmith3293 2 ай бұрын
@@zax123 I just uploaded the latest CE build and have the same issue in Azure. I'm pretty confident that Netgate is blocking connections from Azure Source IPs unless you're running Plus. My next test was going to be to force the default route from the Azure PFSense to an "on-prem" gateway so it sources from a different IP range to confirm this. NOTE: OPNSense doesn't have this issue.
@Mirandur
@Mirandur 2 ай бұрын
I found a post on the Netgate forums that also had a solution. It has to do with pfSense-repoc and pfSense-repoc-static deleting the content of the pfSense repos folder. Renaming them and creating an empty file to replace them stops them. It seems I can't post the link here, KZbin doesn't like it, but the thread is named _"Branch" dropdown empty, /usr/local/etc/pfSense/pkg/repos/ empty - 2.7.2 CE_
@raffaelloringue
@raffaelloringue 6 ай бұрын
Thanks so much. recent version of pfsense i think that fixes the lock out rule
@jasonelish8935
@jasonelish8935 6 ай бұрын
Thank you. That IdentityFile configuration line is what I was missing.
@stunnx4421
@stunnx4421 6 ай бұрын
Thanks a lot! This was very helpful.
@vla2uv
@vla2uv 7 ай бұрын
What exactly was that?! Was it that you wanted to show off your gparted skills?! 'Cos by far wasn't an exhibit to make some others understand what exactly you're doing and why! As a proof you're such a lazy dumb ass is that you did this video with no voice help for explaining and justifying your steps! Besides, other important part is missing: How can you merge the partitions, since after cloning, Rescuezilla splits the entire destination drive into two partitions which not everybody is happy with and, you didn't have a solution for that issue at all!😏
@ArielAleP81
@ArielAleP81 7 ай бұрын
Hello James! Thanks for this Tut! :) Question: Why did you create that @VAR in minute 6:15?
@toggenation
@toggenation 7 ай бұрын
Hi, I use the PHP Intelephense extension with VS Code the @var ... is so I can get editor hinting and auto complete working. I find it easier to let the IDE do the work and not my memory 😃
@akashdiwakar1616
@akashdiwakar1616 7 ай бұрын
Is it mandatory to add migrations.i don't have that folder under config. I am going to upgrade 4.5 to 5.0
@toggenation
@toggenation 7 ай бұрын
Hi, No migrations are just for managing your database schema. You can ignore any reference to migrations when you do the upgrade. But if you have to tweak the database as you upgrade or continue to develop your app migrations are handy to capture the history of changes.
@halilzembilci5598
@halilzembilci5598 8 ай бұрын
Thank you for this fantastic presentation James. Especially with the discontinuation of the Basic VPN gateway in the fall of 2025, this is a cost-effective solution for s2s and p2s VPN connections
@toggenation
@toggenation 8 ай бұрын
Glad it helped ;)
@zoranspirkoski1342
@zoranspirkoski1342 10 ай бұрын
Amazing, Amazing!!! Thank you!
@pabloinberlin
@pabloinberlin 10 ай бұрын
Great video, well done!
@toggenation
@toggenation 10 ай бұрын
Thanks :)
@KevinPfeifer
@KevinPfeifer 10 ай бұрын
Very nice video going through all the necessary information and available options to build a solid testsuite foundation, well done.
@KevinPfeifer
@KevinPfeifer 10 ай бұрын
21:45 yes, because the connect() method was moved from the Connection class to the Driver class. If you look at the current state of the cakephp/app template inside that specific templates/Pages/home.php file you can see how it's changed. Just getting the connection object via its name doesn't mean your config data is correct. It just means you have a datasource configured with that given name.
@KevinPfeifer
@KevinPfeifer 10 ай бұрын
10:00 Yes, our documentation is not up2date in that specific spot but if you look at the PHPUnit 10 upgrade docs in the "Migration Guides" section of the 5.x book you will see everything you need to do ;)
@toggenation
@toggenation 10 ай бұрын
Thanks for pointing to that PHPUnit migration guide Kevin I could have saved myself some hassle if I had of followed it. book.cakephp.org/5/en/appendices/phpunit10.html
@rrd_webmania
@rrd_webmania 10 ай бұрын
I have a big project to migrate. I hope that would be this simple 😊
@toggenation
@toggenation 10 ай бұрын
I hear you. I have upgraded one production application from 2,3,4 and now 5... And it's rarely as simple as this video, especially with a heap of different plugins. I think it's getting easier though and I always find the documentation CakePHP produces very helpful
@NamanGupta-w8o
@NamanGupta-w8o 10 ай бұрын
Perfect explanation
@h4nen
@h4nen 10 ай бұрын
thanks a lot!
@rrd_webmania
@rrd_webmania 10 ай бұрын
I am using CakePHP since version 1.2 but still found some new things in your videos. Big thanks
@muhammadsofyansyah9571
@muhammadsofyansyah9571 10 ай бұрын
Nice share sir. From indonesia
@kaza172
@kaza172 11 ай бұрын
Hello ! Thank you for the video. I followed what you did, but everytime I restart my Pfsense, it isn't reachable anymore (SSH or WebGUI). Do you have any idea on this problem ?
@toggenation
@toggenation 11 ай бұрын
If you have lost contact with the WAN interface side. Then bring up a VM in the backend and check if you can still access the WebGUI and SSH from the LAN interface. I usually just put a linux VM in the backend and try curl ip_of_your_lan_interface:port or ssh ip_of_your_lan_interface. If that is the case then you may have an issue with your custom Anti-Lockout rule: 16:55 Add custom Anti-Lockout rule to WAN interface before adding LAN interface But if I understand you correctly you are losing connectivity after a reboot so it may be something I'm not aware of. If you can access the serial console you can reset the pfsense back to defaults and then re-check everything including making sure your inbound ports are listed in the WAN interface Network Security Group.
@kaza172
@kaza172 10 ай бұрын
@@toggenation Hello, Thank you for your answer. I contacted Netgate support Team, and they solve the problem by modifying the hyperv.conf (I'm on Azure environment). I had this problem without any modification after the first boot. But now it solved, and your video was a great help to configure our PfSense, thanks a lot again !
@paoloulm8306
@paoloulm8306 11 ай бұрын
Dear James, thanks for your video. it was very useful. Can we also consider safe to delete the "network security group" that is associated to the "external" network card (the one with public ip) connected to pfsense? thanks again for your work!💯
@toggenation
@toggenation 11 ай бұрын
Yes you can delete the WAN Interface NSG as the pfSense is the firewall. Probably a bit annoying to have 2 levels of firewalling there.
@paoloulm8306
@paoloulm8306 11 ай бұрын
@@toggenation Hi james, I runned a few tests: if using a "standard public ip" it needs a "network security group" otherwhise, if you remove the "network security group" it blocks all the traffic. from the documentation isung a "basic public ip" it works even without "network security group". hope it helps
@toggenation
@toggenation Ай бұрын
Seeing as pfSense is the firewall put an allow any rule into the Network Security Group on the WAN interface with Source Any, Source Port Ranges * (Any), Destination Any, Destination Port Ranges * (Any) And add a ICMP any if you want to get a ping reply from the firewall too.
@aransari8602
@aransari8602 11 ай бұрын
Thank you
@LucasFonsecaMartins
@LucasFonsecaMartins 11 ай бұрын
Hey James, Your tutorials are fantastic! Thank you for creating them. One suggestion I have is to group all related videos into a playlist. Additionally, it would be helpful if you could mention, at the beginning of each video, any previous tutorials that viewers should watch first. I jumped into the queue tutorial first and was a bit lost until I found this video. Thanks again, these tutorials have helped me a lot!
@toggenation
@toggenation 11 ай бұрын
Hey Lucas, Thanks for your kind words and good advice of how I could improve. I haven't got the knack of video editing yet so I pretty much do a go - to - woah run through. I will try to cross - reference my other content in future. I know what you mean as I sometimes think I wish I could remember which video has something similar or related in it. I appreciate your feedback.