Skip to content

Tag: php

Symfony: Overriding Symfony service ( compiler pass )

I’m on symfony 2.7 and need to override SymfonyComponentAssetUrlPackage I’ve looked at http://symfony.com/doc/current/cookbook/bundles/override.html and http://symfony.com/doc/current/cookbook/service_container/compiler_passes.html but can’t get it working. I have made a file in my bundle My…

Captcha in html form

I have a html form and i have written the necessary code. html in main code: php in main code: And my captcha_code_file.php code(downloaded): The catcha image is not appearing in my web page. How can i fix this? I’m pretty sure there is no problem with the downloaded code. Answer I simply use already te…

Virtual fields with Cakephp 3

I need to have a virtual property in my user entity. I followed the CakePHP book. UserEntity.php In a controller I followed exactly the book and I only get a null value. Answer According to @ndm, the problem was due to a bad file naming. I named the user entity class UserEntity.php. The CakePHP name conventio…