Category: Fuel PHP

  • Complete Working Example

    In this chapter, we will learn how to create a complete MVC based BookStore application in FuelPHP. Step 1: Create a project Create a new project named “BookStore” in FuelPHP using the following command. Step 2: Create a layout Create a new layout for our application. Create a file, layout.php at location fuel/app/views/layout.php. The code…

  • Unit Testing

    Unit testing is an essential process in developing large projects. Unit tests help to automate the testing of the application’s components at every stage of development. It alerts when the component of the application is not working according to the business specification of the project. Unit testing can be done manually but is often automated. PHPUnit FuelPHP…

  • Error Handling & Debugging

    FuelPHP provides an excellent support for handling the errors and debugging the application. Let us understand error handling and debugging in this chapter. Error Handling FuelPHP error handling is based on exceptions. FuelPHP provides PhpErrorException exception for all old php errors. FuelPHP raises PhpErrorException whenever an error in the PHP code is encountered. FuelPHP also…

  • Profiler

    Profiler is one of the important tools to analyze and improve the performance of the application. FuelPHP provides an excellent profiler to profile the application. Let us learn about the profile in FuelPHP in this chapter. Enable Profiling Profiling is disabled by default. To enable profiling, set the attribute profiling to true in the main configuration…

  • Email Management

    Email functionality is the most requested feature in a web framework. FuelPHP provides an elegant email class bundled as a package. It is used to send simple plain text email as well as advanced rich text email with multiple attachments. It supports the following features – Plain-text mails, HTML mails, attachments, and inline attachments. Configuration…

  • Events

    An event is an action or occurrence recognized by the program that may be handled by the program itself. For example, we may define an action or event named my_fuel_event and then do some work whenever the event, my_fuel_event is called. FuelPHP provides class, Event to work with the events in the application. System Events FuelPHP defined some of…

  • Cookie & Session Management

    Cookie provides client side data storage and it supports only a small amount of data. Usually, it is 2KB per domain and it depends on the browser. Session provides server side data storage and it supports a large amount of data. Let us go through how to create cookie and session in FuelPHP web application. Cookies FuelPHP provides…

  • Packages

    Packages are similar to modules in code reuse but differs in the following ways, In short, packages are not direct web functionalities such as blog, album, etc. Instead, it is a library of functions grouped together such as email processing, document creation, chart creation, authentication, etc. which aids in faster development of the web application.…

  • Modules

    Module is a great way to write reusable web functionalities such as blog, album, chat, etc. Module does not disturb the other code in the web application. It lives in its own folder and silently provides its functionality. Modules are simply the same controller, models, and views except that they are grouped, configured, and placed…

  • Themes

    Themes are used to enable multiple look and feel for the application. It provides option for the user/developer to change the look and feel of the application without disturbing the functionality of the application. An application can have one or more themes. Each theme lives in its own folder. Let us learn how to create…