2016-04-01 4 views
1
$this->partial('partials/header'); 

ファルコン単一モジュール用のこの機能です。カルコンパーシャルマルチモジュール

このマルチモジュールでは何ができますか? このモジュールの設計では機能しません。 私はマルチモジュール設計で使いました。

$this->partial('partials/header'); 

わずか数のディレクトリを戻ってくれ

module1/ 
    views/ 
     about/  <- AboutController 
     index/  <- IndexController 
     index.phtml 
module2/ 
    views/ 
     about/  <- AboutController 
     index/  <- IndexController 
     index.phtml 
module3/ 
    views/ 
     about/  <- AboutController 
     index/  <- IndexController 
     index.phtml 
     partials/ <-()Store partials 
      header.phtml 
      footer.phtml 

答えて

2

を教えてください。あなたはModule1の中にモジュール3からheader.phtmlを含める場合(たとえば、あなたのパスに変更する必要があります):

$this->partial('../../module3/views/partials/header'); 
1

ベターすべてのモジュールで使用される別々のビューのディレクトリを作成します。それをcompomnentを表示するために追加すると、このディレクトリに移動する必要はありません。