| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FirePlugins Framework |
| 4 | - * @version 1.0.3 | |
| 4 | + * @version 1.2.6 | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <[email protected]> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2026 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | namespace FPFramework\Base; |
| @@ -70,16 +70,15 @@ | ||
| 70 | 70 | // render content without form |
| 71 | 71 | $render_form = isset($this->options['render_form']) ? (bool) $this->options['render_form'] : false; |
| 72 | 72 | if (!$render_form) |
| 73 | 73 | { |
| 74 | - echo $formOutput; | |
| 75 | - return; | |
| 74 | + return $formOutput; | |
| 76 | 75 | } |
| 77 | 76 | |
| 78 | 77 | // render content with form |
| 79 | 78 | $this->options['content'] = $formOutput; |
| 80 | - | |
| 81 | - fpframework()->renderer->form->render('form', $this->options); | |
| 79 | + | |
| 80 | + return fpframework()->renderer->form->render('form', $this->options, true); | |
| 82 | 81 | } |
| 83 | 82 | |
| 84 | 83 | /** |
| 85 | 84 | * Returns the default form options |