Skip to content

Using form_open inside a block crashes everything #7

@Hubro

Description

@Hubro

This is my code. If I remove form_open, the code works.

<? require 'application/views/templates/base.php' ?>

<? startblock('body') ?>

    <?= form_open('auth/login/confirm') ?>
        <table>
            <caption>Login</caption>
            <thead>
                <tr>
                    <th><?= form_label('username', 'Username') ?></th>
                    <th><?= form_label('password', 'Password') ?></th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td><?= form_input('username') ?></td>
                    <td><?= form_input('password') ?></td>
                </tr>
            </tbody>
        </table>
    <?= form_close() ?>

<? endblock() ?>

Here's the error message

Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions