Apr12
Tagged in:sonata, sonata-admin, sonataAdminBundle, symfony, symfony2Comments:
Post (parent) to display comments (child) list. Creating list of rows on sonata admin bundle is fairly easily with there documentation. But when you want to go bit advance on creating sub list of parent entity, then you would be scratching your head. Luckily this post will help you overcome this very easily. Assuming you already have PostAdmin and […]
Feb02
Tagged in:bundle, symfony, symfony2, symfony3, upgrade, upgradingComments:
Everyone is excited about Symfony 3, including myself 🙂 Symfony 3 or Symfony 2? Symfony 2.8 is exactly same as Symfony 3. But wait, then what’s the difference? Symfony 3 mostly have new directory structure for logs, cache and console. Also all the previous deprecated functions are removed. Should I upgrade then, if its same? […]
Jan31
Tagged in:auto wiring, dependency injection, example, how to, services, symfonyComments:
Previously if you ever had dependency for your object, you had to make sure the names for dependency services are correctly passed down to your new service before you can start using it. Since Symfony 2.8 which is official exact version of Symfony 3 (removing all the deprecated functions). Now you can create services without […]
Jan28
Tagged in:Comments:
Remove form type name from the form Sometimes we need to integrate third party application or form, which requires us to remove any array type form names. Problem Normal form will create FormTypeName[fieldName] <input type=”text” value=”” name=”formTypeName[fieldName]”> Our final outcome should look like field name only without any form type name. <input type=”text” value=”” name=”fieldName”> […]
Jan28
Tagged in:Comments:
It’s 2016, you can use trait which will help you extend same class with multiple libraries. I keep seeing container class get extended into another class, which then extends to another, before you know it you have extended 5 different classes just to use libraries. What if you can include 5 different libraries into 1 object without extending? […]
Jul11
Tagged in:Comments:
Mailgun Setup Create a Mailgun account Add your domain name (no www)domain.com Keep the page open and open a new tab to CloudFlare Cloudflare Choose your site and select DNS Settings Add the two Text records Add the CNAME record Make sure the cloudflare cloud is gray and not orange/active Add the two MX records […]
Jan05
Tagged in:environment, git, github, github.com, Php, project, respository, serverComments:
We will cover UAT and Live environments and exclude developer environment. DEV environment for developer to code and test, before he push his commits to remote repository (github.com), which will be auto deploy to UAT environment for everyone to test with other developers changes. Note – we wont be covering DEV environment. UAT environment for […]
Jan04
Tagged in:code, fix, html, parsing, Php, wordpressComments:
It’s really annoying and waste loads of hours trying to fix how can one show example of php code, while still use visual editor for quick snapshots or fancy tools of tinyMCE and able to show color coding examples using google prettify.
Jan23
Tagged in:Debugging, images, mediawiki, solutions, Source CodeComments:
For over 3 years no one wrote a solution for reset images caption error on mediawiki script, which also is on durpal and some other applications getting used, but its hard to believe that. link to bug
Jan13
Tagged in:design, images, jquery designComments:
Image galleries, sliders and slideshows have become increasingly popular within webpages over the last year or so, and with jQuery becoming ever more popular, more and more developers have been creating these amazing powerful, versatile and sleek galleries. Thank you jQuery. Below you will the most powerful, the most creative and most versatile of jQuery […]