Part of the EllisLab Network
   
1 of 31
1
YATS—The Layout Library
Posted: 12 January 2007 05:32 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  81
Joined  10-31-2006

YATS is a template system designed as a library with helper functions for Code Igniter 1.5. This library was designed after the CI philosophies—it’s lean and straight forward. After installing YATS you’ll see how easy is to create and edit templates for your projects!

Here’s some features of YATS:
- Multiple templates support
- Configurable items
- Helper functions
- Modular structure
- Build a page with just one line of code
- Resources folder outside the MVC structure
- Complete documentation
- Permissive license
- Easy to design for and easy for designers

Download YATS 1.3 r21

Wiki page

Subversion repository

License

 Signature 

Design is not abundance of simplicity,
it is absence of complexity.

________________________________________
Need a template engine for CI? Try YATS!

Profile
 
 
Posted: 13 January 2007 02:17 AM   [ Ignore ]   [ # 1 ]  
Summer Student
Total Posts:  19
Joined  12-26-2006

Looks good Mario,

I’ll play with it soon !

Profile
 
 
Posted: 13 January 2007 02:07 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  552
Joined  06-17-2006

Hi

You have a fatal bug in your code (layout helper).

$this =& get_instance();

Support for mutable objects types was dropped in PHP5.

While the code worked in PHP, it seems like this was undocumented usage that was “stumbled upon”.  I ran into
this bug report at php that confirms this.

 Signature 

CodeCrafter - Open Source Code Generation for CI

Profile
 
 
Posted: 13 January 2007 02:29 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  552
Joined  06-17-2006

For those that are using PHP5 and get an error. resolve this by changing all instance of $this to something else

$thisone =& get_instance();

Also, you may have to rename the libraries/layout.php to libraries/Layout.php (watch the case)

Otherwise, Rokster. it looks like an interesting concept. Thanks for the contribution.

 Signature 

CodeCrafter - Open Source Code Generation for CI

Profile
 
 
Posted: 13 January 2007 08:51 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  81
Joined  10-31-2006

Rokster, thanks smile

Crafter, I didn’t see that bug because I am developing on PHP4. However, nice catch! Thanks.

BTW, this bug is gone in the new build.

 Signature 

Design is not abundance of simplicity,
it is absence of complexity.

________________________________________
Need a template engine for CI? Try YATS!

Profile
 
 
Posted: 13 January 2007 09:18 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  208
Joined  06-12-2006

good app! thanks


btw, there is a small typo in line 52 of layout_model.php

to correct it, note the single and double quotes:

'<a href="http://www.codeigniter.com/user_guide">User guide</a>'

Profile
 
 
Posted: 15 January 2007 03:19 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Avatar
Total Posts:  15
Joined  12-19-2006

Thanks for this well designed addon!

Profile
 
 
Posted: 15 January 2007 10:08 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  10
Joined  01-15-2007

Hello,
  This seems to be a nice library. But I see it is licensed under LGPL. So am I allowed to include this in a commercial script? If so, where do I put this LGPL license text. (It has to be there right?) . Or is the license text within each source file in yats enough?

Thomas

Profile
 
 
Posted: 16 January 2007 06:12 AM   [ Ignore ]   [ # 8 ]  
Grad Student
Rank
Total Posts:  81
Joined  10-31-2006

Thomas,
As item five of LGPL states, YES you are authorized to use this library on your commercial app. You could create a folder called licenses on the root directory of your project—usually that’s how I do it. Also adding a reference note on your about page would be nice as well. More details about the license can be found in two versions, complete and compiled.
Cheers,
Mario

PS: Why this comment “But I see it is licensed under LGPL” since this license is the most appropriated for a library?

 Signature 

Design is not abundance of simplicity,
it is absence of complexity.

________________________________________
Need a template engine for CI? Try YATS!

Profile
 
 
Posted: 16 January 2007 06:17 AM   [ Ignore ]   [ # 9 ]  
Grad Student
Rank
Total Posts:  81
Joined  10-31-2006
Juarez - 15 January 2007 03:19 PM

Thanks for this well designed addon!

You’re welcome! See, my main goal here was to create a library that would allow me to easily implement my graphic design on the apps I’m developing. I say this library is “Easy to design for and easy for designers” because I am a designer.  raspberry

 Signature 

Design is not abundance of simplicity,
it is absence of complexity.

________________________________________
Need a template engine for CI? Try YATS!

Profile
 
 
Posted: 17 January 2007 01:25 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  10
Joined  01-15-2007

Thanks for the reply. I just said that about LGPL, because I would have been more at ease if the licence was MIT licence or BSD licence :D.

~
Thomas

Profile
 
 
   
1 of 31
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66415 Total Logged-in Users: 30
Total Topics: 84757 Total Anonymous Users: 0
Total Replies: 454864 Total Guests: 249
Total Posts: 539621    
Members ( View Memberlist )