Re: Random query question
If you are using MySQL as your database backend, read http://www.desilva.biz/mysql/random.html (found by Googling "mysql random row"). If you are not using MySQL, check if your database has a similar function. On May 19, 5:56 am, Sarpidon wrote: > Hi everybody. > > I have a companies table and those companies have promotions. Each > company can have up to 10 promotions but only 2 can be displayed from > each company at one time. I've been trying to figure out how to > generate a single query that will select only 2 promotions randomly > from each company. Is that even possible? > > see screenshot attached -->http://screencast.com/t/dB2sqcEns > > so basically randomly select only 2 promotions with the same > company_id... > possible? how? > > Thank you for your time. -- 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
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.
I have Cake Version 1.3 and I keep receiving this message. It doesn't matter which url I visit, any valid page throws these errors up. It was after Auth ACL and groups were setup. Does anyone know of maybe a quick fix that i am over looking? Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 2 [username] => anonymous [full_name] => visitor ) ) Aco: controllers/groups/index [CORE/cake/libs/controller/components/ acl.php, line 272] -- 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
Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check.
Using Cake 1.3 I receive the following message after attempting to setup Auth/ACL. This happens on every page within the directory. Can anyone point me toward an area to troubleshoot? I am new to CakePHP Warning (512): DbAcl::check() - Failed ARO/ACO node lookup in permissions check. Node references: Aro: Array ( [User] => Array ( [id] => 2 [username] => anonymous [full_name] => visitor ) ) Aco: controllers/acos/index [CORE/cake/libs/controller/components/ acl.php, line 272] -- 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
Re: REST + Pagination
Matthew, I'm not super experienced with Paginator but... I think the options() method of Paginator can pass in the queries from your previous url. For example in my application I'm using a Helper to write my pagination links and the action is a variable in the links but the url's are non-standard. I'm doing this in my application: $this->Paginator->options['url'] = array('action'=>$this- >params['pname']); $controls = "{$this->Paginator->prev('Previous')} | {$this- >Paginator->numbers()} | {$this->Paginator->next()} "; Based on this success, I'm assuming you can pick the query out of $this->params and inject them back in to Paginator with options() in the same way. Good luck Don On May 19, 11:14 am, Matthew McNaughton wrote: > Hello World, > I'm using cakePHP to build out an open data API in Jamaica (the first of > its kinda here). Things have been going well thus far and I'm very happy > with our decision. At the moment I am running into an issue with > pagination. > > The basic problem is that I want to preserve the query passed to the > view from the controller. At the moment when the user selects the > default paginate the results for a particular query. Currently if you > are on a page with a particular query: > e.ghttp://localhost/agroProjects/api/crops?parish=st.andrew&district=blo... > > If I click the Next or Prev button it goes > to:http://localhost/agroProjects/api/crops/index/page:2 > > Which returns page two of the default query. Instead it should go > to:http://localhost/agroProjects/api/crops/index/page:2?parish=st.andrew... > > I suspect it may be related to how I use the paginator helper in the > View. The code is below > Paginator->prev('<< ' . __('previous', true), array(), > null, array('class'=>'disabled'));?> > Paginator->numbers();?> > Paginator->next(__('next', true) . ' >>', array(), > null, array('class' => 'disabled'));?> > > Any help would be greatly appreciated. > > (i.e not return the 250,000 records for every time I receive a query). > We decided to limit the results returned (for . > $cropData = $this->paginate('Crop', $query); > > But the issue is that that when I click "Next Page" in the view it > forgets the original query paramer > -- > Regards, > Matthew McNaughtonwww.twitter.com/mamcnaughton -- 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
Re: How to query hasAndBelongsToMany-Models?
Count? Why didn't you say so? You could easily extract the count from that result with: count($result['Image'])); //http://us.php.net/manual/en/ function.count.php Or: There's probably a more elegant way to do this... In fact, in addition to the techniques I'm illustrating, this page (http://book.cakephp.org/ view/1017/Retrieving-Your-Data) describes using sub-queries which may be a way to do this. However, this two step process get the job done. $label = $this->Image->Gallery->find('first',array( 'conditions'=> array( 'Gallery.label'=>'seascape'), 'fields'=>'Gallery.id') ); $count = $this->Image->GalleryImage->find('count', array( 'conditions'=> array( 'GalleryImage.gallery_id'=>$label['Gallery']['id']) )); Don On May 19, 10:37 am, func0der wrote: > Thanks, but that is not what i am looking for. > > I want to do a count on all the images in the gallery. > Your query just counts the galleries if i change "all" to "count". > And also that query also get's all the other things attached to a > gallery as well which i don't want to. > > I only want to count and/or receive the pictures within a gallery. > > On 19 Mai, 04:42, dreamingmind wrote: > > > > > > > > > I have a habtm Image->GalleryImage->Gallery set up and can do what you > > are looking for with this: > > > $this->Image->Gallery->find('all', > > array('conditions'=>array('Gallery.name' => 'seascapes'))); > > > Regards, > > Don > > > On May 18, 3:15 pm, func0der wrote: > > > > Hey guys, > > > > i'm just wondering how you can do a ordinary hasAndBelongsToMany query > > > with cake without all these dynamic bindings and stuff. > > > > I'm having a gallery to galleryImages relationship but i can't search > > > for images in a specific gallery over this relationship. > > > This is maybe because i don't know how because i can't find a > > > documentation or it's because CakePHP is not able to do it. > > > > Either one or the other way there is a question: > > > How can i do it? > > > or > > > Why is CakePHP not able to do such queries? > > > > Greetings > > > func0der -- 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
Re: How to cake bake in Linux environment - Cakephp?
Example @OpenSuse 11.4 navigate to your home directory /home/username/ open .bashrc add path to cakephp console: #my example export PATH=/home/nikola/localhost.dev/htdocs/cakephp/cake/console/: $PATH and use console cake bake commands :) . On 19 svi, 11:53, thom wrote: > On Wed, May 18, 2011 at 9:12 PM, CakePHP.Saint > > wrote: > > How to cake bake in Linux environment - Cakephp? > > I download the latest version from cakephp website. created some > > tables and trying to bake process but its not working. I try to run > > cake bake inside cake/console but nothing happens > > > but in windows we need to set the environment variables like that any > > settings need for LINUX.. > > I am using openSuse, and you should be able to do it in any distros. > > #cd /srv/www/cake/ <-my cake dir on web server > #./cake/console/cake bake > > That's it. > > -- > Regards,,, > mastanto -- 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
Re: Problem with debug - IMPORTANT
So now if u change back 2 what happen? Sent from my iPhone On 2011-05-19, at 8:06, "damia...@gmail.com" wrote: > Hi > I've problem, I create function update in AJAX. All is fine but when I > change debug on 0 show me Error: The requested address. I delete cache > files , connect to database is correct. I don't have any idea how I > can resolve this problem. Anybody has the same problem? > Thanks for help > > -- > 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 -- 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
Re: Am I Violating MVC?
If UUIDs or auto-increments are a concern because you are entering that many records, you'd never do anything other than put it in a table and have a model. You almost suggest that having no constraint on the id column is a good thing. What happens when 'banana' gets inserted into it when it really ought to be a number? Integrity is all about constraint. Of course it has something to do with his question. You can't separate what is easy and right for the developer with what is right and easy for the consumer. If it's in the database you do a join and bring in the value in place of the id. You cannot do that once the data is separated from the code. Today it's in CakePHP, tomorrow it's being accessed via some other iPad interface that doesn't have the luxury of peeking into the right piece of code to interpret what that odd column means. MVC separates the layers of the application. If it's data, it goes in the Model. If it's in a Model, it ought to go in a table. How much hassle is it to create a table, an index, a constraint and a model? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 19:02, gremlin wrote: > Yeah but one side effect of the array datasource is that there is no > constraint on your 'id' column. You can make it a text string - as > long as it is unique in the $records for each records id field there > is no reason to use an integer. The array datasource doesn't auto- > increment or care about uuids or column types. > > Second, the question was specifically about the right way to do this > in MVC - CakePHP specifically. Worrying about how to do something > outside of cake with this data isn't in the scope of his question. > Also, any system that uses db storage for the genders is going to have > this issue. If you care you can easily enough do a structure similar > to ( id => auto increment int, slug => male/female/etc, key => 'M/F/ > etc', value=>'Male/Female/etc' ) and simply do a key / value lookup to > generate options and the slug field for lookups based on gender. Easy. > I think the hardest part of the above solution would be overriding the > Gender:find( ) for generating list type finds. That might even be > overkill since you can pass options to the find( 'list' ) call. > > I still think the configure method would be the easiest - plus you can > store form helper defaults in there, field defaults for field types > and then all of the other little options sets and messages that get > used could be in one place. > > > On May 19, 7:22 am, Jeremy Burns | Class Outfit > wrote: >> When you later do an extrapolation of this data (possibly outside of Cake) >> there is a disconnect between the id and the value, making it hard to >> interpret: >> >> "What does '3' mean? Let's go and look in the code - oops, I don't know how >> to." >> >> Jeremy Burns >> Class Outfit >> >> jeremybu...@classoutfit.comhttp://www.classoutfit.com >> >> On 19 May 2011, at 15:19, gremlin wrote: >> >> >> >> >> >> >> >>> Personally I dislike all the methods mentioned. >> >>> This is configuration data - load it from a config file. In your >>> bootstap.php do a Configure::load( 'forms' ); somewhere near the >>> bottom. >> >>> Then in /app/config/forms.php >> >>> put the configuration information for the select options. >> >>> $config[ 'Forms' ][ 'genderSelectOptions' ] = array( 'M' => 'Male', >>> 'F' => 'Female' ); >> >>> and load them in your views with >>> Configure::read( 'Forms.genderSelectOptions' ) when you need the >>> options loaded into the form helper. >> >>> http://book.cakephp.org/view/924/The-Configuration-Class >> >>> Another option - more robust than the method above and similar to the >>> Model options mentioned above is to use an ArrayDatasource and have a >>> Gender model that relates to the User (or whatever model has the need >>> to select a gender) >> >>> https://github.com/cakephp/datasources >> >>> On May 19, 4:50 am, Jeremy Burns | Class Outfit >>> wrote: I think this is the best advice (I always advocate storing everything in the database) but there might just be the odd exception. >> Jeremy Burns Class Outfit >> jeremybu...@classoutfit.comhttp://www.classoutfit.com >> On 19 May 2011, at 12:39, djogo wrote: >> > I think it depends whether you store this value in the database or > not. >> > If you do, the right thing is to create a table and then accessing it > by a model. For a very good reason, in big projects you don't want to > lose time thinking "is it a table or a array within a controller? in > which controller is it?". >> > Also, if this value is used in the database, later you may want to > write a single query to retrieve this data, and run this query on the > console (or a backup script, e.g.) and suddenly you realized that that > tied you to cakephp. >> > If you think that's the best solution (to keep this d
REST + Pagination
Hello World, I'm using cakePHP to build out an open data API in Jamaica (the first of its kinda here). Things have been going well thus far and I'm very happy with our decision. At the moment I am running into an issue with pagination. The basic problem is that I want to preserve the query passed to the view from the controller. At the moment when the user selects the default paginate the results for a particular query. Currently if you are on a page with a particular query: e.g http://localhost/agroProjects/api/crops?parish=st.andrew&district=bloxburgh If I click the Next or Prev button it goes to: http://localhost/agroProjects/api/crops/index/page:2 Which returns page two of the default query. Instead it should go to: http://localhost/agroProjects/api/crops/index/page:2?parish=st.andrew&district=bloxburgh I suspect it may be related to how I use the paginator helper in the View. The code is below Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?> Paginator->numbers();?> Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?> Any help would be greatly appreciated. (i.e not return the 250,000 records for every time I receive a query). We decided to limit the results returned (for . $cropData = $this->paginate('Crop', $query); But the issue is that that when I click "Next Page" in the view it forgets the original query paramer -- Regards, Matthew McNaughton www.twitter.com/mamcnaughton -- 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
Re: Problem with Save()
It's the fairies. If you want a better answer, show us some code, at least. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 18:44, damia...@gmail.com wrote: > Hi everyone > I've problem when i using debug >0 function save working. When I > change debug = 0 save return true, but in database table hasn't new > rows. I don't have any idea how I can resolve this problem. > Thanks for help > > -- > 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 -- 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
Re: user signup auth component stopped working
Is there a plugin / controller action doing some sort of resizing of a profile image or something? If there is do you have auth set to allow un-authorized users to hit that action? On May 18, 5:54 am, Foroct wrote: > It appears that the problem is related to David Persson's media > plugin.https://github.com/davidpersson/media > > In my model I commented out the call to his plugin and I can again add > a user > Previous code > var $actsAs = array('Containable','Media.Transfer', > 'Media.Coupler','Media.Generator'); > New code > var $actsAs = array('Containable' /* ,'Media.Transfer', > 'Media.Coupler','Media.Generator'*/); > > I am using the same plugin successfully on different model and my > $actAs array is exactly the same in both models. Does anyone know a > reason why this plugin would work on one model and not another? > > Thanks. -- 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
Re: Am I Violating MVC?
Yeah but one side effect of the array datasource is that there is no constraint on your 'id' column. You can make it a text string - as long as it is unique in the $records for each records id field there is no reason to use an integer. The array datasource doesn't auto- increment or care about uuids or column types. Second, the question was specifically about the right way to do this in MVC - CakePHP specifically. Worrying about how to do something outside of cake with this data isn't in the scope of his question. Also, any system that uses db storage for the genders is going to have this issue. If you care you can easily enough do a structure similar to ( id => auto increment int, slug => male/female/etc, key => 'M/F/ etc', value=>'Male/Female/etc' ) and simply do a key / value lookup to generate options and the slug field for lookups based on gender. Easy. I think the hardest part of the above solution would be overriding the Gender:find( ) for generating list type finds. That might even be overkill since you can pass options to the find( 'list' ) call. I still think the configure method would be the easiest - plus you can store form helper defaults in there, field defaults for field types and then all of the other little options sets and messages that get used could be in one place. On May 19, 7:22 am, Jeremy Burns | Class Outfit wrote: > When you later do an extrapolation of this data (possibly outside of Cake) > there is a disconnect between the id and the value, making it hard to > interpret: > > "What does '3' mean? Let's go and look in the code - oops, I don't know how > to." > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 19 May 2011, at 15:19, gremlin wrote: > > > > > > > > > Personally I dislike all the methods mentioned. > > > This is configuration data - load it from a config file. In your > > bootstap.php do a Configure::load( 'forms' ); somewhere near the > > bottom. > > > Then in /app/config/forms.php > > > put the configuration information for the select options. > > > $config[ 'Forms' ][ 'genderSelectOptions' ] = array( 'M' => 'Male', > > 'F' => 'Female' ); > > > and load them in your views with > > Configure::read( 'Forms.genderSelectOptions' ) when you need the > > options loaded into the form helper. > > >http://book.cakephp.org/view/924/The-Configuration-Class > > > Another option - more robust than the method above and similar to the > > Model options mentioned above is to use an ArrayDatasource and have a > > Gender model that relates to the User (or whatever model has the need > > to select a gender) > > >https://github.com/cakephp/datasources > > > On May 19, 4:50 am, Jeremy Burns | Class Outfit > > wrote: > >> I think this is the best advice (I always advocate storing everything in > >> the database) but there might just be the odd exception. > > >> Jeremy Burns > >> Class Outfit > > >> jeremybu...@classoutfit.comhttp://www.classoutfit.com > > >> On 19 May 2011, at 12:39, djogo wrote: > > >>> I think it depends whether you store this value in the database or > >>> not. > > >>> If you do, the right thing is to create a table and then accessing it > >>> by a model. For a very good reason, in big projects you don't want to > >>> lose time thinking "is it a table or a array within a controller? in > >>> which controller is it?". > > >>> Also, if this value is used in the database, later you may want to > >>> write a single query to retrieve this data, and run this query on the > >>> console (or a backup script, e.g.) and suddenly you realized that that > >>> tied you to cakephp. > > >>> If you think that's the best solution (to keep this data as an array), > >>> the ideal solution (in my mind) would be to have a Model which access > >>> this array instead of a database table. If you only need it for drop > >>> boxes, maybe this: > > >>> app/models/gender.php > > >>> class Gender // extends nothing > >>> { > >>> var $data = array( 'M' => 'Male', 'F' => 'Female' ); > > >>> function find($type,$opt=null) > >>> { > >>> if ( $type='list' ) return $data; > >>> throw new exception(" find('$type') in bogus model isn't supported > >>> - maybe it's time to use a real table." ); > >>> } > > >>> } > > >>> I know, it's ugly, but what's the upside of all this coding? All data > >>> in accessible by models, and you didn't wrote a lot of database tables > >>> that will never change. > > >>> I would love proper support of "virtual" models that access data on a > >>> CSV, static array, etc. > > >>> dfcp > > >>> On 18 maio, 15:46, Jason Mitchell wrote: > I have in a controller an array containing data used on the view to > populate > a drop down. I put it on the controller, so the array could be used by > multiple views associated with that controller (create, edit). > Additionally, > it means that if I do ever have to change it, I just have to change it > once > (yup, lazy). > > Becau
Re: Recursive pagination
Thanks for your help. Using the containable, I could solve my problem. Now I'm facing a related bug. The $paginator->sort helper on my view only works once for the 2nd order models. On the column "Test name" (which is a 1st order related model), both ascending and descending sorting are working fine. On the column "Test Language name" (which is a 2nd order related model), only ascending sorting is working. I can never get the descending order when clicking on the sorting link. I guess this is a CakePHP bug isn't it? How can I solve that? On May 19, 6:48 pm, Tilen Majerle wrote: > check the core cake's containable > behaviorhttp://book.cakephp.org/view/1323/Containable > -- > Lep pozdrav, Tilen Majerlehttp://majerle.eu > > 2011/5/19 thomaus > > > > > > > > > Hi there, > > > I would like to paginate a model with a recursive field. > > > My main model is called "Result". "Result" belongsTo "Test" and "Test" > > belongsTo "Language" > > > What I would like to achieve is to get the field "Language.name" (only > > available in the model "Language") as a sortable field of my "Result" > > pagination. I'm pretty sure this is feasible but I can't achieve it. > > > I think the best way to do it would be to find a way to merge the > > "Language.name" field into the "Test" but I can't achieve it neither. > > > Please, no "So simple! Just use CakePHP bind models!"-like answers, > > what I need is some working code! > > > Thanks for helping! > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > > athttp://groups.google.com/group/cake-php -- 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
Problem with Save()
Hi everyone I've problem when i using debug >0 function save working. When I change debug = 0 save return true, but in database table hasn't new rows. I don't have any idea how I can resolve this problem. Thanks for help -- 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
Re: Cake vs other frameworks benchmarks
I like the part where every new framework always wins the benchmark they run. Yii did the same thing when they came out, and I'm pretty sure Symfony2 has also published benchmarks where they won. Writing benchmarks is hard, and easy to create slanted/wrong results. To be honest in development mode CakePHP is slow, but you can easily get a 2x performance increase by setting things up in a non-noob fashion. And the core team is concerned about performance, and improving it. If you checkout the in development branch of 2.0, you'll see some significant improvement. -Mark On May 19, 1: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
Re: How to query hasAndBelongsToMany-Models?
Thanks, but that is not what i am looking for. I want to do a count on all the images in the gallery. Your query just counts the galleries if i change "all" to "count". And also that query also get's all the other things attached to a gallery as well which i don't want to. I only want to count and/or receive the pictures within a gallery. On 19 Mai, 04:42, dreamingmind wrote: > I have a habtm Image->GalleryImage->Gallery set up and can do what you > are looking for with this: > > $this->Image->Gallery->find('all', > array('conditions'=>array('Gallery.name' => 'seascapes'))); > > Regards, > Don > > On May 18, 3:15 pm, func0der wrote: > > > > > > > > > Hey guys, > > > i'm just wondering how you can do a ordinary hasAndBelongsToMany query > > with cake without all these dynamic bindings and stuff. > > > I'm having a gallery to galleryImages relationship but i can't search > > for images in a specific gallery over this relationship. > > This is maybe because i don't know how because i can't find a > > documentation or it's because CakePHP is not able to do it. > > > Either one or the other way there is a question: > > How can i do it? > > or > > Why is CakePHP not able to do such queries? > > > Greetings > > func0der -- 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
Re: Recursive pagination
check the core cake's containable behavior http://book.cakephp.org/view/1323/Containable -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/19 thomaus > Hi there, > > I would like to paginate a model with a recursive field. > > My main model is called "Result". "Result" belongsTo "Test" and "Test" > belongsTo "Language" > > What I would like to achieve is to get the field "Language.name" (only > available in the model "Language") as a sortable field of my "Result" > pagination. I'm pretty sure this is feasible but I can't achieve it. > > I think the best way to do it would be to find a way to merge the > "Language.name" field into the "Test" but I can't achieve it neither. > > Please, no "So simple! Just use CakePHP bind models!"-like answers, > what I need is some working code! > > Thanks for helping! > > -- > 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 > -- 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
Recursive pagination
Hi there, I would like to paginate a model with a recursive field. My main model is called "Result". "Result" belongsTo "Test" and "Test" belongsTo "Language" What I would like to achieve is to get the field "Language.name" (only available in the model "Language") as a sortable field of my "Result" pagination. I'm pretty sure this is feasible but I can't achieve it. I think the best way to do it would be to find a way to merge the "Language.name" field into the "Test" but I can't achieve it neither. Please, no "So simple! Just use CakePHP bind models!"-like answers, what I need is some working code! Thanks for helping! -- 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
Use the Auth or Acl
hey I'm new in cake and now I initial build my first project and succesful to use Auth component and next step I want to make permission group and I read Acl in book.cakephp and I confused in it . and I try to search other way to I found the auth component It can be done and I have question in future if my project have many feature and table Auth or Acl thing that can manage it better. I will have to study the instructions and use sorry to my bad english -- 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
Problem with debug - IMPORTANT
Hi I've problem, I create function update in AJAX. All is fine but when I change debug on 0 show me Error: The requested address. I delete cache files , connect to database is correct. I don't have any idea how I can resolve this problem. Anybody has the same problem? Thanks for help -- 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
Re: Random query question
one simple way would be to fetch all the records, then generate two non-equal random numbers in the range of found records, then pluck those two out of the result array. The returned records are numbered 0-10 in that array so it will be very simple to do! http://us.php.net/manual/en/function.rand.php Regards, Don On May 19, 5:56 am, Sarpidon wrote: > Hi everybody. > > I have a companies table and those companies have promotions. Each > company can have up to 10 promotions but only 2 can be displayed from > each company at one time. I've been trying to figure out how to > generate a single query that will select only 2 promotions randomly > from each company. Is that even possible? > > see screenshot attached -->http://screencast.com/t/dB2sqcEns > > so basically randomly select only 2 promotions with the same > company_id... > possible? how? > > Thank you for your time. -- 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
Re: How to change the URL from something like domain.com/users/view/1 to domain.com/users/prakhar
Your function does not have to accept an id; it can easily accept another value like username or slug. Look at how the url is being formed in the view and replace id with username. Then change you controller function to accept username, and change the find statement. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 06:27, Prakhar Alok wrote: > Hi, > > I have just started using cakephp. I was going through the tutorials > for building a blog and using auth component. > Lets say that I have added some users for the blog. Now I want to view > any user. For this I have baked the Users model. The URL will be > something like /users/view/1 (say its is is 1). What if I want the URL > to be transformed to the name of the user like /users/prakhar. Just > like when viewing any Facebook profile, for ex. mine is facebook.com/ > prakhar.alok. > > Help required. > > regards, > Prakhar > > -- > 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 -- 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
Re: CakePHP & SimpleTest : error
Sorry didn't read it fully. If you've tried other versions then I'm not sure. On 19 May 2011 14:55, Craig Norton wrote: > It says in the documentation that 1.1 isn't compatible. Use the version > below it, 1.01 I think. > > > On 19 May 2011 14:34, Carachi wrote: > >> Hello, >> I'm trying to use Simpletest for testing my controller. >> I go to http://localhost/test.php and give me this error: >> >> Fatal error: Call to undefined method >> CakeHtmlReporter::SimpleReporter() in /home/www/cake/tests/lib/ >> reporter/cake_base_reporter.php on line 85 >> >> I use cakephp 1.38 and simpletest 1.1alpha (but also with 1.0 give the >> same error). >> >> Why? >> How can I solve this problem? >> >> Thank you >> Bye >> >> -- >> 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 >> > > -- 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
Re: CakePHP & SimpleTest : error
It says in the documentation that 1.1 isn't compatible. Use the version below it, 1.01 I think. On 19 May 2011 14:34, Carachi wrote: > Hello, > I'm trying to use Simpletest for testing my controller. > I go to http://localhost/test.php and give me this error: > > Fatal error: Call to undefined method > CakeHtmlReporter::SimpleReporter() in /home/www/cake/tests/lib/ > reporter/cake_base_reporter.php on line 85 > > I use cakephp 1.38 and simpletest 1.1alpha (but also with 1.0 give the > same error). > > Why? > How can I solve this problem? > > Thank you > Bye > > -- > 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 > -- 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
How to change the URL from something like domain.com/users/view/1 to domain.com/users/prakhar
Hi, I have just started using cakephp. I was going through the tutorials for building a blog and using auth component. Lets say that I have added some users for the blog. Now I want to view any user. For this I have baked the Users model. The URL will be something like /users/view/1 (say its is is 1). What if I want the URL to be transformed to the name of the user like /users/prakhar. Just like when viewing any Facebook profile, for ex. mine is facebook.com/ prakhar.alok. Help required. regards, Prakhar -- 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
Re: Am I Violating MVC?
When you later do an extrapolation of this data (possibly outside of Cake) there is a disconnect between the id and the value, making it hard to interpret: "What does '3' mean? Let's go and look in the code - oops, I don't know how to." Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 15:19, gremlin wrote: > Personally I dislike all the methods mentioned. > > This is configuration data - load it from a config file. In your > bootstap.php do a Configure::load( 'forms' ); somewhere near the > bottom. > > Then in /app/config/forms.php > > put the configuration information for the select options. > > $config[ 'Forms' ][ 'genderSelectOptions' ] = array( 'M' => 'Male', > 'F' => 'Female' ); > > and load them in your views with > Configure::read( 'Forms.genderSelectOptions' ) when you need the > options loaded into the form helper. > > http://book.cakephp.org/view/924/The-Configuration-Class > > Another option - more robust than the method above and similar to the > Model options mentioned above is to use an ArrayDatasource and have a > Gender model that relates to the User (or whatever model has the need > to select a gender) > > https://github.com/cakephp/datasources > > On May 19, 4:50 am, Jeremy Burns | Class Outfit > wrote: >> I think this is the best advice (I always advocate storing everything in the >> database) but there might just be the odd exception. >> >> Jeremy Burns >> Class Outfit >> >> jeremybu...@classoutfit.comhttp://www.classoutfit.com >> >> On 19 May 2011, at 12:39, djogo wrote: >> >> >> >> >> >> >> >>> I think it depends whether you store this value in the database or >>> not. >> >>> If you do, the right thing is to create a table and then accessing it >>> by a model. For a very good reason, in big projects you don't want to >>> lose time thinking "is it a table or a array within a controller? in >>> which controller is it?". >> >>> Also, if this value is used in the database, later you may want to >>> write a single query to retrieve this data, and run this query on the >>> console (or a backup script, e.g.) and suddenly you realized that that >>> tied you to cakephp. >> >>> If you think that's the best solution (to keep this data as an array), >>> the ideal solution (in my mind) would be to have a Model which access >>> this array instead of a database table. If you only need it for drop >>> boxes, maybe this: >> >>> app/models/gender.php >> >>> class Gender // extends nothing >>> { >>> var $data = array( 'M' => 'Male', 'F' => 'Female' ); >> >>> function find($type,$opt=null) >>> { >>>if ( $type='list' ) return $data; >>>throw new exception(" find('$type') in bogus model isn't supported >>> - maybe it's time to use a real table." ); >>> } >> >>> } >> >>> I know, it's ugly, but what's the upside of all this coding? All data >>> in accessible by models, and you didn't wrote a lot of database tables >>> that will never change. >> >>> I would love proper support of "virtual" models that access data on a >>> CSV, static array, etc. >> >>> dfcp >> >>> On 18 maio, 15:46, Jason Mitchell wrote: I have in a controller an array containing data used on the view to populate a drop down. I put it on the controller, so the array could be used by multiple views associated with that controller (create, edit). Additionally, it means that if I do ever have to change it, I just have to change it once (yup, lazy). >> Because the data is relatively static, and is used in only isolated instances, it didn't seem to be worth the effort of creating a model for that data, and establishing a relationship between models. And, putting it on the controller, worked. >> Admittedly, I'm new to MVC, but this really doesn't seem to jive definition. Am I doing something wrong? If so, how would one but this on the model, short of some sort of association with another model? >> -- J. Mitchell >> >>> -- >>> Our newest site for the community: CakePHP Video >>> Tutorialshttp://tv.cakephp.org >>> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 >>> athttp://groups.google.com/group/cake-php > > -- > 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 -- 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
Re: Do you think this project is possible with CakePHP?
Hi Kyko, Thanks a lot. :) Regards, Dorell On May 18, 8:06 pm, Kyko wrote: > Hi Dorell, > > Of course this project is possible using CakePHP. > > Good luck! =) > > 2011/5/17 Dorell James > > > > > > > > > Hi Everyone, > > > I'm really new to cake and was wondering after studying it if this > > (project) below is possible (i guess, pretty much believe it's > > possible). :-) > > > Project is divided with sub-projects or modules. > > > MAIN PROJECT > > SUB-PROJECTS/MODULES > > - Inventory Management Software > > - TAR (Technical Action Requests) Solutions = import excel > > file i think and then when action is confirm it inserts records to the > > db (data are pulled from the excel file), export documents into excel/ > > word format. > > - Document Creator = This is a sub project that will be > > able to generate a ms.word doc out from a predefined template that we > > will be making. Some parts of the document created is changeable. I > > think this is a solution for our prone to error documents we created > > are too long and thus we came up into our mind that we can make a web- > > app that could put in data and use that data combined with template > > and generate a doc file. > > - Ajax capabilities = This will be my first > > time developing a project using cakephp and since I'm a newbie with > > cake, i would like to ask if it's easy to integrate with ajax > > capabilities and etc.. So sorry about this question. > > > Thanks much to all of you guys. > > > Best Regards, > > Dorell > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > > athttp://groups.google.com/group/cake-php -- 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
Re: Do you think this project is possible with CakePHP?
Hi, I appreciate your answer. Just really starting to learn more about Cake and haven't done any projects with Cake so far. Thanks a lot for your response. :) Regards, Dorell On May 19, 10:15 pm, Phang Mulianto wrote: > absolutely possible to do with cake. > > the question is not what cake can do..but what you can do with cake. > > :) > > > > > > > > On Wed, May 18, 2011 at 8:06 PM, Kyko wrote: > > Hi Dorell, > > > Of course this project is possible using CakePHP. > > > Good luck! =) > > > 2011/5/17 Dorell James > > >> Hi Everyone, > > >> I'm really new to cake and was wondering after studying it if this > >> (project) below is possible (i guess, pretty much believe it's > >> possible). :-) > > >> Project is divided with sub-projects or modules. > > >> MAIN PROJECT > >> SUB-PROJECTS/MODULES > >> - Inventory Management Software > >> - TAR (Technical Action Requests) Solutions = import excel > >> file i think and then when action is confirm it inserts records to the > >> db (data are pulled from the excel file), export documents into excel/ > >> word format. > >> - Document Creator = This is a sub project that will be > >> able to generate a ms.word doc out from a predefined template that we > >> will be making. Some parts of the document created is changeable. I > >> think this is a solution for our prone to error documents we created > >> are too long and thus we came up into our mind that we can make a web- > >> app that could put in data and use that data combined with template > >> and generate a doc file. > >> - Ajax capabilities = This will be my first > >> time developing a project using cakephp and since I'm a newbie with > >> cake, i would like to ask if it's easy to integrate with ajax > >> capabilities and etc.. So sorry about this question. > > >> Thanks much to all of you guys. > > >> Best Regards, > >> Dorell > > >> -- > >> Our newest site for the community: CakePHP Video Tutorials > >>http://tv.cakephp.org > >> Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > >> athttp://groups.google.com/group/cake-php > > > -- > > Our newest site for the community: CakePHP Video Tutorials > >http://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > > athttp://groups.google.com/group/cake-php -- 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
Re: Am I Violating MVC?
Personally I dislike all the methods mentioned. This is configuration data - load it from a config file. In your bootstap.php do a Configure::load( 'forms' ); somewhere near the bottom. Then in /app/config/forms.php put the configuration information for the select options. $config[ 'Forms' ][ 'genderSelectOptions' ] = array( 'M' => 'Male', 'F' => 'Female' ); and load them in your views with Configure::read( 'Forms.genderSelectOptions' ) when you need the options loaded into the form helper. http://book.cakephp.org/view/924/The-Configuration-Class Another option - more robust than the method above and similar to the Model options mentioned above is to use an ArrayDatasource and have a Gender model that relates to the User (or whatever model has the need to select a gender) https://github.com/cakephp/datasources On May 19, 4:50 am, Jeremy Burns | Class Outfit wrote: > I think this is the best advice (I always advocate storing everything in the > database) but there might just be the odd exception. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 19 May 2011, at 12:39, djogo wrote: > > > > > > > > > I think it depends whether you store this value in the database or > > not. > > > If you do, the right thing is to create a table and then accessing it > > by a model. For a very good reason, in big projects you don't want to > > lose time thinking "is it a table or a array within a controller? in > > which controller is it?". > > > Also, if this value is used in the database, later you may want to > > write a single query to retrieve this data, and run this query on the > > console (or a backup script, e.g.) and suddenly you realized that that > > tied you to cakephp. > > > If you think that's the best solution (to keep this data as an array), > > the ideal solution (in my mind) would be to have a Model which access > > this array instead of a database table. If you only need it for drop > > boxes, maybe this: > > > app/models/gender.php > > > class Gender // extends nothing > > { > > var $data = array( 'M' => 'Male', 'F' => 'Female' ); > > > function find($type,$opt=null) > > { > > if ( $type='list' ) return $data; > > throw new exception(" find('$type') in bogus model isn't supported > > - maybe it's time to use a real table." ); > > } > > > } > > > I know, it's ugly, but what's the upside of all this coding? All data > > in accessible by models, and you didn't wrote a lot of database tables > > that will never change. > > > I would love proper support of "virtual" models that access data on a > > CSV, static array, etc. > > > dfcp > > > On 18 maio, 15:46, Jason Mitchell wrote: > >> I have in a controller an array containing data used on the view to > >> populate > >> a drop down. I put it on the controller, so the array could be used by > >> multiple views associated with that controller (create, edit). > >> Additionally, > >> it means that if I do ever have to change it, I just have to change it once > >> (yup, lazy). > > >> Because the data is relatively static, and is used in only isolated > >> instances, it didn't seem to be worth the effort of creating a model for > >> that data, and establishing a relationship between models. And, putting it > >> on the controller, worked. > > >> Admittedly, I'm new to MVC, but this really doesn't seem to jive > >> definition. > >> Am I doing something wrong? If so, how would one but this on the model, > >> short of some sort of association with another model? > > >> -- > >> J. Mitchell > > > -- > > Our newest site for the community: CakePHP Video > > Tutorialshttp://tv.cakephp.org > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 > > athttp://groups.google.com/group/cake-php -- 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
Re: Do you think this project is possible with CakePHP?
absolutely possible to do with cake. the question is not what cake can do..but what you can do with cake. :) On Wed, May 18, 2011 at 8:06 PM, Kyko wrote: > Hi Dorell, > > Of course this project is possible using CakePHP. > > Good luck! =) > > > 2011/5/17 Dorell James > >> Hi Everyone, >> >> I'm really new to cake and was wondering after studying it if this >> (project) below is possible (i guess, pretty much believe it's >> possible). :-) >> >> Project is divided with sub-projects or modules. >> >> MAIN PROJECT >> SUB-PROJECTS/MODULES >> - Inventory Management Software >> - TAR (Technical Action Requests) Solutions = import excel >> file i think and then when action is confirm it inserts records to the >> db (data are pulled from the excel file), export documents into excel/ >> word format. >> - Document Creator = This is a sub project that will be >> able to generate a ms.word doc out from a predefined template that we >> will be making. Some parts of the document created is changeable. I >> think this is a solution for our prone to error documents we created >> are too long and thus we came up into our mind that we can make a web- >> app that could put in data and use that data combined with template >> and generate a doc file. >> - Ajax capabilities = This will be my first >> time developing a project using cakephp and since I'm a newbie with >> cake, i would like to ask if it's easy to integrate with ajax >> capabilities and etc.. So sorry about this question. >> >> Thanks much to all of you guys. >> >> Best Regards, >> Dorell >> >> -- >> 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 >> > > -- > 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 > -- 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
Re: Do you think this project is possible with CakePHP?
Hi Dorell, Of course this project is possible using CakePHP. Good luck! =) 2011/5/17 Dorell James > Hi Everyone, > > I'm really new to cake and was wondering after studying it if this > (project) below is possible (i guess, pretty much believe it's > possible). :-) > > Project is divided with sub-projects or modules. > > MAIN PROJECT > SUB-PROJECTS/MODULES > - Inventory Management Software > - TAR (Technical Action Requests) Solutions = import excel > file i think and then when action is confirm it inserts records to the > db (data are pulled from the excel file), export documents into excel/ > word format. > - Document Creator = This is a sub project that will be > able to generate a ms.word doc out from a predefined template that we > will be making. Some parts of the document created is changeable. I > think this is a solution for our prone to error documents we created > are too long and thus we came up into our mind that we can make a web- > app that could put in data and use that data combined with template > and generate a doc file. > - Ajax capabilities = This will be my first > time developing a project using cakephp and since I'm a newbie with > cake, i would like to ask if it's easy to integrate with ajax > capabilities and etc.. So sorry about this question. > > Thanks much to all of you guys. > > Best Regards, > Dorell > > -- > 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 > -- 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
Re: Cake vs other frameworks benchmarks
> 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. > > mutabor, I wish I had to time to follow every amateur trying to pull traffic to their site with these lame excuses of benchmarks. Over the last 6 years I have responded to numerous benchmarks like this and even given the person setting up these benchmarks advice on turning off some of the "magic" in CakePHP so it is more in line with the setup of the others tested. As a user of the framework you have just as much ability to put these claims to rest as anyone working on the CakePHP core team. -- Larry E. Masters -- 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
CakePHP & SimpleTest : error
Hello, I'm trying to use Simpletest for testing my controller. I go to http://localhost/test.php and give me this error: Fatal error: Call to undefined method CakeHtmlReporter::SimpleReporter() in /home/www/cake/tests/lib/ reporter/cake_base_reporter.php on line 85 I use cakephp 1.38 and simpletest 1.1alpha (but also with 1.0 give the same error). Why? How can I solve this problem? Thank you Bye -- 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
Random query question
Hi everybody. I have a companies table and those companies have promotions. Each company can have up to 10 promotions but only 2 can be displayed from each company at one time. I've been trying to figure out how to generate a single query that will select only 2 promotions randomly from each company. Is that even possible? see screenshot attached --> http://screencast.com/t/dB2sqcEns so basically randomly select only 2 promotions with the same company_id... possible? how? Thank you for your time. -- 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
Re: Cake vs other frameworks benchmarks
Possibly, but if you play your role correctly as the technical expert, they should listen to you, your experience and your advice. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 12:23, mutabor wrote: > 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 -- 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
Re: Am I Violating MVC?
I think it depends whether you store this value in the database or not. If you do, the right thing is to create a table and then accessing it by a model. For a very good reason, in big projects you don't want to lose time thinking "is it a table or a array within a controller? in which controller is it?". Also, if this value is used in the database, later you may want to write a single query to retrieve this data, and run this query on the console (or a backup script, e.g.) and suddenly you realized that that tied you to cakephp. If you think that's the best solution (to keep this data as an array), the ideal solution (in my mind) would be to have a Model which access this array instead of a database table. If you only need it for drop boxes, maybe this: app/models/gender.php class Gender // extends nothing { var $data = array( 'M' => 'Male', 'F' => 'Female' ); function find($type,$opt=null) { if ( $type='list' ) return $data; throw new exception(" find('$type') in bogus model isn't supported - maybe it's time to use a real table." ); } } I know, it's ugly, but what's the upside of all this coding? All data in accessible by models, and you didn't wrote a lot of database tables that will never change. I would love proper support of "virtual" models that access data on a CSV, static array, etc. dfcp On 18 maio, 15:46, Jason Mitchell wrote: > I have in a controller an array containing data used on the view to populate > a drop down. I put it on the controller, so the array could be used by > multiple views associated with that controller (create, edit). Additionally, > it means that if I do ever have to change it, I just have to change it once > (yup, lazy). > > Because the data is relatively static, and is used in only isolated > instances, it didn't seem to be worth the effort of creating a model for > that data, and establishing a relationship between models. And, putting it > on the controller, worked. > > Admittedly, I'm new to MVC, but this really doesn't seem to jive definition. > Am I doing something wrong? If so, how would one but this on the model, > short of some sort of association with another model? > > -- > J. Mitchell -- 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
Re: Cake vs other frameworks benchmarks
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
Re: Newb question - not as long a question as it looks, I promise.
Thanks guys :) -- 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
Re: How to cake bake in Linux environment - Cakephp?
On Wed, May 18, 2011 at 9:12 PM, CakePHP.Saint wrote: > How to cake bake in Linux environment - Cakephp? > I download the latest version from cakephp website. created some > tables and trying to bake process but its not working. I try to run > cake bake inside cake/console but nothing happens > > but in windows we need to set the environment variables like that any > settings need for LINUX.. > I am using openSuse, and you should be able to do it in any distros. #cd /srv/www/cake/ <-my cake dir on web server #./cake/console/cake bake That's it. -- Regards,,, mastanto -- 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
Re: Newb question - not as long a question as it looks, I promise.
I'm doing this to get the image name and directory to pass to PImage Where Picture is my model for storing the image information, and path is where the image is stored, relative to the img/ dir. (e.g. 'uploads/ pictures/myimage.jpg') $path_info=pathinfo($this->data['Picture']['path']); $image_dir=WWW_ROOT . 'img' . DS .$path_info['dirname'] . DS; $image_name=$path_info['basename']; Think that should help you. On May 19, 12:23 am, MeatSandwich wrote: > I'm using the > advicewww.jamesfairhurst.co.uk/posts/view/uploading_files_and_images_with_c... > to handle uploading images. > > The function uploads the files to the appropriate folder and then > returns a url which I add to $this->data so the location of the image > is saved in the database > To call the function: > $fileOK = $this->uploadFiles('img/files/campaigns', $this- > > >data['File']); > > Then add the url to the array to be saved > $this->data['User']['image_url'] = $fileOK['urls'][0]; > > image_url would end up looking like: files/campaigns/userphoto.jpg > > After I've done this, I want to resize the image a couple of times so > I have a large thumbnail and a smaller one as well as the original. > I'm using the advice at bakery.cakephp.org/articles/Perkster/ > 2008/04/12/image-resizer-crop > > to call the function I have to do > $this->PImage->resizeImage('resize', 'myimage.jpg', WWW_ROOT . 'img' . > DS, false, false, 480) > > in the above the myimage.jpg bit I'd obviously want to replace with > userphoto.jpg and the WWW_ROOT . 'img' . DS bit (which is supposed to > be the folder where the image is) I'd want to presumably put files/ > campaigns. > > My question simply is, how can I get from : > $this->data['User']['image_url'] > > To having two vars, one with just the userphoto.jpg and the other with > just the folder the image is in? > > I hope that makes sense, I'm new. I did try changing the PImage > function so it only needed the value in $this->data['User'] > ['image_url'] but that just caused lots of errors unsurprisingly. > > thanks in advance -- 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
Re: Cake vs other frameworks benchmarks
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
Re: Cake vs other frameworks benchmarks
Plus there is the features a framework can offer. If a framework has 3 classes don't think it helps u that much. But a framework like Cake which has a lot of automagic which if you understand is very usefull. Might speed things up. -- Thanks, Bogdan Bursuc! > I also just read the summary: > > Final Advice: There is more to consider than speed when selecting a PHP > framework; other factors such as security, ease of installation and > database support have to be examined as well. Other frameworks may be > slower but have greater and wider community support, in case you have some > trouble with the framework there are lots of users that could help who > have working experience with that framework. This is true with CakePHP, > Symfony and Zend framework, all of which are very popular among PHP > developers. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 19 May 2011, at 08:56, Jeremy Burns | Class Outfit wrote: > > Put Michael Schumacher at the wheel of a Skoda and I bet he could beat me > > in Ferarri. Benchmarks are mildy interesting, at best. > > > > Jeremy Burns > > Class Outfit > > > > jeremybu...@classoutfit.com > > http://www.classoutfit.com > > > > On 19 May 2011, at 08:53, Bogdan I. Bursuc wrote: > >> I've been using Cake 2.0 since 2.0-dev and I say that we should wait for > >> the final release and then see the benchmarks. It's way faster than > >> 1.3. And with so many new cool features. > >> > >> -- > >> Thanks, > >> Bogdan Bursuc! > >> > >>> 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. > >>> > >>> The usual problem with these benchmarks - is they don't set cake up > >>> correctly in the first place (they use it out of the box; cake ships > >>> in debug mode, with the session enabled etc.). And correcting that is > >>> in the hands of the person publishing their "results". > >>> > >>> But: How many of your clients use hello world apps? > >>> > Something should be done, even if there is no opportunity to increase > the speed, I guess Cake should apply some kind of PR actions :) > >>> > >>> The best thing that could be done in your eyes is for someone to > >>> dedicate a bit of time making cake faster - if only you had a few > >>> developers you could call upon to do that ... :) > >>> > >>> AD -- 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
Re: Cake vs other frameworks benchmarks
I also just read the summary: Final Advice: There is more to consider than speed when selecting a PHP framework; other factors such as security, ease of installation and database support have to be examined as well. Other frameworks may be slower but have greater and wider community support, in case you have some trouble with the framework there are lots of users that could help who have working experience with that framework. This is true with CakePHP, Symfony and Zend framework, all of which are very popular among PHP developers. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 08:56, Jeremy Burns | Class Outfit wrote: > Put Michael Schumacher at the wheel of a Skoda and I bet he could beat me in > Ferarri. Benchmarks are mildy interesting, at best. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 19 May 2011, at 08:53, Bogdan I. Bursuc wrote: > >> I've been using Cake 2.0 since 2.0-dev and I say that we should wait for the >> final release and then see the benchmarks. It's way faster than 1.3. And >> with so >> many new cool features. >> >> -- >> Thanks, >> Bogdan Bursuc! >> >> >>> 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. >>> >>> The usual problem with these benchmarks - is they don't set cake up >>> correctly in the first place (they use it out of the box; cake ships >>> in debug mode, with the session enabled etc.). And correcting that is >>> in the hands of the person publishing their "results". >>> >>> But: How many of your clients use hello world apps? >>> Something should be done, even if there is no opportunity to increase the speed, I guess Cake should apply some kind of PR actions :) >>> >>> The best thing that could be done in your eyes is for someone to >>> dedicate a bit of time making cake faster - if only you had a few >>> developers you could call upon to do that ... :) >>> >>> AD >> >> -- >> 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 > > -- > 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 -- 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
Re: Cake vs other frameworks benchmarks
Put Michael Schumacher at the wheel of a Skoda and I bet he could beat me in Ferarri. Benchmarks are mildy interesting, at best. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 19 May 2011, at 08:53, Bogdan I. Bursuc wrote: > I've been using Cake 2.0 since 2.0-dev and I say that we should wait for the > final release and then see the benchmarks. It's way faster than 1.3. And with > so > many new cool features. > > -- > Thanks, > Bogdan Bursuc! > > >> 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. >> >> The usual problem with these benchmarks - is they don't set cake up >> correctly in the first place (they use it out of the box; cake ships >> in debug mode, with the session enabled etc.). And correcting that is >> in the hands of the person publishing their "results". >> >> But: How many of your clients use hello world apps? >> >>> Something should be done, even if there is no opportunity to increase >>> the speed, I guess Cake should apply some kind of PR actions :) >> >> The best thing that could be done in your eyes is for someone to >> dedicate a bit of time making cake faster - if only you had a few >> developers you could call upon to do that ... :) >> >> AD > > -- > 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 -- 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
Re: Cake vs other frameworks benchmarks
I've been using Cake 2.0 since 2.0-dev and I say that we should wait for the final release and then see the benchmarks. It's way faster than 1.3. And with so many new cool features. -- Thanks, Bogdan Bursuc! > 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. > > The usual problem with these benchmarks - is they don't set cake up > correctly in the first place (they use it out of the box; cake ships > in debug mode, with the session enabled etc.). And correcting that is > in the hands of the person publishing their "results". > > But: How many of your clients use hello world apps? > > > Something should be done, even if there is no opportunity to increase > > the speed, I guess Cake should apply some kind of PR actions :) > > The best thing that could be done in your eyes is for someone to > dedicate a bit of time making cake faster - if only you had a few > developers you could call upon to do that ... :) > > AD -- 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
Re: Cake vs other frameworks benchmarks
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. The usual problem with these benchmarks - is they don't set cake up correctly in the first place (they use it out of the box; cake ships in debug mode, with the session enabled etc.). And correcting that is in the hands of the person publishing their "results". But: How many of your clients use hello world apps? > Something should be done, even if there is no opportunity to increase > the speed, I guess Cake should apply some kind of PR actions :) The best thing that could be done in your eyes is for someone to dedicate a bit of time making cake faster - if only you had a few developers you could call upon to do that ... :) AD -- 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