1 | <?php |
||
15 | class HtmlAccordion extends HtmlBsDoubleElement { |
||
16 | |||
17 | public function __construct($identifier, $tagName="div") { |
||
24 | |||
25 | public function addPanel($title, $content) { |
||
39 | |||
40 | /** |
||
41 | * render the content of an existing view : $controller/$action and set the response to a new panel |
||
42 | * @param JsUtils $js |
||
43 | * @param string $title The panel title |
||
44 | * @param Controller $initialController |
||
45 | * @param string $viewName |
||
46 | * @param $params The parameters to pass to the view |
||
47 | */ |
||
48 | public function renderViewPanel(JsUtils $js,$title,$initialController, $viewName, $params=array()) { |
||
51 | |||
52 | /** |
||
53 | * render the content of $controller::$action and set the response to a new panel |
||
54 | * @param JsUtils $js |
||
55 | * @param string $title The panel title |
||
56 | * @param Controller $initialController |
||
57 | * @param string $controller a Phalcon controller |
||
58 | * @param string $action a Phalcon action |
||
59 | * @param array $params |
||
60 | */ |
||
61 | public function forwardPanel(JsUtils $js,$title,$initialController,$controller,$action,$params=array()){ |
||
64 | |||
65 | public function run(JsUtils $js) { |
||
70 | |||
71 | public function getPanel($index) { |
||
75 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: