CodeIgniter Forums
New Layout/Template Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forum-7.html)
+--- Forum: Addins (https://forum.codeigniter.com/forum-13.html)
+--- Thread: New Layout/Template Library (/thread-68021.html)

Pages: 1 2


New Layout/Template Library - vincent78 - 05-11-2017

Hello everyone,

I've just created a Layout/Template Library.
It allows you to:
  • manage your templates: include template, extend template ...
  • manage your views: set the title, set the template, add css and javascript files ...

It's really easy to install and use !

Get it on github: CodeIgniter Layout Library

Have a good day !
Vincent


RE: New Layout/Template Library - PaulD - 05-11-2017

Hi,

Just had a quick look and although I am not overly keen on the methodology you have employed it certainly seems very cleanly coded and a very nice little library.

So thank you for sharing.

Best wishes,

Paul.


RE: New Layout/Template Library - vincent78 - 05-20-2017

Hello everyone,

The version 2.0.0 is now available !

Besides included/extended templates, you can now:
  • manage the metadata and the http-equiv data
  • manage the breadcrumb
  • manage the remote css and javascript assets
  • add tags to the css and javascript assets

Get it on github: CodeIgniter Layout Library

Have a good day !
Vincent


RE: New Layout/Template Library - redneckcamp - 09-02-2017

(05-11-2017, 08:19 AM)By chance do you have a demo page with this template so others can see what it looks like? vincent78 Wrote: Hello everyone,

I've just created a Layout/Template Library.
It allows you to:
  • manage your templates: include template, extend template ...
  • manage your views: set the title, set the template, add css and javascript files ...

It's really easy to install and use !

Get it on github: CodeIgniter Layout Library

Have a good day !
Vincent



RE: New Layout/Template Library - vincent78 - 09-09-2017

Hello,

On my github, you'll find a small example which illustrates how works my library.

If you have any question  Huh , feel free to post it here  Smile

Vincent


RE: New Layout/Template Library - JessicaL - 10-28-2017

Thanks, really nice layout


RE: New Layout/Template Library - vincent78 - 10-29-2017

(10-28-2017, 10:23 AM)JessicaL Wrote: Thanks, really nice layout

Thanks


RE: New Layout/Template Library - vincent78 - 03-04-2018

Hello everyone,

Version 3.4.1 released today: Management of the HTML boolean attributes like "async" or "defer"

Upgrading from 3.3.x to 3.4.1:
- replace the file ./application/libraries/Layout.php

Have a good day !
Vincent


RE: New Layout/Template Library - vincent78 - 04-06-2018

Hello everyone,

Version 3.5.0 released today: The default content section name is now a parameter in the config file

Upgrading from 3.4.1 to 3.5.0:
- replace the file ./application/libraries/Layout.php
- add the line
PHP Code:
$config['layout_default_content_section' 'main'
in the file ./application/config/config_layout.php

Have a good day !
Vincent


RE: New Layout/Template Library - vincent78 - 10-13-2019

Version 4.0.0 released

The concept of virtual view has been added.
Example: ./application/controllers/Welcome.php

Note: I didn't have time to test the code, I will do it next week

GitHub: https://github.com/vmoulin78/codeigniter-layout-library