Poll

you choose?

symfony
zend framework
yii
codeigniter
other

Inter

  • where is my signature?
  • Posts: 20

Nao

  • Dadman with a boy
  • Posts: 16,062

Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
The way it's meant to be

Norodo

  • Oh you Baidu, so randumb. (60 sites being indexed at once? Jeez)
  • Posts: 469

and

  • why swear, boss?
  • I was enlightened
  • Posts: 94
- more than just a forum <br />sorry for my english

nolsilang

  • Lurking <i class=
  • Posts: 106

Inter

  • where is my signature?
  • Posts: 20

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: symfony vs zend framework
« Reply #7, on September 11th, 2012, 05:21 PM »
Frameworks should be about saving time and energy in writing, by giving you something pre-prepared. All too often people substitute in a framework because they don't know how to do it themselves.

Now, I'm in the state where I've used most of the frameworks and don't like many of them. What I invariably find with them is that I spend almost as much time tweaking the framework because it doesn't do exactly what I want, as I would have done doing it from scratch anyway.

Also, I'd thoroughly avoid Zend Framework because it's huge and extremely bloated. A setup where using multiple components together could require 300 files *per pageload* seems thoroughly wrong to me.
When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

Nao

  • Dadman with a boy
  • Posts: 16,062

Inter

  • where is my signature?
  • Posts: 20
Re: symfony vs zend framework
« Reply #9, on September 11th, 2012, 05:34 PM »
offtop:

Guys, tell me a good class for working with nested sets (PDO, PHP5)
Strange that I can not find this in the frameworks



offtop2:

I did a test in which I was interested in the speed
functions and classes for working with databases
$smcFunc involved, PDO, the Zend DB

results surprised:
 :eheh:
1. $smcFunc
2. PDO
3. Zend DB

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: symfony vs zend framework
« Reply #10, on September 11th, 2012, 06:01 PM »
Quote
Guys, tell me a good class for working with nested sets (PDO, PHP5)
Strange that I can not find this in the frameworks
What do you mean by nested sets? What I think of as nested sets is probably not the same thing you're thinking of.
Quote
results surprised:
Why should that be a surprise?

Inter

  • where is my signature?
  • Posts: 20
Re: symfony vs zend framework
« Reply #11, on September 11th, 2012, 06:07 PM »
Arantor, you are right
ZF2: <<Hello, World>>  All included files: 185
Posted: September 11th, 2012, 06:02 PM
Quote
What do you mean by nested sets? What I think of as nested sets is probably not the same thing you're thinking of.
level_key, right_key, level
http://en.wikipedia.org/wiki/Nested_set_model
Quote
Why should that be a surprise?
I thought that the first speed to the PDO driver


Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: symfony vs zend framework
« Reply #12, on September 11th, 2012, 06:40 PM »
And how exactly are you getting nested-sets out of an SQL table? Are you trying to read it from the table then build it into a nested hash map or what?

Sounds to me like half the battle is using the wrong tool for the job in the first place...
Quote
I thought that the first speed to the PDO driver
To do what exactly? Are you jumping through hoops and doing the wrong thing with it?

See, here's the thing you're talking about a very specific, slightly unusual setup and there's any one of a number of things that are likely incorrect in your use case anyway.

Nao

  • Dadman with a boy
  • Posts: 16,062

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: symfony vs zend framework
« Reply #14, on September 11th, 2012, 07:53 PM »
Exactly. It's very lightweight and exists primarily to be an anti-injection layer, though in $smcFunc's case it's also pretending to be a DBAL as well (but isn't really)