i think yii is faster )
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
December 23, 2010 7:21pm
Subscribe [15]#1 / Dec 23, 2010 7:21pm
i think yii is faster )
#2 / Dec 23, 2010 8:12pm
What benchmark should be used to define ‘better’?
#3 / Dec 23, 2010 8:58pm
If we find a framework that does very little it will probably be faster… but that’s not the reason people use frameworks. 😊
#4 / Dec 23, 2010 9:15pm
Yii really beats CI in all aspects.
But the most important aspect that makes Yii so great is that the DEV team really listens to user opinion when new features are requested.
Yii memory usage is bigger than CI’s but the execution time is less.
I know this because i just rewrite a huge CI written site in Yii. But, YII comes with so many features(events,behaviours,native hmvc,,auth,rbac,etc) and makes use of all php goodies in a nice manner.
When CI will be able to do what Yii does now(after a few years in my opinion) it will be too late .
#5 / Dec 23, 2010 11:59pm
Having the most features doesn’t make something “best” - it’s a framework afterall, not a house. Besides, I’d wait for the community version release before I’d run off to another flashy framework.
#6 / Dec 24, 2010 7:32am
Having the most features doesn’t make something “best” - it’s a framework afterall, not a house. Besides, I’d wait for the community version release before I’d run off to another flashy framework.
Please, don’t talk unless you tried and understood both frameworks .
#7 / Dec 25, 2010 1:18am
Who is “we”, and define “better”. More features, faster, easier to develop with, documentation, community support… a lot goes into a framework.
#8 / Dec 25, 2010 4:09am
I took a look at the Yii website and was looking for good CI type documentation, but didn’t find any. Did I miss it? The reason I became a CI user was because it had decent documentation. That means a lot to me.
As a side note, I see people in the Yii forum that left Yii for other frameworks.
At this point, I just ask myself why would I change? I can do what I need to do with CI, and I’ve got some great code for making websites super fast. I actually do this for money, so wasting time learning something I really don’t need doesn’t make any sense. I haven’t had a customer yet that said their site seemed slow.
#9 / Dec 25, 2010 1:33pm
Yii’s documentation is not like you are used to on CI, but every method in class is very well explained,
you can start from here: http://www.yiiframework.com/doc/guide/ and of course you have all the class reference here: http://www.yiiframework.com/doc/api/
Now, i will give you a few reasons( that really matters )why you can go with Yii over CI. Don’t get me wrong, i still develop with CI on some projects, because, well CI is what i know best, still learning Yii.
1) Themes support - I like having a theme for admin panel and one or more for frontend.
2) Native HMVC - Well, i cannot create a project without modules. Sure, CI has HMVC but is not in the core
3) Authentication and extensible RBAC - CI doesn’t have either of those.
4) A reliable session class
5) Cache using file/apc/db etc
6) A true Active Record class (CI’s AR is actually a query builder not Active Record perse)
7) Transactions that works (In CI, that’s something that doesn’t work)
8) Support for $_GET and the way Yii let’s you define the routes using $_GET is just great.
9) Assets manager
10) The validation classes are just great, something like CI does, but in a smoother and extensible way.
You say that people left Yii for other frameworks, well, isn’t this normal ?
I mean, this happens a lot to any other framework. If you have in mind how many people left CI because it’s support for $_GET only then this won’t be a mistery anymore.
The only reason that for one is hard to move to other framework is that, like in my case, i had customized everything using CI so rewriting the code for other framework required some work and time, and i know, we don’t have enough time because me, like you, i am doing this for money.
It’s not a bad idea to have your eyes open to alternatives in the web dev world.
#10 / Dec 25, 2010 6:31pm
It’s not a bad idea to have your eyes open to alternatives in the web dev world.
My first framework was my own, then Kohana. Having been a Kohana user, and having decided to move to CI, I do know the value of alternatives. I’ll probably fiddle with Yii, and ya never know, I might just be the next Yii enthusiast. Actually, as pathetic as it may seem, I’ve been getting more and more into Wordpress lately…
#11 / Dec 27, 2010 5:13pm
Sorry, command line php frameworks, are stupid, and I see NO point to it, other than to make people think, its a good framework. “look what I can build in 5 min”. Yeah right.
#12 / Dec 27, 2010 5:43pm
Sorry, command line php frameworks, are stupid, and I see NO point to it, other than to make people think, its a good framework. “look what I can build in 5 min”. Yeah right.
What do you mean by “command line php frameworks”?
#13 / Dec 27, 2010 5:52pm
What do you mean by “command line php frameworks”?
run a simple console command to generate a skeleton Web application built with Yii.
All those are, are cheap knockoffs to a zend server environment, and a pain in the rear.
#14 / Dec 27, 2010 7:16pm
@VicToMeyeZR
Sorry to dissapoint you but Yii is not a command line framework, it is AND a command line framework.
You can generate the code from the command line OR by using GII which is a web interface for creating controllers + models + forms + modules OR you can write them manually, up to you .
And again, if i can write a single line of code that will generate me an entire module skeleton or if i do a click getting same result, then i need to wait for you to copy/paste or hand write in couple of minutes what i just did in 1 second . So, make a sum out of this, and i believe in an entire year, i am ahead of you with a few more projects, so it is a win or not ?
#15 / Dec 27, 2010 7:21pm
@VicToMeyeZR
Sorry to dissapoint you but Yii is not a command line framework, it is AND a command line framework.
You can generate the code from the command line OR by using GII which is a web interface for creating controllers + models + forms + modules OR you can write them manually, up to you .And again, if i can write a single line of code that will generate me an entire module skeleton or if i do a click getting same result, then i need to wait for you to copy/paste or hand write in couple of minutes what i just did in 1 second . So, make a sum out of this, and i believe in an entire year, i am ahead of you with a few more projects, so it is a win or not ?
It depends on what you want. That’s just me personally. Not going to try to convince any one otherwise, and you won’t convince me otherwise. 😊