Error of performance of assistants to a kind, if I use the assistant to a
kind action ().
All options base ZF.
Here a code of two assistants:
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 __;
}
}
?>
Url inquiry: “/”
View template:
Fail view: \application\default\views\scripts\index\index.phtml
<? php
/ **
* Default home page view
*
* @author
* @version
*/
$this-> headTitle (' New Zend Framework Project ');
$this-> placeholder (' title ')-> set (' Welcome ');
?>
<? php echo $this-> example ()?> <br/>
<? php echo $this-> action (' index ', ' index ', ' fao ')?>
<br/>
<br/> <? php echo $this-> example ()?> <br/>
<h1> Test </h1>
Fail view: \application\fao\views\scripts\index\index.phtml
<br>
<? php echo $this-> example ();?>
<br>
Result of job:
Zend_View_Helper_Example |
C:\www\home\t\texrdcom\x\application\default\views\helpers\Example.php
Zend_View_Helper_Example |
C:\www\home\t\texrdcom\x\application\default\views\helpers\Example.php
Zend_View_Helper_Example |
C:\www\home\t\texrdcom\x\application\default\views\helpers\Example.php
It is error ZF? Or I am mistaken.
Without a call action () all works correctly.
--
View this message in context:
http://www.nabble.com/Error-at-use-of-the-assistant-to-a-helper-action-%28%29-tp21174007p21174007.html
Sent from the Zend Framework mailing list archive at Nabble.com.