Which framework is better?

Have you tried Twig, too?

I'm contemplating building something that doesn't rely on XF (I've only ever built stuff in XF...) so based on everything I've read here Laravel and Twig seem to be pretty hot contenders.
Oops. I think I got my template engines mixed up with my frameworks :p

I'm going to check out Laravel I think.
 
Have you tried Twig, too?

I'm contemplating building something that doesn't rely on XF (I've only ever built stuff in XF...) so based on everything I've read here Laravel and Twig seem to be pretty hot contenders.

There is a pretty big flaw with using Twig or Smarty or generally anything that isn't Blade/Raw php with Laravel - you lose out on the ability to use 'view composers', which are an extremely useful feature.

I'm currently trying to hack the view composer event into smarty's core {extend} and {include} functions (if this doesn't kill performance I will be amazed!)
 
There is a pretty big flaw with using Twig or Smarty or generally anything that isn't Blade/Raw php with Laravel - you lose out on the ability to use 'view composers', which are an extremely useful feature.

I'm currently trying to hack the view composer event into smarty's core {extend} and {include} functions (if this doesn't kill performance I will be amazed!)
Just got into Laravel and I am still not current on where 4.0 is headed but won't you be able to perhaps use something like https://packagist.org/packages/smarty/smarty or this bundle: http://bundles.laravel.com/bundle/SmartyView
 
Just got into Laravel and I am still not current on where 4.0 is headed but won't you be able to perhaps use something like https://packagist.org/packages/smarty/smarty or this bundle: http://bundles.laravel.com/bundle/SmartyView

Yeah I ended up forking SmartyView to fix my two main issues (error on undefined variables and lack of view composer events)

https://github.com/darkimmortal/Laravel-SmartyView

Very hacky but gets the job done and had no significant performance effect
 
For PHP use Laravel. Been developing on Laravel 4 for a while now (since alpha and it's now in beta) and it makes me like PHP again (and hate working on XenForo). No other PHP framework compares. Zend Framework went full retard (insert never go full retard image here), CakePHP is old but they are trying to get it up to date, most developers I talk to in the #laravel channel (which is a fair few) all came from CI but it didn't progress fast enough. FirePHP is okay but seems to be a fair bit of code that is just... not good. Symfony tries to do things PHP wasn't designed for (it has a very enterprise/Java feel to it) however they have done well decoupling their code so you will most likely use something from it in your Apps (their console component is the standard for PHP console apps, even composer uses it). Yii I can't remember much of thought. And if you want something small and simple, use SlimPHP with composer packages for what you need.

As you can see I have researched them... a lot. Once I found Laravel 4 (I had issues with 3) I started enjoying PHP work again and will have my whole website recoded in it (http://screencloud.net/v/5Ru9). Including another project which is quite big. If it wasn't for Laravel (and composer) I would be leaving the web business.
 
Oh and Luke. Pretty much all your issues with Laravel are just because you don't understand it / have enough experience with it.
 
Here is laravel handling XenForo accounts and then extra stuff ;)

http://paste.laravel.com/gky

Screenshot at 2013-02-01 11:54:54.webp
 
I don't really know how to explain it. I know Laravel very well and I know XenForo like the back of my hand so I have no trouble making them work together. Laravel powers to main website but grabs XenForo here and there. And XenForo will work by itself just with a theme/style that links back. I will also be stripping out all the bloat and uneeded things in XenForo, it will basically handle just forums - the rest of the site does everything else (signup, profile pages, login, account management etc).
 
Top Bottom