Mecha CMS

Panel’s API.

Container

Author: Taufik Nurrohman · 49 Views

Tweet

Container API.

Wrap the whole container with a <form> element:

Config::set('panel.c:f', 'f_name');

Result:

<div class="c">
  <form id="form.c.f_name" action="" method="post" enctype="multipart/form-data">
    <aside class="s s-1"> … </aside>
    <main class="m">
      …
    </main>
    <aside class="s s-2"> … </aside>
  </form>
</div>

Wrap the main area with a <form> element:

Config::set('panel.m:f', 'f_name');

Result:

<div class="c">
  <aside class="s s-1"> … </aside>
  <main class="m">
    <form id="form.m.f_name" action="" method="post" enctype="multipart/form-data">
      …
    </form>
  </main>
  <aside class="s s-2"> … </aside>
</div>

Remove form elements:

Config::set('panel.c:f', false);
Config::set('panel.m:f', false);

0 Comments

No comments yet.