src/Controller.php
final private function __setAppData()
    {
        if ($this->template === 'app') {
            // Save the app data in $this->data['__app']
            $this->data['__app'] = $this->data;
            // Esc the function
            return;
        }

        // Save the app data to this $this->data['__app'] for next Controller
        $this->data['__app'] = $this->incomingData['__app'];

        // Include the app data with this current items data
        $this->data = array_merge($this->data['__app'], $this->data);
    }
final private function __setAppData()
    {
        if ($this->template === 'app') {
            // Save the app data in $this->data['__app']
            $this->data['__app'] = $this->data;
            // Esc the function
            return;
        }

        // Save the app data to this $this->data['__app'] for next Controller
        $this->data['__app'] = $this->incomingData['__app'];

        // Include the app data with this current items data
        $this->data = array_merge($this->data['__app'], $this->data);
    }
final private function __setAppData ( ) { if ( $ this -> template === 'app' ) { // Save the app data in $this->data['__app'] $ this -> data [ '__app' ] = $ this -> data ; // Esc the function return ; } // Save the app data to this $this->data['__app'] for next Controller $ this -> data [ '__app' ] = $ this -> incomingData [ '__app' ] ; // Include the app data with this current items data $ this -> data = array_merge ( $ this -> data [ '__app' ] , $ this -> data ) ; }
Set App Data

Update $this->data with __app
Set App Data