protected function __data()
    {
        // Dummy array for iterated output
        $people   = [];
        $people[] = 'John Do';
        $people[] = 'Jane Do';
        $people[] = 'Foo Bar';
        $people[] = 'Bar Baz';

        // Data used as key => value pairs for template engine
        $data = [
            'title'  => 'Doozr\'s bootstrap environment',
            'year'   => date('Y'),
            'people' => $people,
        ];

        // Just store and trigger dispatch to view -> render by observer pattern
        $this->setData($data);

        return true;
    }
protected function __data()
    {
        // Dummy array for iterated output
        $people   = [];
        $people[] = 'John Do';
        $people[] = 'Jane Do';
        $people[] = 'Foo Bar';
        $people[] = 'Bar Baz';

        // Data used as key => value pairs for template engine
        $data = [
            'title'  => 'Doozr\'s bootstrap environment',
            'year'   => date('Y'),
            'people' => $people,
        ];

        // Just store and trigger dispatch to view -> render by observer pattern
        $this->setData($data);

        return true;
    }
protected function __data ( ) { // Dummy array for iterated output $ people = [ ] ; $ people [ ] = 'John Do' ; $ people [ ] = 'Jane Do' ; $ people [ ] = 'Foo Bar' ; $ people [ ] = 'Bar Baz' ; // Data used as key => value pairs for template engine $ data = [ 'title' => 'Doozr\'s bootstrap environment' , 'year' => date ( 'Y' ) , 'people' => $ people , ] ; // Just store and trigger dispatch to view -> render by observer pattern $ this -> setData ( $ data ) ; return true ; }
Magic & generic data delivery.

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE (we need!!! this as signal from userland back to backend!)
Magic & generic data delivery .