Symfony2: How to customize form error class in twig?

advertisement

symfony logoIf you are new to Symfony2, you might come to a point where you want to customize the form error class. By default, all the form errors will be shown using a list which does not have any css class assigned to it.
symfony2 customize form error

To make the error message stand out, i need to add a css class to it and style the form error to be red color. Thanks to twig template, where i can easily extend the template to what i need.

How to customize form error in Symfony 2.6?

Continue reading Symfony2: How to customize form error class in twig? »

Symfony2: How to get Doctrine Entity Manager in Console command

advertisement

symfony logoSymfony2 allow you to create your own console command thru Console Component. Since the bundle i’m writing is only for my own use, i’m trying to write a console command to load all my data to database. But to get the Doctrine entity manager to work in console command you need to do some modification from the tutorial link above. No worry i promise it’s a easy task, just edit one of the namespace will do.

To get Doctrine Manager in Console Command (Symfony2), follow the steps below:-

Continue reading Symfony2: How to get Doctrine Entity Manager in Console command »

Mac RDP to Win 8.1 error – Remote Desktop Connection cannot verify the identity of the computer that you want to connect to.

advertisement

windows 8.1Recently i just installed Window 8.1 at one of my old desktop. When i’m trying to connect my desktop using remote desktop connection thru my Mac, it shows a funny error “Remote Desktop Connection cannot verify the identity of the computer that you want to connect to.”.

I double check that i’ve already allow remote desktop connection and have the firewall allow RDP connection at my Window 8.1 desktop, but no luck. it still shows the same error. After doing some “google”, i manage to find the solution!

mac rdp connection fix with win 8,1

To allow remote desktop connection from Mac to Win 8.1, follow the steps below:-

Continue reading Mac RDP to Win 8.1 error – Remote Desktop Connection cannot verify the identity of the computer that you want to connect to. »