Welcome Guest, Not a member yet? Register   Sign In
Twiggy - Twig template engine implementation
#15

[eluser]ZaLiTHkA[/eluser]
[quote author="helia_Dar" date="1353778505"]So a couple things I figured out for all you other newbies.
1) A default non-wamp install of apache does not recognize .htaccess files which are required for most CI demos to remove the index.php. Editing of the httpd.conf file is required.

2) urls to access the twiggy views in the demo app are:
/articles
/articles/view_with_sidebar

3) Actual twiggy logic for demo is found in:
/application/modules/articles/

4) Forget about CI views with Twiggy. Twiggy templates = CI views.[/quote]
It seems this thread isn't all that active any more, but just to clarify a bit on these points..

1) Whether .htaccess works or not has nothing to do with WAMP or LAMP, it relies on an Apache specific setting. If your (L/W)AMP stack is not obeying rules set in your .htaccess file, check the AllowOverride directive in your Apache configuration.

3) This is not because of Twiggy, but rather because the example in question uses Wiredesignz's HMVC modification, you'll see his files in the /application/third_party/MX/ folder.

4) Don't forget about default CI Views, Twiggy templates != CI Views. As stated in the Twiggy readme file, it doesn't replace the default methods, so you can still use them side by side without any problems. For example, for maintenance pages, "still under construction" pages or (if you use them) landing pages.

Hope that helps clarify things a little bit... And of course, happy Twigging. Smile


Messages In This Thread
Twiggy - Twig template engine implementation - by El Forum - 03-24-2012, 02:58 PM
Twiggy - Twig template engine implementation - by El Forum - 04-04-2012, 10:44 AM
Twiggy - Twig template engine implementation - by El Forum - 04-04-2012, 11:43 AM
Twiggy - Twig template engine implementation - by El Forum - 04-05-2012, 07:36 AM
Twiggy - Twig template engine implementation - by El Forum - 04-05-2012, 07:45 AM
Twiggy - Twig template engine implementation - by El Forum - 04-05-2012, 08:33 AM
Twiggy - Twig template engine implementation - by El Forum - 05-01-2012, 09:56 AM
Twiggy - Twig template engine implementation - by El Forum - 05-01-2012, 10:50 PM
Twiggy - Twig template engine implementation - by El Forum - 06-17-2012, 07:18 PM
Twiggy - Twig template engine implementation - by El Forum - 07-03-2012, 03:27 AM
Twiggy - Twig template engine implementation - by El Forum - 08-29-2012, 11:48 PM
Twiggy - Twig template engine implementation - by El Forum - 11-20-2012, 09:19 AM
Twiggy - Twig template engine implementation - by El Forum - 11-20-2012, 09:20 AM
Twiggy - Twig template engine implementation - by El Forum - 11-24-2012, 10:35 AM
Twiggy - Twig template engine implementation - by El Forum - 01-12-2013, 02:59 AM
Twiggy - Twig template engine implementation - by El Forum - 01-16-2013, 12:57 PM
Twiggy - Twig template engine implementation - by El Forum - 03-21-2013, 05:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB