Yii Framework Forum: MyBB 2.0? - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

MyBB 2.0? Rate Topic: ***** 2 Votes

#1 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 13 July 2011 - 02:37 PM

MyBB 2.0 based on Yii?

Quote

[...]

MyBB 2.0 has been written from scratch in a MVC (Model-View-Controller) method and we’ve been using Yii as its base framework. Standing for “Yes It Is!”, Yii is a powerful, very secure and fast framework and after a very long process, we found it to be the best choice for MyBB. Its database abstraction layers introduces various options (including PDO transactions and Active Record, Yii’s Object Relational Mapping (ORM) techniques) and it provides some fantastically simple language and internationalization ideas. We’ve also used the Twig Template Engine for views, increasing security and adding various possibilities of using PHP in templates. You can see an example (currently part of the 2.0 “login” page) of a Twig template and its output in the screenshot to the right.

[...]

Full post: http://blog.mybb.com...ing-the-future/
Yii user #37
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,781
  • Joined: 17-January 09
  • Location:Russia

Posted 13 July 2011 - 03:42 PM

Yes it is.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#3 User is offline   Ivica 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 317
  • Joined: 25-May 11

Posted 14 July 2011 - 12:19 AM

It is always nice to see new sites that are using Yii, especially if they are opensource!!
Zurmo: Yii Powered Open Source CRM
zurmo.org
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 14 July 2011 - 03:06 AM

Wow - that's really awesome! :lol:
"Less noise - more signal"
0

#5 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 709
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 14 July 2011 - 07:44 AM

I used myBB I think back in 2004. It's so cool they are using Yii!

--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

#6 User is offline   Tomm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 25-May 11

Posted 21 July 2011 - 05:02 AM

We're finding it really easy to work with - and the results are looking good! None of the developers working on 2.0 have used Yii before and I'm sure they'll agree it's been the easiest framework to learn and create with.

We have a few concerns though. Trying to keep memory down to a minimum is hard - using even the most basic of models adds quite a bit of usage and Twig is just the same. It's easy to say "enable APC" or another method but the majority of our users will simply be confused by that. We've already had to change the code design so it is as lightweight as possible.

:)
1

#7 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,901
  • Joined: 04-October 08
  • Location:DC, USA

Posted 21 July 2011 - 08:19 AM

@Tomm: Thank you for choosing Yii to build MyBB 2.0. We feel very honored about this.

You mentioned you have a few concerns about Yii. Could you please elaborate them? We will see what we can do on our side.
Regarding the memory footprint, would it be possible for you to do some profiling to see where the bottleneck is?
If you are using AR, some extra memory is needed to store the schema information about the tables being used.
However, that won't consume too much memory.
1

#8 User is offline   Tomm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 25-May 11

Posted 22 July 2011 - 03:50 AM

It's very strange and I'm sure I'm just missing something stupidly simple. I haven't spent that much time looking into it, but I can provide some examples.

I'm not sure if other viewRenderer extensions are similar, but Twig adds lots of memory. Even with it's cache setting.
- Memory Usage with Twig: 4.65mb
- Memory Usage without Twig: 3.8mb

With a forum software, I don't really want to give free reign on a templates system. We've had a really bad security vulnerability with them and I don't want to repeat that - that's why we've chosen to use Twig.

I added the most basic of models too and even that adds 0.25mb of memory for each one you add. That might not sound a lot but when you start adding 3 or 4 models to a page (especially for a forum software) that adds up. I'm sure the footprint will increase too.

It worries me because we haven't even started the main forum software yet - we only have the bare bones of it in terms of users, settings, database, languages etc and it already tops our current version. MyBB 1.6, on average, uses 3.5mb of memory - and that's with everything loaded.

I have no doubt Yii is the best choice - it's simple, fast and extremely easy, even for people new to the MVC world. If there is something stupidly simple I'm missing, please point it out! :)
0

#9 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,901
  • Joined: 04-October 08
  • Location:DC, USA

Posted 22 July 2011 - 07:46 AM

I did some profiling. On average, an AR object has about 600 byte overhead when compared with an array representing the same data. That means if you have 1000 AR objects during a request (most of the time, you need much less than this), there will be 600KB overhead.

Note, however, that in addition to the above overhead, there is also overhead per DB table when using AR because AR needs to know the table schema information. Assume each table schema uses 10KB data and you use 10 tables during a request, it means 100KB overhead.

I'm not sure what DB driver MyBB 1.6 is using. If it uses native mysql driver instead of PDO, you also need to count in the memory difference between the two drivers.

Anyway, in order to do proper profiling, you should try to lo create 100+ models to see where the limit is and see if it scales.
0

#10 User is offline   saegeek 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 09-December 09
  • Location:Montpellier - France

Posted 28 May 2012 - 02:15 PM

There is also another new forum based on Yii:
http://mybbdemo.co.c...p?r=forum/index
And [for] their saying, "Indeed, we have killed the Messiah, Jesus, the son of Mary, the messenger of God ." And they did not kill him, nor did they crucify him; but [another] was made to resemble him to them. And indeed, those who differ over it are in doubt about it. They have no knowledge of it except the following of assumption. And they did not kill him, for certain.Rather, God raised him to Himself.
0

#11 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 28 May 2012 - 08:15 PM

It's not really another new forum - it's the mybb Yii demo. ;)

http://mybbhacks.zin...?tid=748&page=1

Not much to see yet:
http://mybbdemo.co.cc/index.php
"Less noise - more signal"
0

#12 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 30 August 2012 - 04:34 AM

It looks like many BB systems are switching from a custom class library to a 3rd-party framework.

MyBB -> Yii (?)
phpBB -> Symfony
FluxBB -> Laravel
Yii user #37
0

#13 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 30 August 2012 - 05:55 AM

View Postekerazha, on 30 August 2012 - 04:34 AM, said:

FluxBB -> Laravel

They were quite close to switch to Yii, too ::)
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#14 User is offline   Anas AbuDayah 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 27-February 11
  • Location:Amman, Jordan

Posted 30 August 2012 - 06:59 AM

Good news :)
@abudayah

للحصول على دعم أكثر يرجى متابعة هذه الصفحة على الفيسبوك
Posted Image

facebook.com/YiiArabia
0

#15 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 30 August 2012 - 07:05 AM

View PostDa:Sourcerer, on 30 August 2012 - 05:55 AM, said:

They were quite close to switch to Yii, too ::)


Well, it's still unsure if MyBB is going to use Yii.
Yii user #37
0

#16 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 30 August 2012 - 07:22 AM

A short digression about bulletin boards...

Until 5-6 years ago, websites had online communities that were built around forums... then we had the "blogs era"... then we had the "social networks era", the "wikis" era... actually, I find the concept of these bulletin board systems (category -> forum -> thread -> replies) to be pretty obsolete.
Yii user #37
0

#17 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 30 August 2012 - 07:31 AM

I'd argue that blogs aren't that different from bulletin boards. Also keep in mind that blogs, wikis and social media pages all serve different purposes, they are not easily interchangeable.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#18 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 30 August 2012 - 07:38 AM

I think that some concepts from bulletin boards, blogs, social newtorks, wikis etc. could be merged into a new generation product. I don't mean a bb+blog+wiki bundle, I mean a new product which inherits their benefit into a new structure.
Yii user #37
0

#19 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,222
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 30 August 2012 - 07:48 AM

So that would be ... a hierarchical CMS with social media integration?
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#20 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 30 August 2012 - 07:59 AM

View PostDa:Sourcerer, on 30 August 2012 - 07:48 AM, said:

So that would be ... a hierarchical CMS with social media integration?


I find hierarchical systems to be old-fashioned too... I'd prefer a tag-based system, something like Vanilla http://vanillaforums.org/discussions, but Vanilla is just a simple bulletin board... I can think at things like collaborative discussions (i.e. with a fork system to fork discussions just like you fork code on GitHub), a "discussions showcase" instead of a blog etc. etc.
Yii user #37
0

Share this topic:


  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users