Featured
-
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Best 5 Lightweight PHP Frameworks for REST APIs Development
Are you ready to develop the Rest AP
by ankur.kumar -
PHP: Full-Stack Framework vs Micro Framework
A web framework can be described as a software fra
by ankit.bhatia -
How to get facebook profile picture by Facebook App
If you would like to get your profile picture in f
by vivek.rastogi -
Creating RESTful API in cakephp
This tutorial will help you to learn how to create
by pushpendra.rawat
Tags
How to insert record in Symfony?
Hello Friends,
If you are new in symfony and want to insert a new record in the database, please review the below example ::
1) Please open your controller file.
2) Add database entity in the top of your controller like this
u...
How to use if condition with for loop in twig, symfony
Hello Friends,
If you are looking to use if condition in for loop with twig template. Please review the below example.
<table>
{% for category in categories if category.active %}
<td>{{ category.title }}</td&g...
How to display error messages in Symfony
Hello Friends,
If you are looking to flash error message in Symfony. Please review the code as below:
Please open your controller function where you need to display error message. Please review the below example and update your code accordi...
How to display flash messages in Symfony
Hello Friends,
If you are looking to flash success messages in Symfony. Please review the code below:
1) Open your controller and put the below code with your changes:
// Define your success message as below
$request->getSession(...
What is the location of js, css or image files in Symfony
Hello Friends,
If you are new in Symfony and looking to get location to save your js, css or image files, please review this blog. We have many ways to save the public files in symfony here we are describing two different ways to save these pu...