RE: CakePHP versus Symfony ?

2007-03-03 Thread Mariano Iglesias

Besides, what is *so* bad about arrays? I know Dieter didn't mean that, but
some people consider arrays in PHP to be sort of the worst thing you can
do... What about them? 

The same way string manipulation is what Perl is known for, one of the
reasons PHP is so great is how flexible its arrays are, so why shouldn't we
take advantage of that?

I mean I'm all forward for CakePHP 2.x idea of "objectizing" the models
(since also AFAIK 2.0 or 3.0, can't remember which one, will bring PHP 5
exclusivity, so it kinda makes more sense), but until then arrays are the
way to go! And thank Cake for that!

Regarding Symfony's way of defining queries, it makes me believe that they
were designed by someone who liked the way some Java APIs look, and tried to
bring it to PHP... While in PHP there's no need for that. For example, this:

// Some tasty Cake

$result = $this->Model->findAll(array( 'Model.name' => 'name' ), null,
'Model.created');

Looks *FAR* better than:

// Some ear-infecting symfony

$c = new Criteria();
$c->add(ModelPeer::NAME, 'name);
$c->addAscendingOrderByColumn(ModelPeer::CREATED);
$result = ModelPeer::doSelect($c);

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de jonathan.snook
Enviado el: Sábado, 03 de Marzo de 2007 04:15 p.m.
Para: Cake PHP
Asunto: Re: CakePHP versus Symfony ?

Well, depends on what you consider better. As nate's example points
out, Propel is extremely verbose, especially for handling conditionals
(aka: criteria). I prefer Cake's approach. The difference between the
use of arrays and objects isn't huge, imho. I prefer arrays as it
allows me to easily inject additional properties at runtime if need
be.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread jonathan.snook

On Mar 3, 4:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Symfony currently has a better datalayer t2hen cake .  It uses propel,
> a ORM solution.  with cake we still work with (unconvenient) data-
> arrays
> iirc the cake 2.0 release will contain an object-based datalayer
> (written by the cake team)

Well, depends on what you consider better. As nate's example points
out, Propel is extremely verbose, especially for handling conditionals
(aka: criteria). I prefer Cake's approach. The difference between the
use of arrays and objects isn't huge, imho. I prefer arrays as it
allows me to easily inject additional properties at runtime if need
be.

-js


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread CraZyLeGs

cakePHP works in php4 and php5.

On Mar 3, 3:13 pm, "nate" <[EMAIL PROTECTED]> wrote:
> Hi surfivor, thanks for asking; it's important that this discussion
> comes up from time to time, as the state of affairs in both frameworks
> continue to change.  In a presentation I gave a few months ago, I
> compared Cake to a couple other popular frameworks out there.  For me,
> Symfony can pretty much be summed up in slides 7 & 8 
> here:http://cake.insertdesignhere.com/files/nyphp_presentation.pdf
>
> On Mar 3, 9:46 am, "surfivor" <[EMAIL PROTECTED]> wrote:
>
> > On Mar 2, 2:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
> > wrote:
>
> > > Did you even bother to search the group or google before asking ?.
>
> >  I spent well over an hour on the internet trying to research cakePHP,
> > Symfony, CodeIgniter, Radicore etc. I installed CodeIgniter and got a
> > simple controller working. I went to the book store as well. Possibly
> > I spent more time than my employer would have wanted me do on this,
> > but it's important to me to understand these issues. People often post
> > queries of this sort anyway.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread nate

Hi surfivor, thanks for asking; it's important that this discussion
comes up from time to time, as the state of affairs in both frameworks
continue to change.  In a presentation I gave a few months ago, I
compared Cake to a couple other popular frameworks out there.  For me,
Symfony can pretty much be summed up in slides 7 & 8 here:
http://cake.insertdesignhere.com/files/nyphp_presentation.pdf

On Mar 3, 9:46 am, "surfivor" <[EMAIL PROTECTED]> wrote:
> On Mar 2, 2:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
> wrote:
>
> > Did you even bother to search the group or google before asking ?.
>
>  I spent well over an hour on the internet trying to research cakePHP,
> Symfony, CodeIgniter, Radicore etc. I installed CodeIgniter and got a
> simple controller working. I went to the book store as well. Possibly
> I spent more time than my employer would have wanted me do on this,
> but it's important to me to understand these issues. People often post
> queries of this sort anyway.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread surfivor



On Mar 2, 2:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
wrote:
> Did you even bother to search the group or google before asking ?.
>

 I spent well over an hour on the internet trying to research cakePHP,
Symfony, CodeIgniter, Radicore etc. I installed CodeIgniter and got a
simple controller working. I went to the book store as well. Possibly
I spent more time than my employer would have wanted me do on this,
but it's important to me to understand these issues. People often post
queries of this sort anyway.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread John David Anderson (_psychic_)


On Mar 3, 2007, at 2:52 AM, [EMAIL PROTECTED] wrote:

>
> Symfony currently has a better datalayer then cake .  It uses propel,
> a ORM solution.  with cake we still work with (unconvenient) data-
> arrays

Choice 1: Objects with XML files you have to maintain
Choice 2: Arrays, and a hot poker in my eye

I'd take #2 any day, personally. Anything that makes me describe my  
database in XML is archaic at best. When all this description data is  
freely available from the DB, why make a developer keep it up?

-- John

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread Dr. Tarique Sani

On 3/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Symfony currently has a better datalayer then cake .  It uses propel,
> a ORM solution.  with cake we still work with (unconvenient) data-
> arrays

Depends on how you look at it - there are situations where the data[ ]
is a convinient thing to have around.

Cheers
Tarique

-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread [EMAIL PROTECTED]

Symfony currently has a better datalayer then cake .  It uses propel,
a ORM solution.  with cake we still work with (unconvenient) data-
arrays
iirc the cake 2.0 release will contain an object-based datalayer
(written by the cake team)


On Mar 3, 9:11 am, "snowdog" <[EMAIL PROTECTED]> wrote:
> For me the most important is that Cake is much easier to use on shared
> server (doesn't need shell access), most of my websites for small/
> medium companies are located on shared host. And of course has LESS
> configuration files...
>
> On 2 Mar, 19:39, "surfivor" <[EMAIL PROTECTED]> wrote:
>
> >  Could anyone point me to some significant differences between CakePHP
> > and Symfony ? Also I am familiar with Ruby on Rails, so any
> > similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-03 Thread snowdog

For me the most important is that Cake is much easier to use on shared
server (doesn't need shell access), most of my websites for small/
medium companies are located on shared host. And of course has LESS
configuration files...

On 2 Mar, 19:39, "surfivor" <[EMAIL PROTECTED]> wrote:
>  Could anyone point me to some significant differences between CakePHP
> and Symfony ? Also I am familiar with Ruby on Rails, so any
> similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias

Hahaha oh yeah, forgot about that one ;)

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-Mensaje original-
De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Dr. Tarique Sani
Enviado el: Sábado, 03 de Marzo de 2007 01:13 a.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

CakePHP apps run without any modifications in Joomla and Drupal!!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-02 Thread Dr. Tarique Sani

Learning curve of CakePHP is much more gentle despite whatever people
say about the documentation. (I first got distracted then bored trying
to follow the Askeet series)

CakePHP apps run without any modifications in Joomla and Drupal!!


Cheers
Tarique

On 3/3/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
>
>
>
> And it doesn't hurt to learn that big players like IBM and Firefox (among
> several others) have opted to use CakePHP for their own developments…
>
>
> -MI
>
> ---
>
>  Remember, smart coders answer ten questions for every question they ask.
>  So be smart, be cool, and share your knowledge.
>
>  BAKE ON!
>
>  blog: http://www.MarianoIglesias.com.ar
>
>  
>
>
> De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
> de Michael Rubanov
>  Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
>  Para: cake-php@googlegroups.com
>  Asunto: Re: CakePHP versus Symfony ?
>
>
>
>
>
> Could anyone point me to some significant differences between CakePHP
>  and Symfony ? Also I am familiar with Ruby on Rails, so any
>  similarities or differences there might also be usefull.
>
>
>
>  >
>


-- 
=
PHP for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias
And it doesn't hurt to learn that big players like IBM and Firefox (among
several others) have opted to use CakePHP for their own developments.

-MI

---

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar

  _  

De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Michael Rubanov
Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

 

Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP versus Symfony ?

2007-03-02 Thread Mariano Iglesias
* Symfony has configuration files, configuration files and also.. MORE
CONFIGURATION FILES!

 

* Symfony has dependencies on libraries which code is not managed by the
framework.

 

* Symfony has slower performance than CakePHP (as shown by benchmarks)

 

* CakePHP is far more flexible (IMHO) when having to deal with real-world
complex applications, while Symfony seems to be built to do just standard
web sites

 

* CakePHP has a bigger, more active community

 

Last but not least, Symfony is not as cool as CakePHP ;)

-MI



  _  

De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre
de Michael Rubanov
Enviado el: Viernes, 02 de Marzo de 2007 03:55 p.m.
Para: cake-php@googlegroups.com
Asunto: Re: CakePHP versus Symfony ?

 

Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-02 Thread Mech7

>From what i read you only need PEAR on your development server.Also
the documentation seems to be a bit better with symfony, they have a
book that is also availalbe online for free and a tutorial where the
build a real world application: http://askeet.com/

Personally i never got PEAR cli working correctly with XAMPP so i just
gave up and went with learning CakePHP as Cake and Symfony both seem
like very good frameworks :)

On Mar 2, 7:54 pm, "Michael Rubanov" <[EMAIL PROTECTED]> wrote:
> Pear dependency :|
>
> On 3/2/07, surfivor <[EMAIL PROTECTED]> wrote:
>
>
>
> > Could anyone point me to some significant differences between CakePHP
> > and Symfony ? Also I am familiar with Ruby on Rails, so any
> > similarities or differences there might also be usefull.
>
> --
> Best Regards,
>
> Michael Rubanov.
> ##  ICQ 7299656  ##


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-02 Thread Michael Rubanov
Pear dependency :|

On 3/2/07, surfivor <[EMAIL PROTECTED]> wrote:
>
>
>
> Could anyone point me to some significant differences between CakePHP
> and Symfony ? Also I am familiar with Ruby on Rails, so any
> similarities or differences there might also be usefull.
>
>
> >
>


-- 
Best Regards,

Michael Rubanov.
##  ICQ 7299656  ##

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: CakePHP versus Symfony ?

2007-03-02 Thread hydra12

This post has some info that might help you:
http://snook.ca/archives/php/symfony_1_0_released/

hydra12

On Mar 2, 1:02 pm, "Christian Winther [cwi.dk]" <[EMAIL PROTECTED]>
wrote:
> Did you even bother to search the group or google before asking ?.
>
> -Original Message-
> From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
>
> Of surfivor
> Sent: 2. marts 2007 19:39
> To: Cake PHP
> Subject: CakePHP versus Symfony ?
>
>  Could anyone point me to some significant differences between CakePHP
> and Symfony ? Also I am familiar with Ruby on Rails, so any
> similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: CakePHP versus Symfony ?

2007-03-02 Thread Christian Winther [cwi.dk]

Did you even bother to search the group or google before asking ?.

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of surfivor
Sent: 2. marts 2007 19:39
To: Cake PHP
Subject: CakePHP versus Symfony ?



 Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CakePHP versus Symfony ?

2007-03-02 Thread surfivor


 Could anyone point me to some significant differences between CakePHP
and Symfony ? Also I am familiar with Ruby on Rails, so any
similarities or differences there might also be usefull.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---