Category - php

104

learn how to create seeds in laravel

To create our database seeder, we will modify the DatabaseSeeder class that extends Seeder. The name of the file is database/seeds/DatabaseSeeder.php...

Entities – the Model layer symfony

Entities – the Model layer Finally, we need to dive into the Model layer of Symfony2 framework. Symfony2 heavily relies on Doctrine2. Doctrine2 is...

Understand Query scopes in laravel

Query scopes are very funny and also powerful. I really like them because, like many programmers out there, I am absolutely and overwhelmingly lazy...

Understanding the loop of wordpress

Understanding how the Loop functions will help you understand how you can control it. Controlling the Loop to display exactly the content you want...

The Strategy pattern in laravel

The best approach to describe the Strategy pattern is through a problem. The need for the Strategy pattern In this design pattern, the logic is...

Routing in symfony 2

Like with many other frameworks based on the concept of MVC, before any controller is actually executed, Symfony2 needs to know how to handle it. The...

Cleanups in symfony 2

Before we start writing our own app, we need to do some cleanups. We need to configure AppBundle to use the YAML configuration. While this is...

The configuration format of symfony

Symfony2 can handle configuration in different formats: YAML, XML, and annotations. The main configuration files within app/config are provided with...

Everything is a bundle in symfony

In the previous articles, we dug in to the basic Symfony2 directory structure. Within the src directory, we already had two bundles: one called...

Dive in to Symfony2 console

let’s take a look at the Symfony console script. We used it before to fire up the development server, but it offers more. Execute the...

configuration files in symfony

Each application has a need to hold some global and machine-specific parameters and configurations. Symfony2 holds configuration within the...

Pin It on Pinterest