-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form.php
47 lines (45 loc) · 1.33 KB
/
Form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://www.ics-llc.net/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* @category ZendX
* @package ZendX_Sencha
* @copyright Copyright (c) 2011 ICS Advanced Technologies, LLC.
* @author Matt Pinkston ([email protected])
* @license http://www.ics-llc.net/license/new-bsd New BSD License
*/
require_once 'Zend/Form.php';
/**
* ZendX_Sencha_Form class.
*
* @extends Zend_Form
*/
class ZendX_Sencha_Form extends Zend_Form
{
/**
* setView function.
*
* @access public
* @param mixed Zend_View_Interface $view. (default: null)
* @return void
*/
public function setView(Zend_View_Interface $view = null)
{
if (null !== $view) {
if (false === $view->getPluginLoader('helper')->getPaths('ZendX_Sencha_View_Helper')) {
$view->addHelperPath('ZendX/Sencha/View/Helper', 'ZendX_Sencha_View_Helper');
}
}
return parent::setView($view);
}
}