nrnWest wrote:
> 
> All options base ZF v1.7.2
> 
> File 1: …/application/default/views/helpers/Examle.php
> 
> <? php
> 
> class Zend_View_Helper_Example extends Zend_View_Helper_Abstract
> 
> {
> 
>    public function example ()
> 
>    {
> 
>        return __ CLASS __. ' | '. __ FILE __;
> 
>    }
> 
> }
> 
> ?>
> 
> File 2: /application/fao/views/helpers/Examle.php
> 
> <? php
> 
> class Fao_View_Helper_Example extends Zend_View_Helper_Abstract
> 
> {
> 
>    public function example ()
> 
>    {
> 
>        return __ CLASS __. ' | '. __ FILE __;
> 
>    }
> 
> }
> 
> ?>
> 
> View template:
> 
> File 3  view: …/application/default/views/scripts/index/index.phtml
> 
> <? php echo $this-> example ();
> 
> // result : «Zend_View_Helper_Example | 
> …/application/default/views/helpers/Example.php» Ок!!!
> 
> ?> <br/> 
> 
> <? php echo $this-> action (' index ', ' index ', ' fao ')
> 
>  // use action helper
> // result : «Zend_View_Helper_Example | 
> …/application/default/views/helpers/Example.php»  Error!!!
> // result  -  expected: «Fao_View_Helper_Example | 
> …/application/fao/views/helpers/Example.php»
> 
> ?>
> 
> <br/>
> 
> <br/> <? php echo $this-> example ()
> 
> // result : «Zend_View_Helper_Example | 
> …/application/default/views/helpers/Example.php» Ок!!!
> 
>  
> 
> ?> <br/>
> 
>  File3  view: …/application/fao/views/scripts/index/index.phtml
> 
> <br>
> 
> <? php echo $this-> example ();?>
> 
> <br>
> 
> ______________________________
> 
> Result of job:
> 
> 1)      Zend_View_Helper_Example |
> 
> .../application/default/views/helpers/Example.php
> 
> Ok.
> 
> 2)      Zend_View_Helper_Example |
> 
> .../application/default/views/helpers/Example.php
> 
> ERROR!!!
> 
> Result  -  expected: «Fao_View_Helper_Example | 
> …/application/fao/views/helpers/Example.php»
> 
> 3)      Zend_View_Helper_Example |
> 
> .../application/default/views/helpers/Example.php
> 
> Ok.
> 
> 
> It is error ZF? 
> Without a call $this->action () all works correctly.
> 
> ps Example file add message
> http://www.nabble.com/file/p21183259/example.zip example.zip 
> 

Bag ZF?

-- 
View this message in context: 
http://www.nabble.com/problem-use-View_Helper_Action%2C-help-tp21183259p21553586.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to