/views/plugins/function.inputs.php
https://github.com/sevkialacatli/CakeSmarty · PHP · 19 lines · 11 code · 8 blank · 0 comment · 1 complexity · f6f4b536798d62ae5d95ba9a792cee2e MD5 · raw file
- <?php
- function smarty_function_inputs($params, $template) {
- if (empty($template->smarty->view->loaded['form'])) {
- trigger_error("{inputs} command requires Form helper.", E_USER_ERROR);
- }
-
- $fields = null;
-
- extract(compact('template') + $params);
-
- unset($params['fields']);
-
- $form = $template->smarty->view->loaded['form'];
-
-
- return $form->inputs($fields, $params);
- }