public function setLayout($file)
    {
        if (strstr($file, '::')) {
            $file = explode('::', $file);
            $package = $file[0];
            $file = $file[1];
        } else {
            $package = $this->package;
        }

        $this->assignDeclaredLayout($package, $file);
    }
public function setLayout($file)
    {
        if (strstr($file, '::')) {
            $file = explode('::', $file);
            $package = $file[0];
            $file = $file[1];
        } else {
            $package = $this->package;
        }

        $this->assignDeclaredLayout($package, $file);
    }
public function setLayout ( $ file ) { if ( strstr ( $ file , '::' ) ) { $ file = explode ( '::' , $ file ) ; $ package = $ file [ 0 ] ; $ file = $ file [ 1 ] ; } else { $ package = $ this -> package ; } $ this -> assignDeclaredLayout ( $ package , $ file ) ; }
Set the layout location
@param string $file
Set the layout location