Re: Using REST In CakePHP 2.0
Me too. It doesn't work the way that it does in 1.3. It used to work but does not in Cake 2. Look at my mailing list posts from a few days ago on this topic. Matt Kaufman Http://mkfmn.com Sent from my iPhone On Nov 14, 2011, at 10:58 AM, Will <000w.s.s@gmail.com> wrote: > Hi all, > > I am trying to activate the REST functionality in CakePHP 2.0 for one > of my models called "Employee". In my controller, I have: > > function index(){ >$this->set('employees', $this->paginate('Employee')); > } > > In my view for the XML (/app/View/Employees/xml/index.ctp), I have: > > >$xml = Xml::build($employees); >echo $xml->saveXML(); >?> > > > I keep getting an "Invalid input. Error: An Internal Error Has > Occurred." message. I looked through the code a bit and found that > the Xml class appears to be expected an array with 1 and only one > element and an alphanumeric key. This makes me think that the example > in the book (http://book.cakephp.org/2.0/en/development/rest.html? > highlight=rest), which describes passing the result of $this->Recipe- >> find('all') to Xml::build(), is wrong because $this->Recipe- >> find('all') will return an array with numeric indices and multiple > elements. > > -- > 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: Auth password encryption
It is very fast to crack MD5 hashed with any Nvidia Video card with a GPU chip on it or FPGA. Matthew M. Kaufman Http://mkfmn.com 1-503-881-6906 Sent from my iPhone On Oct 21, 2011, at 10:49 AM, Nate wrote: > MD5 is only one way. It cannot be reversed...However, it has been > "cracked" and is considered insecure by itself. > > Why? Rainbow tables have billions of hashes. They contain any and > every password combination you can come up with. All an attacker has > to do is take an MD5 hash and compare it to what's in a rainbow table > - and that table will show you the original value (a password). > > Here's a great analogy I learned: > You're a chef and you make spaghetti and sauce. You serve the meal to > 5 people. Those 5 people then add salt to their spaghetti. No matter > how hard you try, you will never re-create their modification to the > meal. You don't know how much or how little they put on. > > Hope that kinda clears things up :) > > -- > 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: 2.0 view folders naming convention
Great; Ditch PHP 5 Standards too Sent from my iPhone On Oct 21, 2011, at 12:08 AM, Miles J wrote: > Oh my that is a god awful format. Looks like I am not upgrading. > > On Oct 20, 11:28 pm, Andras Kende wrote: >> Directories Capitalized, files lowercase :) >> >> Andras Kende >> >> On Oct 21, 2011, at 1:18 AM, Miles J wrote: >> >> >> >> >> >> >> >>> Wait, so is uppercase folder names for views standard now? >> >>> :/ >> >>> Not upgrading if so. >> >>> On Oct 20, 11:13 pm, Jeremy Burns | Class Outfit >>> wrote: How bad was my English/typing there? Poor form...let me redo that one. >> This is an upgraded application that I am working on that still has remnants of old code. The users controller still contains var $name = 'User', which was causing the error. Worth pointing out for others who are doing an upgrade as the upgrade shell didn't remove it. >> There, that's better. >> Jeremy Burns Class Outfit >> Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burnshttp://www.classoutfit.com >> Jeremy Burns Class Outfit >> http://www.classoutfit.com >> On 21 Oct 2011, at 07:03, Jeremy Burns | Class Outfit wrote: >> > No caching enabled, but I worked it out. >> > This is an upgraded application that I working that still lots of > remnants of old code. The users controller still var $name = 'User', > which was causing the error. Worth pointing out for others who are doing > an upgrade as the upgrade shell didn't remove it. >> > Jeremy Burns > Class Outfit >> > http://www.classoutfit.com >> > On 21 Oct 2011, at 06:54, Andras Kende wrote: >> >> app/View/Users/add.ctp is correct. >> >> Maybe cache is mixed up, try with debug=2 .. >> >> Andras >> >> On Oct 21, 2011, at 12:43 AM, Jeremy Burns wrote: >> >>> In the tutorial, the add user form is called (in other words, in a Users folder). When you run it the >>> code complains that it can't find app/View/User/add.ctp (in other >>> words, its looking in the User folder). The documentation around >>> naming convention is not clear on this subject. Which is correct? >> >>> -- >>> Our newest site for the community: CakePHP Video >>> Tutorialshttp://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.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.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 -- 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 release
Awesome image!!! Sent from my iPhone On Oct 18, 2011, at 12:05 PM, pedro rojo wrote: > hi zero try this > -- > 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
Fwd: Running Bake for Database Configuration File Setup
> Hello, > > I have always been worried about releases between Cake versions; however I > have/had/have the feeling that Cake 2.0 Stable is finally what I have been > waiting for: However, it is late at night and I am slightly tired [not > common]; and I just wanted to post this for documentation purposes. > > Am I doing something stupid or is there a bug here? > > root@mkfmnweb:/var/www/cake_2_0# ./lib/Cake/Console/cake bake > > Welcome to CakePHP v2.0.0 Console > --- > App : app > Path: /var/www/cake_2_0/app/ > --- > Interactive Bake Shell > --- > [D]atabase Configuration > [M]odel > [V]iew > [C]ontroller > [P]roject > [F]ixture > [T]est case > [Q]uit > What would you like to Bake? (D/M/V/C/P/F/T/Q) > > D > --- > Database Configuration: > --- > Name: > [default] > > Driver: (Mysql/Postgres/Sqlite/Sqlserver) > [Mysql] > Mysql > Persistent Connection? (y/n) > [n] > n > Database Host: > [localhost] > > Port? > [n] > > User: > [root] > root > Password: > > [removed] > Database Name: > [cake] > cake_2_0 > Table Prefix? > [n] > n > Table encoding? > [n] > n > > --- > The following database configuration will be created: > --- > Name: default > Driver: Mysql > Persistent: false > Host: localhost > User: root > Pass: *** > Database: cake_2_0 > --- > Look okay? (y/n) > [y] > y > Do you wish to add another database configuration? > [n] > n > PHP Fatal error: Class 'DATABASE_CONFIG' not found in > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262 > > Fatal error: Class 'DATABASE_CONFIG' not found in > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262 > root@mkfmnweb:/var/www/cake_2_0# > > > Am I running the correct path to bake or is this a bug? > > Thanks. > > Matthew M. Kaufman > http://mkfmn.com/ > > 503-881-6906 -- 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 Released
Yes, Also --- Does this bring a lot of opportunity to come for rewriting and enhancing the quality of many of the major and or popular plugins out there for < 2.0 Stable? I love the new file naming (Config/, etc,) and Structure of it entirely! Matt Kaufman http://mkfmn.com/ Sent from my iPhone On Oct 16, 2011, at 10:40 PM, DerekGardiner wrote: > How long with cake 1.3* be supported? We've just spent a significant > amount of time writing an application in 1.3* and would be gutted to > find out if we have to port to 2.0 already. > > On Oct 16, 11:40 pm, "O.J. Tibi" wrote: >> Yeah! Rave party everywhere for CakePHP 2.0! Wuzah! > > -- > 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: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php
Lol- yeah I was taken back by this! 'good tip' is all I could come up with. Sent from my iPhone On Oct 4, 2011, at 5:46 PM, "Larry E. Masters" wrote: > You have got to be kidding me. You would not seriously suggest this to > someone would you? > > -- > Larry E. Masters > > > On Mon, Oct 3, 2011 at 11:34 PM, vaibhav pathak > wrote: > hi friend > try ob_start(); function before the starting of class > CategoriesController extends AppController like in following manner. > ob_start(); > class CategoriesController extends AppController > { > > > } > > ?> > from > vaibhav pathak > > -- > 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: Warning (2): Cannot modify header information - headers already sent by
What is BOM? Sent from my iPhone On Oct 4, 2011, at 2:27 AM, BLABLABLA wrote: > HI.. > > The problem was the encoding. I have had the encoding UTF8, but needed the > encoding UTF8 without BOM. > > -- > View this message in context: > http://cakephp.1045679.n5.nabble.com/Warning-2-Cannot-modify-header-information-headers-already-sent-by-tp4860658p4867920.html > Sent from the CakePHP mailing list archive at Nabble.com. > > -- > 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: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php
Nice tip Sent from my iPhone On Oct 3, 2011, at 9:34 PM, vaibhav pathak wrote: > hi friend > try ob_start(); function before the starting of class > CategoriesController extends AppController like in following manner. > ob_start(); > class CategoriesController extends AppController > { > > > } > > ?> > from > vaibhav pathak > > -- > 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: PLEASE HELP ME! Warning (2): Cannot modify header information - headers already sent by cake php
Argh, I remember having this problem myself on a production deployment. Thanks for the tip on debugkit Sent from my iPhone Matt Kaufman http://mkfmn.com/ On Oct 3, 2011, at 6:14 PM, Sam Sherlock wrote: > It could be that you have some whitepace after a php closing tag (does the > cats controller have any whitespace before the opening of php - very first > line) > > the debugkit plugin has a command to search for whitespace > - S > > > > > On 1 October 2011 21:30, Dragana Kuzmanovic wrote: > failure: > Warning (2): Cannot modify header information - headers already sent > by (output started at /var/customers/webs/usr05/mkn151/app/controllers/ > categories_controller.php:1) [CORE/cake/libs/controller/controller.php > > my controller: > class CategoriesController extends AppController { >var $name = 'Categories'; >// Zugriff ohne Login >function beforeFilter(){ >parent::beforeFilter(); >$this->Auth->allow('choosecategories'); >} >// Liste der Kategorien >function index() { >$this->Category->recursive = 0; >$this->set('categories', $this->paginate()); >} >// Detailansicht >function view($id = null) { >if (!$id) { >$this->Session->setFlash(__('Ungültige Kategorie', > true)); >$this->redirect(array('action' => 'index')); >} >$this->set('category', $this->Category->read(null, $id)); >} >// Kategorie hinzufügen >function add() { >if (!empty($this->data)) { >$this->Category->create(); >if ($this->Category->save($this->data)) { >$this->Session->setFlash(__('Kategorie wurde > gespeichert.', > true)); >$this->redirect(array('action' => 'index')); >} else { >$this->Session->setFlash(__('Kategorie konnte > nicht gespeichert > werden. Versuchen Sie es nochmal.', true)); >} >} >$highscores = $this->Category->Highscore->find('list'); >$this->set(compact('highscores')); >} >// Kategorie bearbeiten >function edit($id = null) { >if (!$id && empty($this->data)) { >$this->Session->setFlash(__('Ungültige Kategorie', > true)); >$this->redirect(array('action' => 'index')); >} >if (!empty($this->data)) { >if ($this->Category->save($this->data)) { >$this->Session->setFlash(__('Kategorie wurde > gespeichert.', > true)); >$this->redirect(array('action' => 'index')); >} else { >$this->Session->setFlash(__('Kategorie konnte > nicht gespeichert > werden. Versuchen Sie es nochmal.', true)); >} >} >if (empty($this->data)) { >$this->data = $this->Category->read(null, $id); >} >$highscores = $this->Category->Highscore->find('list'); >$this->set(compact('highscores')); >} >// Kategorie löschen >function delete($id = null) { >if (!$id) { >$this->Session->setFlash(__('Ungültige Kategorie Id', > true)); >$this->redirect(array('action'=>'index')); >} >if ($this->Category->delete($id)) { >$this->Session->setFlash(__('Kategorie wurde > gelöscht.', true)); >$this->redirect(array('action'=>'index')); >} >$this->Session->setFlash(__('Kategorie wurden nicht gelöscht.', > true)); >$this->redirect(array('action' => 'index')); >} >// Kategorien auswählen >function choosecategories() { >//S
Re: Which is the better IDE for cakePHP?
I love the Padre IDE for Perl. Can someone build a Cake plugin on top of its Php plugin? Matt Kaufman Http://mkfmn.com/ Sent from my iPhone On Sep 26, 2011, at 12:16 PM, Hugo M wrote: > NetBeans is nice. > -- > 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: best open source development software 2011
Cool, Thanks for the (translation?) and Great post! Sent from my iPhone On Sep 23, 2011, at 2:22 PM, euromark wrote: > the German magazine "computerwoche" (computer week) just announced > cakephp the best "Best of Open Source 2011" this year: > http://www.computerwoche.de/software/software-infrastruktur/2495763/index2.html > > quick google translation: > "Among the PHP web framework CakePHP offered according to Infoworld, > the best balance between quantity of features and ease of use. CakePHP > applications require only minimal configuration effort and the > excellent selection of command-line tools reduces the time required to > build an application to a minimum. That means the only configuration > step is to define the connection parameters to the database server. > Cake PHP assigns to the models database tables and creates the > framework methods. If desired, tests can even be created for > individual areas. > CakePHP offers shortcuts for code reuse, helpers that simplify the use > of AJAX, and recommendations for securing your Web page. It is thus > clear why delighted Cake PHP in the user community so popular." > > -- > 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: Unknown top margin in layout
Are you using 1.3? I had this problem actually yesterday! I didn't look into it at all though... But I knew it existed. I assume somewhere in your AppController or beforeFilter()s somewhere. something is being put out, as in just a space. What happens in a blank install and re-construct or drop in of that header to a fresh cake install. It works, and fixes the problem --- Right? Argh, this happened to me on a (very, very large and active) site (social network) that used Cake and it was fucking horrible to find where this was happening... We were so disorganized at the time and up for days and days. Hehe.. But yes, try that? Miles J wrote: > I think you linked some wrong images. > > Try putting body { padding: 0; } and also taking a screenshot of the > source in CakePHP. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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?hl=en -~--~~~~--~~--~--~---