Concept of how to work with DooFramework


Ok in this article I will show you how should you work with DooFramework, when I am making website I like to have one super class that extends DooController class and in constructor of that class I will add all stuff needed for my application, so lets make that class, we should name it for example CoreController 🙂

01.
<?php
02.

03.
class CoreController extends DooController {
04.

05.
/**
06.

  • Current URL
    07.
    */
    08.

09.
protected static $_currentUrl = null;
10.

11.
/**
12.

  • Instance of Doo::db
    13.
    */
    14.

15.
protected $_db = null;
16.

17.
/**
18.

  • Translator
    19.
    */
    20.
    protected $_translate = null;
    21.

22.
/**
23.

  • Instance of Doo::cache
    24.
    */
Previous PostNextNext Post

Leave a Reply

Your email address will not be published.