• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting Twiggy with It

#1
Not expecting anything much from this post, just had to stop in a say that I was able to create 1 new file, and make a couple of setting changes and using the built-in view() method is using Twig in place of the default code. That's pretty exciting.

Just needed to tell someone. Thanks for listening. Smile
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#2
Sorry for OOT and my english. I'm getting an error (404) for default controllers (Home::index). I'm playing with it to trying controller or routes based on this article http://blog.newmythmedia.com/blog/show/2...eIgniter_4 , I'm very like it.
Reply

#3
I hear ya!

I use blade templating in some of my codeigniter apps. Good stuff
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply

#4
@kilishan

What do you think about parser/template engine detection by view's file extension name?

Code:
'twig' => array('twig', 'html.twig'),
'mustache' => array('mustache.html', 'mustache'),
'markdown' => array('md', 'markdown', 'fbmd'),
'textile' => 'textile',
// Etc.
Reply

#5
(03-15-2016, 12:38 AM)ivantcholakov Wrote: @kilishan

What do you think about parser/template engine detection by view's file extension name?

Code:
'twig' => array('twig', 'html.twig'),
'mustache' => array('mustache.html', 'mustache'),
'markdown' => array('md', 'markdown', 'fbmd'),
'textile' => 'textile',
// Etc.

What do you mean? You'd still have to load the engine via compose or a library right?
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply

#6
@albertleao

Yes.
Reply

#7
(03-15-2016, 12:38 AM)ivantcholakov Wrote: @kilishan

What do you think about parser/template engine detection by view's file extension name?

Code:
'twig' => array('twig', 'html.twig'),
'mustache' => array('mustache.html', 'mustache'),
'markdown' => array('md', 'markdown', 'fbmd'),
'textile' => 'textile',
// Etc.

At this time, I don't see that making it into core.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#8
Seems like a nifty idea, but unnecessary. If DI is done right, it should be pretty easy to drop these in anyways.
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.