CodeIgniter Forums

Full Version: New Layout/Template Library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
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.
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
(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
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
Thanks, really nice layout
(10-28-2017, 10:23 AM)JessicaL Wrote: [ -> ]Thanks, really nice layout

Thanks
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
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
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
Pages: 1 2