Re: cakePHP 1.3 Session Flash Message Not Showing
Thanks for the feedback...now the flash message is showing on saving from controller.but the auth messages are not still displaying ie on trying to log in the auth failure message is not showing am still missing anything as i am merging from cakephp 1.2.9 to 1.3. Below is the code section: Code from app controller: $this->Auth->loginError = 'Sorry, login failed. Either your username or password are incorrect.'; $this->Auth->authError = 'The page you tried to access is restricted. You have been redirected to the page below.'; $this->Auth->loginRedirect = '/userhome'; $this->Auth->logoutRedirect = '/'; And Session Flash code in login template: check('Message.flash')): echo $session->flash(); endif; if ($session->check('Message.auth')): echo $session->flash('auth'); endif; ?> Any help will be very helpful. Thanks in advance. On Sep 22, 8:15 pm, dw wrote: > Make sure you have: > echo $session->flash(); > > in your layout. I think I remember that changing from 1.2 to1.3 > > -d > > On Sep 22, 8:19 am, Joffin Joy wrote: > > > > > > > > > Hi Sir, > > > I was working with 1.2.9 for a long time and never updated the > >cakephp. > > > But when i updated the cake to1.3the save is working but theflash > >messageisnotshowing. > > > Please help me as i want to integrate facebook connect to my app but > >cakephp1.2.9 isnotworking correctly with facebook login. > > > Any help is much appreciated. > > > Thanks in advance. > > > Below is code: > > > function add() { > > $this->layout = 'innerpage'; > > if (!empty($this->data)) { > > $this->City->create(); > > if ($this->City->save($this->data)) { > > $this->Session->setFlash(__('The city has > > been saved', true)); > > $this->redirect(array('action' => 'index')); > > } else { > > $this->Session->setFlash(__('The city > > couldnotbe saved. Please, > > try again.', true)); > > } > > } > > $countries = $this->City->Country->find('list'); > > $this->set(compact('countries')); > > } -- 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
filtering
Can anyone give me any idea how I want to do a filtering? example: after i select one 1st cat, it will show all list under 1st cat. -- 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: Duplicate emails sent.
Seems to happening with my config too: App::uses('CakeEmail', 'Network/Email'); $body = print_r($click, true) . ' - ' . print_r($product, true); $email = new CakeEmail(); $email->from('and...@andraskende.com'); $email->to('and...@kende.com'); $email->subject(env('HTTP_HOST') . ' - click - ' . date('Y-m-d H:i:s')); $email->send($body); Sep 22 21:39:06 localhost postfix/pickup[10492]: 30B163F707: uid=33 from= Sep 22 21:39:06 localhost postfix/cleanup[11886]: 30B163F707: message-id=<4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: from=, size=2893, nrcpt=1 (queue active) Sep 22 21:39:06 localhost postfix/pickup[10492]: 36B5C3F708: uid=33 from= Sep 22 21:39:06 localhost postfix/cleanup[11892]: 36B5C3F708: message-id=<4e7be33a-0be8-48f2-84b1-2c3242e42...@www.unionofsports.com> Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: from=, size=2893, nrcpt=1 (queue active) Sep 22 21:39:06 localhost postfix/smtp[11893]: 30B163F707: to=, relay=aspmx.l.google.com[74.125.115.26]:25, delay=0.55, delays=0.01/0/0.06/0.48, dsn=2.0.0, status=sent (250 2.0.0 OK 1316741946 n3si2277992vcu.198) Sep 22 21:39:06 localhost postfix/qmgr[29587]: 30B163F707: removed Sep 22 21:39:06 localhost postfix/smtp[11894]: 36B5C3F708: to=, relay=aspmx.l.google.com[74.125.115.26]:25, delay=0.61, delays=0/0/0.07/0.54, dsn=2.0.0, status=sent (250 2.0.0 OK 1316741946 k11si2287874vcq.91) Sep 22 21:39:06 localhost postfix/qmgr[29587]: 36B5C3F708: removed Gmail removes the duplicates though.. Andras Kende On Sep 22, 2011, at 8:35 PM, Vinícius Moraes de Araújo wrote: > It happens to me too, > > Atenciosamente, > > Vinícius Moraes > > > 2011/9/22 #2Will > I have Upgraded to the new RC2 but this is still an issue. > > This happens with either the default Mail config or using gmail as > smtp. So it dosn't seem to be something to do with the server. > > > if anybody can shed any light on this, that would be awesome. > > will > > > > > > On Sep 22, 3:25 pm, "#2Will" wrote: > > Still stuck on this. > > > > Whats odd is it is sending duplicates to my work email, and another > > pop type email - but if i set the to my gmail, just the one email. > > > > Seems odd. Must be a reason. > > > > w > > > > On Sep 14, 4:25 pm, "#2Will" wrote: > > > > > > > > > > > > > > > > > Hello > > > > > My little app is sending duplicates of itsemails. > > > > > Here is an example function: > > > [code] > > > $this->log($media); > > > App::uses('CakeEmail', 'Network/Email'); > > > $CakeEmail = new CakeEmail(); > > > $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person)); > > > $CakeEmail->from(Configure::read('app.email')); > > > $CakeEmail->to ( $person['email'] ); > > > $CakeEmail->subject('New File Notification from ' . > > > Configure::read('app.name')); > > > $CakeEmail->template('media_add', 'default'); > > > $CakeEmail->emailFormat('text'); > > > $CakeEmail->send(); > > > [/code] > > > The code only runs once - verified by checking the logs for the $media > > > dump - and that template isn't referenced anywhere else - so it > > > isn't redierecting off and sending again. > > > > > What could it be? I'm a bit stumped for ideas to debug it > > > > > Thanks, > > > > > Will > > > > > oh, cake2.0 rc1 > > -- > 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: Duplicate emails sent.
It happens to me too, Atenciosamente, Vinícius Moraes 2011/9/22 #2Will > I have Upgraded to the new RC2 but this is still an issue. > > This happens with either the default Mail config or using gmail as > smtp. So it dosn't seem to be something to do with the server. > > > if anybody can shed any light on this, that would be awesome. > > will > > > > > > On Sep 22, 3:25 pm, "#2Will" wrote: > > Still stuck on this. > > > > Whats odd is it is sending duplicates to my work email, and another > > pop type email - but if i set the to my gmail, just the one email. > > > > Seems odd. Must be a reason. > > > > w > > > > On Sep 14, 4:25 pm, "#2Will" wrote: > > > > > > > > > > > > > > > > > Hello > > > > > My little app is sending duplicates of itsemails. > > > > > Here is an example function: > > > [code] > > > $this->log($media); > > > App::uses('CakeEmail', 'Network/Email'); > > > $CakeEmail = new CakeEmail(); > > > $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person)); > > > $CakeEmail->from(Configure::read('app.email')); > > > $CakeEmail->to ( $person['email'] ); > > > $CakeEmail->subject('New File Notification from ' . > > > Configure::read('app.name')); > > > $CakeEmail->template('media_add', 'default'); > > > $CakeEmail->emailFormat('text'); > > > $CakeEmail->send(); > > > [/code] > > > The code only runs once - verified by checking the logs for the $media > > > dump - and that template isn't referenced anywhere else - so it > > > isn't redierecting off and sending again. > > > > > What could it be? I'm a bit stumped for ideas to debug it > > > > > Thanks, > > > > > Will > > > > > oh, cake2.0 rc1 > > -- > 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: Duplicate emails sent.
I have Upgraded to the new RC2 but this is still an issue. This happens with either the default Mail config or using gmail as smtp. So it dosn't seem to be something to do with the server. if anybody can shed any light on this, that would be awesome. will On Sep 22, 3:25 pm, "#2Will" wrote: > Still stuck on this. > > Whats odd is it is sending duplicates to my work email, and another > pop type email - but if i set the to my gmail, just the one email. > > Seems odd. Must be a reason. > > w > > On Sep 14, 4:25 pm, "#2Will" wrote: > > > > > > > > > Hello > > > My little app is sending duplicates of itsemails. > > > Here is an example function: > > [code] > > $this->log($media); > > App::uses('CakeEmail', 'Network/Email'); > > $CakeEmail = new CakeEmail(); > > $CakeEmail->viewVars(array('media'=>$media, 'person'=>$person)); > > $CakeEmail->from(Configure::read('app.email')); > > $CakeEmail->to ( $person['email'] ); > > $CakeEmail->subject('New File Notification from ' . > > Configure::read('app.name')); > > $CakeEmail->template('media_add', 'default'); > > $CakeEmail->emailFormat('text'); > > $CakeEmail->send(); > > [/code] > > The code only runs once - verified by checking the logs for the $media > > dump - and that template isn't referenced anywhere else - so it > > isn't redierecting off and sending again. > > > What could it be? I'm a bit stumped for ideas to debug it > > > Thanks, > > > Will > > > oh, cake2.0 rc1 -- 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 1.3 Session Flash Message Not Showing
I think you meant to change it to: echo $this->Session->flash(); On Sep 22, 8:15 am, dw wrote: > Make sure you have: > echo $session->flash(); > > in your layout. I think I remember that changing from 1.2 to 1.3 > > -d > > On Sep 22, 8:19 am, Joffin Joy wrote: > > > > > > > > > Hi Sir, > > > I was working with 1.2.9 for a long time and never updated the > > cakephp. > > > But when i updated the cake to 1.3 the save is working but the flash > > message is not showing. > > > Please help me as i want to integrate facebook connect to my app but > > cakephp 1.2.9 is not working correctly with facebook login. > > > Any help is much appreciated. > > > Thanks in advance. > > > Below is code: > > > function add() { > > $this->layout = 'innerpage'; > > if (!empty($this->data)) { > > $this->City->create(); > > if ($this->City->save($this->data)) { > > $this->Session->setFlash(__('The city has > > been saved', true)); > > $this->redirect(array('action' => 'index')); > > } else { > > $this->Session->setFlash(__('The city could > > not be saved. Please, > > try again.', true)); > > } > > } > > $countries = $this->City->Country->find('list'); > > $this->set(compact('countries')); > > } -- 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: Config mode error: AdminController not found
What are you trying to do? On Sep 22, 11:43 am, terry brown wrote: > Message said to define it in admin-controller.php as: > > class AdminController extends AppController { > function index { > > } > > } > > ?> > > Unable to get past this point (my database is set up thru pnpMyAdmin). -- 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: Using Auth To Limit Results
Thanks, I agree. Simple is better at the moment. it seems to cover everything I want. Thanks for the replies. On Sep 22, 5:41 pm, WebbedIT wrote: > I don't see why this has to get any more complex than what Teddy > suggested? I have always stayed well clear of ACL as it was too > complex for me to implement when first learning CakePHP and I've never > needed more than standard Auth and User Groups in the many CakePHP > sites I have developed since. > > @Thomas: I have however bookmarked that RMAC plugin for further > reading - maybe I should go back and look at ACL some time too. > > HTH, Paul > > On Sep 21, 12:05 pm, Thomas Ploch wrote: > > > > > > > > > Taking that you are new to CakePHP this might be a bit too hard to > > digest, but I recommend at least reading this article: > > >http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/http://jmcne... > > > This is implementing UNIX-style permissions for Model access, which is > > basically what you want. > > > Kind regards > > Thomas > > > Am 21.09.2011 11:28, schrieb elogic: > > > > Is there any quick / better way to use Auth to limit the results based > > > on the users login details or is it just a matter of using if/else > > > statments to get what you want. > > > > For example, I have a list of products which all have a group id > > > assigned to them. Each user also has a group id. When the user is > > > logged in they are to only show the products that matches their group > > > id. > > > > I'm only new to cakephp and still do not know all the tricks or short > > > cuts for things like this. > > > > Thankyou -- 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
Config mode error: AdminController not found
Message said to define it in admin-controller.php as: Unable to get past this point (my database is set up thru pnpMyAdmin). -- 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
cache
Hola gente, he implementado el behaviour Tree de cake, pero tengo muchas categorías, mi consulat es si hay alguna forma de cachear todas las consutlas que hace el componente cuando se usa el getParent, children, etc.. Gracias Christian -- 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 2.0.0-RC2 and TinyMCE 3.4.4
Hi communitiy :) So here i have problem since CakePHP 2.0 beta Like other script i put script for tinymce with HtmlHelper::script(); and just, just for tinymce here was a problem with "rendering" I opened the rendered source code in browser and i opened link to this script...i'm getting this error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in MYPATH\tiny_mce.js on line 1 (This file exists for sure) And this is only with tinymce, all other script works well How i solve this problem: I opened libs/Cake/Routing/Dispacher.php and on line 317 should be this: include($assetFile); instead of 'include' i used 'readfile' here too and now this works :) -- 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 2.0.0-RC2 Conslole baking error
It it works from the browser the chances are that your php.ini is different for the cli environment, please check that both configuration files match. -- 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: Cake2.0
For models returning objects in 2.0 you should use this plugin: https://github.com/lorenzo/MongoCake It currently works exclusively with MongoDb but it is planned to work with relational databases very soon. These are the slides explaining how the plugin works http://www.slideshare.net/josezap1/mongo-cake-plugin-for-cakephp-20 Cheers -- 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 display files from a folder outside webroot?
On Sep 22, 2011, at 05:18, heohni wrote: > if(is_file('../CMS_images/'. > this way I can check if a file is "there". > > But how can I display this image in a view? Write a controller method that reads and outputs the image using readfile. http://php.net/readfile Then, wherever you want to include the image in your view, write an image tag whose src attribute is the URL of that controller method. -- 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 1.3 Session Flash Message Not Showing
Make sure you have: echo $session->flash(); in your layout. I think I remember that changing from 1.2 to 1.3 -d On Sep 22, 8:19 am, Joffin Joy wrote: > Hi Sir, > > I was working with 1.2.9 for a long time and never updated the > cakephp. > > But when i updated the cake to 1.3 the save is working but the flash > message is not showing. > > Please help me as i want to integrate facebook connect to my app but > cakephp 1.2.9 is not working correctly with facebook login. > > Any help is much appreciated. > > Thanks in advance. > > Below is code: > > function add() { > $this->layout = 'innerpage'; > if (!empty($this->data)) { > $this->City->create(); > if ($this->City->save($this->data)) { > $this->Session->setFlash(__('The city has > been saved', true)); > $this->redirect(array('action' => 'index')); > } else { > $this->Session->setFlash(__('The city could > not be saved. Please, > try again.', true)); > } > } > $countries = $this->City->Country->find('list'); > $this->set(compact('countries')); > } -- 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: Disable loggin, nice way?
Because my debug log file in 1 day grows to 96 MB of data :P (in a test environment!), and it will probably slow the site's performance. -- 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 1.3 Session Flash Message Not Showing
Hi Sir, I was working with 1.2.9 for a long time and never updated the cakephp. But when i updated the cake to 1.3 the save is working but the flash message is not showing. Please help me as i want to integrate facebook connect to my app but cakephp 1.2.9 is not working correctly with facebook login. Any help is much appreciated. Thanks in advance. Below is code: function add() { $this->layout = 'innerpage'; if (!empty($this->data)) { $this->City->create(); if ($this->City->save($this->data)) { $this->Session->setFlash(__('The city has been saved', true)); $this->redirect(array('action' => 'index')); } else { $this->Session->setFlash(__('The city could not be saved. Please, try again.', true)); } } $countries = $this->City->Country->find('list'); $this->set(compact('countries')); } -- 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: URL rewriting issue with cakephp 1.3.11
is that you shankar.did u once work for flsmidth in kenya? On Thu, Sep 22, 2011 at 8:10 AM, Shiv Shankar wrote: > I have configured cakephp on WINDOWS SERVER 2008 using WAMP > combination. I had worked a lot on cakephp using LAMP combination and > did'n get any problem in the post. But now i am getting the following > error. when i use the url http://localhost/cakephp/ > > > URL rewriting is not properly configured on your server. > > 1. Help me configure it > 2. I don't / can't use URL rewriting > > > I had gone through a number of tutorials to solve this but none proves > to be perfect. Please 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: Elgg v CakePhp
Hi flosky Thanks dor the advice, I'm going to look into cakePHP more and see how customisable it is, and if its easier to understand than Elgg Mark On Sep 22, 1:14 pm, "flo.kl...@googlemail.com" wrote: > Hey Mark, > > I can't answer all your questions, but the following: > Does cake have a steep learning curve? No, you can get a simple site going in > minutes and just take it from there. > Can u make custom queries in cake? Yes, in any cake Model Class u can do the > following: $this->query($myQuery); > > Hope that helps a little bit. > -flosky > > mark kelly schrieb: > > Elgg and cakePhp are similar in my opinion. They are both MVC > frameworks. Elgg, out of the box, is a social network engine. But it > can be customised to do anything. We're customising our site with Elgg > to work as a standard ecommerce site. > > The reason why I ask is that Elgg is not easy to get used to. There is > a very very steep learning curb. Plus, the database uses an EAV model > rather than a relational database model, making it slower and more > confusing in my opinion. > > I was wondering would we be better off changing to cakePhp, or even > building our own framework? Is there a very steep learning curve with > cake? Are there performance issues, as there are with Elgg? Can you > design your own database tables and write custom sql with Cake? With > Elgg, its very highly recommended that the database not be touched or > custom sql written.. > > On Sep 22, 4:39 am, "Yves S. Garret" > wrote: > > > > > > > > > > > That's not a very good comparison. This is what Elgg is: > > >http://en.wikipedia.org/wiki/Elgg_(software) > > > It's a social networking engine, but CakePHP is not. Could you narrow down > > your comparison? > > > On Wed, Sep 21, 2011 at 7:38 PM, mark kelly wrote: > > > Hi > > > My team have been using Elgg to build a social commerce site. We have > > > all found it confusing and slow. Additionally, the database uses an > > > EAV model, totally different to what we've all been used to. > > > > How does cakePhp compare to Elgg? Is it fast? Easy to use? > > > > Thanks > > > Mark > > > > -- > > > Our newest site for the community: CakePHP Video Tutorials > > >http://tv.cakephp.org > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp > > > 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 > 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: Elgg v CakePhp
Hey Mark, I can't answer all your questions, but the following: Does cake have a steep learning curve? No, you can get a simple site going in minutes and just take it from there. Can u make custom queries in cake? Yes, in any cake Model Class u can do the following: $this->query($myQuery); Hope that helps a little bit. -flosky mark kelly schrieb: Elgg and cakePhp are similar in my opinion. They are both MVC frameworks. Elgg, out of the box, is a social network engine. But it can be customised to do anything. We're customising our site with Elgg to work as a standard ecommerce site. The reason why I ask is that Elgg is not easy to get used to. There is a very very steep learning curb. Plus, the database uses an EAV model rather than a relational database model, making it slower and more confusing in my opinion. I was wondering would we be better off changing to cakePhp, or even building our own framework? Is there a very steep learning curve with cake? Are there performance issues, as there are with Elgg? Can you design your own database tables and write custom sql with Cake? With Elgg, its very highly recommended that the database not be touched or custom sql written.. On Sep 22, 4:39 am, "Yves S. Garret" wrote: > That's not a very good comparison. This is what Elgg is: > > http://en.wikipedia.org/wiki/Elgg_(software) > > It's a social networking engine, but CakePHP is not. Could you narrow down > your comparison? > > > > > > > > On Wed, Sep 21, 2011 at 7:38 PM, mark kelly wrote: > > Hi > > My team have been using Elgg to build a social commerce site. We have > > all found it confusing and slow. Additionally, the database uses an > > EAV model, totally different to what we've all been used to. > > > How does cakePhp compare to Elgg? Is it fast? Easy to use? > > > Thanks > > Mark > > > -- > > 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 -- 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: Elgg v CakePhp
Elgg and cakePhp are similar in my opinion. They are both MVC frameworks. Elgg, out of the box, is a social network engine. But it can be customised to do anything. We're customising our site with Elgg to work as a standard ecommerce site. The reason why I ask is that Elgg is not easy to get used to. There is a very very steep learning curb. Plus, the database uses an EAV model rather than a relational database model, making it slower and more confusing in my opinion. I was wondering would we be better off changing to cakePhp, or even building our own framework? Is there a very steep learning curve with cake? Are there performance issues, as there are with Elgg? Can you design your own database tables and write custom sql with Cake? With Elgg, its very highly recommended that the database not be touched or custom sql written.. On Sep 22, 4:39 am, "Yves S. Garret" wrote: > That's not a very good comparison. This is what Elgg is: > > http://en.wikipedia.org/wiki/Elgg_(software) > > It's a social networking engine, but CakePHP is not. Could you narrow down > your comparison? > > > > > > > > On Wed, Sep 21, 2011 at 7:38 PM, mark kelly wrote: > > Hi > > My team have been using Elgg to build a social commerce site. We have > > all found it confusing and slow. Additionally, the database uses an > > EAV model, totally different to what we've all been used to. > > > How does cakePhp compare to Elgg? Is it fast? Easy to use? > > > Thanks > > Mark > > > -- > > 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
How to display files from a folder outside webroot?
Hi, if(is_file('../CMS_images/'. this way I can check if a file is "there". But how can I display this image in a view? /CMS_images /controller /models etc... /webroot PS: I do not need to upload images, just display them... Any ideas? -- 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
URL rewriting issue with cakephp 1.3.11
I have configured cakephp on WINDOWS SERVER 2008 using WAMP combination. I had worked a lot on cakephp using LAMP combination and did'n get any problem in the post. But now i am getting the following error. when i use the url http://localhost/cakephp/ URL rewriting is not properly configured on your server. 1. Help me configure it 2. I don't / can't use URL rewriting I had gone through a number of tutorials to solve this but none proves to be perfect. Please 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
Database connection failure
Hi guys, To connect to a database, I have 2 hostnames which can be connected to. Both of them carry the same data. Basically they're used to balance the load. I can set the data source to any one of them. I'm able to do that. However, my problem is that, in case any of the hosts go down, I should be able to connect immediately to the other one. I mean how do I overload the app_model.php in such a way, that I should know immediately that the connection didn't get established, and I should connect to the other host. Can anybody help me with this? regards, Rishab -- 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: Wijmocake. A jQuery UI plugin
OK, I use jQuery UI a lot in my CakePHP apps, so maybe it's about time I started creating helpers to integrate them. I am watching the repo and will hopefully begin to contribute if I can get my head around creating helpers. I use the following parts of jQuery UI (and community plugins) regularly: - DatePicker - Dialog - Validate - Sortable - Button HTH, Paul -- 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: Using Auth To Limit Results
I don't see why this has to get any more complex than what Teddy suggested? I have always stayed well clear of ACL as it was too complex for me to implement when first learning CakePHP and I've never needed more than standard Auth and User Groups in the many CakePHP sites I have developed since. @Thomas: I have however bookmarked that RMAC plugin for further reading - maybe I should go back and look at ACL some time too. HTH, Paul On Sep 21, 12:05 pm, Thomas Ploch wrote: > Taking that you are new to CakePHP this might be a bit too hard to > digest, but I recommend at least reading this article: > > http://jmcneese.wordpress.com/2009/04/19/rmac-ftw-part-1/http://jmcneese.wordpress.com/2010/01/28/rmac-is-dead-long-live-rmac/ > > This is implementing UNIX-style permissions for Model access, which is > basically what you want. > > Kind regards > Thomas > > Am 21.09.2011 11:28, schrieb elogic: > > > > > > > > > Is there any quick / better way to use Auth to limit the results based > > on the users login details or is it just a matter of using if/else > > statments to get what you want. > > > For example, I have a list of products which all have a group id > > assigned to them. Each user also has a group id. When the user is > > logged in they are to only show the products that matches their group > > id. > > > I'm only new to cakephp and still do not know all the tricks or short > > cuts for things like this. > > > Thankyou -- 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: Disable Error On Live Site
Whenever a site is in production you should turn debug down to 0, but you should also deal with the above issue. It's throwing a database connection error for good reason - I would say your server's MySQL service is not configured and you;re going to need that at some point. - http://stackoverflow.com/questions/366550/mysql-problem-when-baking-with-cakephp - http://cakephp.1045679.n5.nabble.com/error-with-database-td3402481.html HTH, Paul On Sep 22, 2:53 am, Daniel Luiz Pakuschewski wrote: > At core.php, change the value of debug to 0 > > On Sep 21, 7:51 pm, tubiz wrote: > > > > > > > > > Please how do i disable cakephp production error from showing on a > > live site. I am getting this error > > > Warning (2): mysql_connect() [http://php.net/function.mysql-connect]: > > Can't connect to local MySQL server through socket '/var/run/mysqld/ > > mysqld.sock' (2) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, > > line 561] > > > Warning (2): mysql_query() expects parameter 2 to be resource, boolean > > given [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 613] > > > And wouldnt want it to be shown to visitors -- 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: Cake2.0
I don't think Cake 2 will go fully to data objects rather than arrays, but the following talk by Jose Lorenzo @ CakeFest 2011 may be of interest to you: http://cakefest.org/schedule/using-the-mongocake-plugin-for-cakephp-20-jose-lorenzo-rodriguez Larry is working on encoding all the videos and will be uploading them in the near future so you can see this talk for yourself. HTH, Paul On Sep 21, 7:35 pm, iphone5 wrote: > I heard rumors that we are turning search result into object list > instead of array. > Is it comming soon? As English is not my mother tongue, it is very > difficult to find > spelling mistakes, whereas if it was object I can just depend on auto- > complete. -- 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