Re: Cake vs other frameworks benchmarks

2011-05-19 Thread mutabor
Guys, I am not refer to this particular benchmark as there are a lot
of them and of course I do not mean that Cake is bad/slow/etc ... but
they do play their role of making people's (newbies, clients) opinion
of what to use for their projects and that's the real problem as it
may reduce CakePHP community.

On May 19, 12:01 pm, Jens Dittrich  wrote:
> This benchmark seems to be pretty senseless. The article does not
> provide any reason for using a framework when calling the "hello"
> controller. It does not state anything about the configuration of the
> frameworks or anything. So what is the intention of that article? Does
> anyone use a framework like this? Download, write 2 lines of code,
> deploy?
>
> How can a "benchmark" like this worry anyone that is not a total
> beginner in software development?
>
> On May 19, 7:30 am, mutabor  wrote:
>
>
>
>
>
>
>
> > Hi guys,
>
> > Lately, I came across another benchmark of popular PHP frameworks:
>
> >http://www.devshed.com/c/a/PHP/7-PHP-Frameworks-Tested-For-Speed/2/
>
> > This is approx. 3rd or 4th benchmark of this type that I came across
> > during last couple of month and in every benchmark Cake shows pretty
> > poor results.
>
> > As a head of a company that specializes in CakePHP, I am very worried
> > about Cake's future. Because even all of these benchmarks are wrong /
> > have incorrect results, our customers still trust them and I start
> > hearing "Anything, but not Cake, please, look at this
> > benchmark seems it's not a good piece of software" from our
> > customers.
>
> > Something should be done, even if there is no opportunity to increase
> > the speed, I guess Cake should apply some kind of PR actions :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cake vs other frameworks benchmarks

2011-05-18 Thread mutabor
Hi guys,

Lately, I came across another benchmark of popular PHP frameworks:

http://www.devshed.com/c/a/PHP/7-PHP-Frameworks-Tested-For-Speed/2/

This is approx. 3rd or 4th benchmark of this type that I came across
during last couple of month and in every benchmark Cake shows pretty
poor results.

As a head of a company that specializes in CakePHP, I am very worried
about Cake's future. Because even all of these benchmarks are wrong /
have incorrect results, our customers still trust them and I start
hearing "Anything, but not Cake, please, look at this
benchmark seems it's not a good piece of software" from our
customers.

Something should be done, even if there is no opportunity to increase
the speed, I guess Cake should apply some kind of PR actions :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Heavy loaded sites

2007-07-20 Thread mutabor

Hi guys,

I am wondering does anybody know a Cake based sites with a lot of
traffic? A kind of big sites. And how good and fast Cake behaves with
such conditions?

Thanks, Kostya.


--~--~-~--~~~---~--~~
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: Ajax + RequestAction

2007-04-18 Thread mutabor

Thanks AD7six, it seems to be exactly what I was looking for!!!

> http://groups.google.com/group/cake-php/browse_frm/thread/23eb2bfe8ea...
> AD


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ajax + RequestAction

2007-04-18 Thread mutabor

Hello,

I have list of items ( index() in controller ), each item has 'Delete'
button that point Ajax call to delete() function in controller, then
updates the div of items.

In delete() function, after actual deletion of record I need to return
to the same view and call index() function again - to let it again
generate all listing. And I have problems with it.

Right now I do it like this:

[repeat all code from index() function]
$this->render('index','ajax');

The solution will be easy if render('index', 'ajax') will not just
show index view but also call index() in controller before and I would
not have to repeat code as I do it now.

RequestAction also does not seem to be helpful.

Please help.


--~--~-~--~~~---~--~~
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: Ajax Form submit by onchange.

2007-02-14 Thread mutabor

Sorry for mistakes in the text :)

Here is the right one:

 I have a form and some fields within it. I need to submit this form
by
 onchange event of select element (see the code). But the way I did it
 submits form using regular way - not through Ajax call. If I use
 $ajax->submit(..) to submit this form everything works perfect.
 But I do not need submit button. How can I reach the same effect as
 with $ajax->submit but with select's onchage event. Please advise.

form('changegender', 'post', array('url' =>
 'changegender', 'update' => 'gender_div'))?>

   

 < -- HERE COME OTHER FIELDS -->

 selectTag('Favorite/gender_id' , $genders,
 $favorite['Favorite']['gender_id'], array('onchange' =>
 'this.form.submit()'), null, false ) ?>

   
 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ajax Form submit by onchange.

2007-02-14 Thread mutabor

Hello,

I have a form and some fields within it. I need to submit this form by
onchange event of select element (see the code). But they was I did it
submits form using regular way - not throught Ajax call. If I use
$ajax->submit(..) to submit this form everything works perfect.
But I do not need submit button. How can I reach the same effect as
with $ajax->submit but with select's onchage event. Please advise.


form('changegender', 'post', array('url' =>
'changegender', 'update' => 'gender_div'))?>

  

< -- HERE COME OTHER FIELDS -->

selectTag('Favorite/gender_id' , $genders,
$favorite['Favorite']['gender_id'], array('onchange' =>
'this.form.submit()'), null, false ) ?>

  



--~--~-~--~~~---~--~~
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: Regarding http://cakephp.org page layout

2007-02-10 Thread mutabor

Thank guys for your thoughts. Fortunately I made my client confident
in Cake's reliability.
Of course for me and for you it does not matter how framework's site
looks if this framework really good.
I still think that my client's way of thoughts was right for non-IT
person : If I do not know anything about a subject - I will ask, if
nobody around to answer - the only thing is left - to judge by look
and feel. Thanks to God we were around.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Regarding http://cakephp.org page layout

2007-02-09 Thread mutabor

Hi,
We have this situation: we are talking to the client about using Cake
in his project development. The answer was: "I do not think this is
reliable framework, just look at their site (IE7)".
Although we keep on telling him that this fact does not matter, could
Cake Dev Team fix layout problems in IE7? I think this will definitely
help Cake (and us also :) )


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Use Cake's elements in Wordpress

2007-02-05 Thread mutabor

Hello,
Now my new hobby is to look up 'Wordpress + CakePHP' topics in the
Internet. But nothing real :(

I have quite big project on Cake (26 tables) and want to use WordPress
as Community provider on that site. I installed WP in /community/ in
cake's webroot directory. I use code from cake's default layout and
placed it in WP theme. And here is the very first question: my default
layout uses some Cake's Elements. How can I get them from WP layout?

Did somebody who is smarter do the same that I want? Please advise.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Multiple associations question

2006-11-08 Thread mutabor

Hi guys!

Here is my database scheme: http://shakuro.com/db.jpg
There you can see that there are a lof of multiple associations. I've
been out of cake community for a while, but as far as I know cake has
some problems with multiple assosiations.

The question is: Will I be able to use Cake built-in associations with
such database scheme or it's easier I kill myself? :)

Thanks!


--~--~-~--~~~---~--~~
 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: HABTM: two associations used same table

2006-08-29 Thread mutabor

Thanks for reply Andy. At last somebody experienced noticed my problem
:)

Well, I think this is quite delicate topic, when you have to change
your database scheme to let it work in Cake. I do not think this is
good approach, even if whole development run within Cake framework,
don't you think so? I suppose I need to wait for future releases and
handle such associations manualy until the problem is solved. 

mut


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: HABTM: two associations used same table

2006-08-29 Thread mutabor

It's pity there are no answers. Results are the same while trying to
scaffold. And I think Cake can not deal with HABTM type of association
when there are more that 2 foreign keys in the same table. To manage it
with Cake I think I need to divide this triple relationship with two
dual or handle it manualy.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: 3 table join help?

2006-08-29 Thread mutabor

I have exactly the same problem -
http://groups.google.com/group/cake-php/browse_thread/thread/4c85865acbd600a9/

I have asked some smart guys on IRC but no results. I think this is a
bug - Cake cant deal with such type of relations


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



HABTM: two associations used same table

2006-08-28 Thread mutabor

Hello! Is there a way to handle this:

Example: I have tables users, languages, languagelevels,
languages_users

Languages_users have following fields:
 - user_id
 - language_id
 - languagelevel_id

This is simply: each users speaks a language with a skill level

Users model has:
.
var $hasAndBelongsToMany = array('Language' =>
   array('className'  => 'Language',
 'joinTable'  => 'languages_users',
 'foreignKey' => 'user_id',
 'associationForeignKey'=>
'language_id',
 'conditions' => '',
 'order'  => '',
 'limit'  => '',
 'unique'   => true,
 'finderSql'  => '',
 'deleteQuery'=> '',
   ),
   'Languagelevel' =>
   array('className'  => 'Languagelevel',
 'joinTable'  => 'languages_users',
 'foreignKey' => 'user_id',
 'associationForeignKey'=>
'languagelevel_id',
 'conditions' => '',
 'order'  => '',
 'limit'  => '',
 'unique'   => true,
 'finderSql'  => '',
 'deleteQuery'=> '',
   )
   );

The problem is, when I try to save the data I got following:

INSERT INTO `users` (...everything is ok here...)

DELETE FROM `languages_users` WHERE user_id = '32'
INSERT INTO `languages_users` (user_id,language_id) VALUES ('32','1')
INSERT INTO `languages_users` (user_id,language_id) VALUES ('32','4')

DELETE FROM `languages_users` WHERE user_id = '32'
INSERT INTO `languages_users` (user_id,languagelevel_id) VALUES
('32','1')
INSERT INTO `languages_users` (user_id,languagelevel_id) VALUES
('32','3')

Second DELETE makes it wrong. Is there a way to handle this situation?
Or maybe I should redesign my tables?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problems with FILE field OR Hacking html herlper :)

2006-08-25 Thread mutabor

Hello,

I have the following code in my view for each Room (these are only two
fields for example, but I have more.):

selectTag($i.'][Room/tv')?>
file($i.'][Room/image1')?>
file($i.'][Room/image2')?>

where $i - is simple counter

I need such mess to have following appearance in the HTML source:





I need this to be able to save several Rooms at once. I let user press
javascript 'Add' button to show another set of fields to enter another
Room and then submit all rooms by pressing 'Submit'.(this is my last
topic about it :
http://groups.google.com/group/cake-php/browse_thread/thread/dd3611eb91836bee/
)

Problem is:
All fields works great, except of file fields.

In my controller:

$rooms = $this->data;
foreach($rooms as $room) {
   print_r($room)
}
 Here is what I have (it's killing me):

Array
(
[Room] => Array
(
[tv] => 0
[name] => Array
(
[image1] => med_gallery_1_29_222626.jpg
[image2] => med_gallery_349_29_48910.jpg
)

[type] => Array
(
[image1] => image/jpeg
[image2] => image/jpeg
)

[tmp_name] => Array
(
[image1] => D:\www\php\tmp\php1AB.tmp
[image2] => D:\www\php\tmp\php1AC.tmp
)

[error] => Array
(
[image1] => 0
[image2] => 0
)

[size] => Array
(
[image1] => 56196
[image2] => 20905
)

)

)

But I expected usual Files array for image1 and image 2 - something
like this:

Array
(
[Room] => Array
(
[tv] => 0
[image1] => Array
(
[name] => med_gallery_1_29_222626.jpg
[type] => image/jpeg
[tmp_name] => D:\www\php\tmp\php1AB.tmp
..
)
[image2] => Array
(
[name] => med_gallery_349_29_48910.jpg
[type] => image/jpeg
[tmp_name] => D:\www\php\tmp\php1AC.tmp
..
)


)

)

Help please.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Let user submit multiple records

2006-08-22 Thread mutabor

Hi Vanchuck!

Thanks for useful info.
Basicaly, I just wanted to confirm that HTML helper really can't help
me processing multiple set of inputs and I need to code around to make
it working instead of having simple way to view it, save it and
validate it.

Mutabor


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Let user submit multiple records

2006-08-21 Thread mutabor

Hello Mike.

Thank you very much for the quick reply. This is definitely a nice and
elegant way to handle it. I think I should use it.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Let user submit multiple records

2006-08-21 Thread mutabor

Hello. I have a model called 'Room'. I need to let user submit as many
rooms at once as he wants by placing javascript 'Add room' button.
Each time user press this button it pastes one more set of fields to
let user enter another room information. And in the end there is submit
button which submits all rooms at once.

This way I have some sets of fields with equal names in my view and
Cake's controller  eats only the last one's data :(
Please, tell me what is the best way to handle this situation with
Cake? I have looked though groups but wasn't so lucky to find any
information.

Thank you.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Session variable in $helpers array

2006-08-18 Thread mutabor


John David Anderson (_psychic_) wrote:
> Is much of your helper code the same from language to language? I
> might write a single helper that is somehow aware of the session,
> rather than trying to make several different helper classes that need
> to be juggled.
>

Thanks for reply John.
The main reason to separate language content into several files is -
there will be much info (about 70 kb for each language) that's why I
would like to include only necessary information to not overload the
page.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Session variable in $helpers array

2006-08-18 Thread mutabor

Hello, I am still new at Cake.
Here is my question:

I develop multilingual site. I am going to create some helpers to help
me deal with many languages. Here is an example :

var $helpers = array('Html','Pagination','En');

where 'En' is English helper, there will be also others
('GER','ESP','RUS', etc)

Until user is logged on 'En' helper will be used, but  when user logs
in he gets

$this->Session->write('lang','USER_DEFAULT_LANGUAGE_ FROM_DB').

According to this session variable I want to include appropriate helper
, so I need something like that:

var $helpers = array('Html','Pagination',$this->Session->read('lang'));

but it does not work. Could anybody tell me what is the best way to
implement things I want?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Can't set checkbox "checked"

2006-06-14 Thread mutabor

yes, at least!

thanks!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Can't set checkbox "checked"

2006-06-13 Thread mutabor


gwoo wrote:
> paste your controller and view in the cakebin.
> http://cakephp.org/pastes/add
>
> or jump on irc http://irc.cakephp.org
>
> we can fix you up.

Thank you, I will try.

it seems this is my own bug so far ...


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Can't set checkbox "checked"

2006-06-13 Thread mutabor


gwoo wrote:
> you need to specify a checkbox value
> checkbox('Download/is_track',null,array
> ('value'=>'1'))?>
>
> Then in your controller you just set
> $this->data['Download']['is_track'] in the controller

Thank you gwoo,  but

checkbox('Download/is_track',null,array('value'=>'1'))?>

does not also work for me. Madness. The checkbox is still not checked.
The only way I found to set it checked is

checkbox('Download/is_track',null,array('value'=>''))?>

This is the first problem with Cake I run into after have created
almost whole site. It's pity.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Can't set checkbox "checked"

2006-06-13 Thread mutabor


[EMAIL PROTECTED] wrote:
> http://api.cakephp.org/html_8php-source.html#l00259
>
> Looking at the API and the corresponding code.  Looks like that if you
> pass 'value' = > 'checked' that would do it.

Thank you for reply.

But 'value' = > 'checked' also does not work.

I looked through API :

00260 $value = $this->tagValue($fieldName);

this line returns $value = ''

so in case I put following:

checkbox('Download/is_track', null, array('value' =>''))?>

checkbox become checked. But this is quite illogical.

And also I am not sure why "checked" attribute is overridden in this
checkbox function


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Can't set checkbox "checked"

2006-06-13 Thread mutabor

Hi all!
Firstly - I am completely newbie in Cake.

My problem is - in edit mode in my admin side I need to set checkbox
for is_track field [TINYINT(1)] checked and have no idea how to do it.

The way I am  trying to do it:

 VIEW:

checkbox('Download/is_track', null, array('value' =>1,
'checked'=>'checked'))?> - does not work

anybody help please :)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---