Symfony Error

You are not allowed to access this file. Check app_dev.php

Try to remove this two lines from app_dev.php .It works for me
 header('HTTP/1.0 403 Forbidden');
 exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');


Symfony Documentation

Installing Symfony by composer

after composer installation then install the symfony. command in your shell:

php composer.phar create-project symfony/framework-standard-edition my_project_name

toolbar hide:

app > config > config_dev.yml
toolbar: false

Creating database:

database create by command follow the symfony documentation.

Creating an Entity Class:

command in your shell:
cd htdocs
cd eventmanage
php bin/console doctrine:generate:entity

The Entity shortcut name: AppBundle:Category

New field name(press <return> to stop adding fields): name

New field name(press <return> to stop adding fields): create_date
Field type[string]:datetime

Entity table relation:

Entity > fileName.php
* @var int
* @ORM\ManyToOne(targetEntity=”Category”, inversedBy=”events”)
private $category;

Creating the Database Tables/Schema

command in your shell:
php bin/console doctrine:schema:update –force

Fetching Data from Database:

follow the symfony documentation > guides > Databae(Doctrine ORM)

How to remove “web/app_dev.php” from Symfony URLs?

web > htaccess change base url

How to change directory




just cut all file from the web folder and past root folder then change app.php

Laravel Snippets

Incorrect Paths to assets - css and js
The issue is on localhost. I did not created custom virtual host.
However using {{asset('path')}} location seems to work everywhere.

Laravel 5.3 - Clear config cache in shared hosting
config:clear command just deletes bootstrap/cache/config.php file, 
so just delete this file manually.

Laravel Documentation

Installing Laravel

Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.

after composer installation then install the laravel. command in your terminal:

php composer.phar create-project –prefer-dist laravel/laravel protfolio


blade is a laravel default template engine. You can uses special syntax.

Create Controller and Routes

command in your terminal:
cd htdocs
cd portfolio
php artisan make:controller ControllerName

Create db table

cd htdocs
cd portfolio
php artisan make:migration create_galleries_table –create=galleries
php artisan migrate

helper and plugins installation

1.go then version select
2.You can see installation code composer.json file and add following code
4.then you have to update the composer go to
after composer installation then update composer.phar file.
command in your terminal:
#php composer.phar update
6.Next you have to add provider and aliases just follow the laravelcollective