This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
php:loota2_helper [d.m.Y H:i] – kodmasin | php:loota2_helper [d.m.Y H:i] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Loota2_Helper__ ====== | ||
+ | :!: 21.09.2008. - From ZF version 1.6.0. this helper will not work because it could not contain _ in his name. Zend_Loader can not work if _ is in Helper name | ||
+ | :!: 31.1.2008. - I think I saw ZF official helper with similar name and functionality | ||
+ | |||
+ | <code php> | ||
+ | class Loota2_Helper__ { | ||
+ | protected $trans = null; | ||
+ | public function setView(Zend_View_Interface $view){ | ||
+ | $this-> | ||
+ | } | ||
+ | public function _($text){ | ||
+ | return $this-> | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | As you see the only requirement to use this helper is to have $view-> | ||
+ | |||
+ | To use it you must do something like this in your view: | ||
+ | <code php> | ||
+ | $this-> | ||
+ | </ | ||
+ | |||
+ | After installing this helper you can use it as: | ||
+ | |||
+ | <code php> | ||
+ | <dl> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </dl> | ||
+ | |||
+ | </ |