Unit Testing
Can anyone tell me how to do Unit Tests for controllers in Cake? The Tutorial at http://wiki.cakephp.org/tutorials:testing_cake_apps talks about a test_suite to check out from the repository but I didn't find anything there. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi-Step Form
Hi John I don't envy you the task :-( I am working from scratch and that is hard enough! My main problem is maintainability of the code. I can write something that works, however it becomes exceedingly difficult to debug and modify as the number of pages gets beyond three or four. The Redirect After Post article and the Struts example have put me on the right path though I think. Breaking the problem into two steps and handling them separately makes things clearer at the very least, even if it doesn't reduce the total amount of code much. Interested to hear how you go. Regards, Langdon John Zimmerman [gmail] wrote: > Thanks for the articles. They look like they might be helpful. I will > read through them tonight. > > I inherited a web application development project and am trying to move > away from the filearts framework. I have hacked on it as much as I can > but it just isn't very good at a lot of things. > > Currently I am using the old framework, PEAR's QuickForm, and a messy > controller that I wrote to keep the two in line. In general I am doing > the following > >1. display step 1 >2. validate posted data >3. if validate fails redisplay step 1 >4. if validate passes go to step 2 > > The number of steps are pre-defined. Moving forward to the next step is > being done through the php header('Location: url'); function. > > This method is getting very messy and since I am migrating to cake I am > very interested in avoiding the same kind of shenanigans. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi-Step Form
Thanks for the articles. They look like they might be helpful. I will read through them tonight.I inherited a web application development project and am trying to move away from the filearts framework. I have hacked on it as much as I can but it just isn't very good at a lot of things. Currently I am using the old framework, PEAR's QuickForm, and a messy controller that I wrote to keep the two in line. In general I am doing the followingdisplay step 1validate posted data if validate fails redisplay step 1if validate passes go to step 2The number of steps are pre-defined. Moving forward to the next step is being done through the php header('Location: url'); function. This method is getting very messy and since I am migrating to cake I am very interested in avoiding the same kind of shenanigans.On 5/18/06, Langdon Stevenson <[EMAIL PROTECTED]> wrote: If anyone is interested in this issue have a look at this article:http://today.java.net/pub/a/today/2005/03/29/webwizard2.htmIt's a discussion of a Struts based MVC Wizard, but the design principles should be re-usable with a bit of thought. Of particularinterest to me is the "redirect after post" idea, helping to prevent theuser clicking the browser back button, and resubmitting stale data. See this article for more info:http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPostRegards,Langdon John Zimmerman [gmail] wrote:> Does anyone have an easy way to construct a multi-step form? This would> be kind of a "wizard" format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi-Step Form
If anyone is interested in this issue have a look at this article: http://today.java.net/pub/a/today/2005/03/29/webwizard2.htm It's a discussion of a Struts based MVC Wizard, but the design principles should be re-usable with a bit of thought. Of particular interest to me is the "redirect after post" idea, helping to prevent the user clicking the browser back button, and resubmitting stale data. See this article for more info: http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost Regards, Langdon John Zimmerman [gmail] wrote: > Does anyone have an easy way to construct a multi-step form? This would > be kind of a "wizard" format. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Nothing displays for the add post form in blog tutorial
I get a blank page for my add page in the blog tutorial. I have no idea why. Here is the code: Add Post Title: input('Post/title', array('size' => '40'))?> tagErrorMsg('Post/title', 'Title is required.') ?> Body: textarea('Post/body', array('rows'=>'10')) ?> tagErrorMsg('Post/body', 'Body is required.') ?> submit('Save') ?> I am not sure why it does not display the form fields in either safari or firefox 1.5 everything else is working fine up to this point, and this code does not generate an error so it would seem to be a logic error some where. Also, I added some html outside the form tags and nothing showed up. Thanks, Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using a querystring results in 'Requested address could not be found error'
Shouldn't your url look like this? http://cake.localhost/users/post/add where you post to the $this->params array, accountID=1234. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Change user last logon time upon login
Hello, I'm new to CakePHP. I tried searching for "user last logon" or "last access" in this group, but I don't see any relevant post. Apologies if I didn't read carefully enough! Question: What's the easiest way to change a field such as "lastlogon" in a user table upon user login? (I thought imitating what edit() is doing would be enough, but...) I'm following the example of Simple User Authentication: http://manual.cakephp.org/chapter/19 Here are some snippets: class AppController extends Controller { ... function checkLogin() { // If the session info hasn't been set... if (!$this->Session->check('User')) { // Force the user to login $this->redirect('/users/login'); } } } class UsersController extends AppController { var $name = 'Users'; var $uses = 'User'; ... function index() { $this->checkLogin(); // force login // user can only read their own record $this->set('data', array('User' => $this->Session->read('User'))); } function login() { // If has submitted form data: if (!empty($this->data)) { $someone = $this->User->findByUsername($this->params['data']['User']['username']); if($someone['User']['password'] == md5($this->params['data']['User']['password'])) { $this->Session->write('User', $someone['User']); $this->set('login_error', false); // change lastlogon value and ip information /* $someone['User']['lastlogon'] = date("Y-m-d G:i:s"); $this->User->save($someone); */ $this->User->saveField('lastlogon', date("Y-m-d G:i:s")); // neither save() or saveField() in the above block works $this->redirect('/users'); } else { $this->set('login_error', true); } } else { $this->set('login_error', false); } } } Field "lastlogon" is of type "datetime". I'm sure this problem is really easy to solve. I just need some idea as to why this code won't work. Any gotchas in my syntax? Thank you for your time! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi-Step Form
I have been working on a step by step "wizard" style form for a week or so now. I have been unable to find an easy way to do it. The problem is that handling the navigation and data from a wizard is just plain complex. There are often three or more navigation options for each page, and each page has specific data requirements for both display, and handling. What it adds up to is a complex very control process. If anyone has a pattern for handling this sort of thing (that doesn't leave you with a controller filled with spaghetti!) I would love to hear about it. Regards, Langdon John Zimmerman [gmail] wrote: > Does anyone have an easy way to construct a multi-step form? This would > be kind of a "wizard" format. > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Multi-Step Form
Hi All;I too need such a beast for a checkout type arrangement, specifically allowing a button on the 2nd and subsequent steps that allows you to "go back".I have hacked something up, but im sure it's not right. MattaOn 5/19/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote: Does anyone have an easy way to construct a multi-step form? This would be kind of a "wizard" format.Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Google Sitemap
I saw somewhere that someone posted (might not be on this news group) a google sitemap generator for cakephp.I can't seem to find it right now.Does anyone know about this?Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Multi-Step Form
Does anyone have an easy way to construct a multi-step form? This would be kind of a "wizard" format.Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Database retrieval problem
Thanks for your info. To make sure if it was my configuration or not I tried the whole on a XAMPP installation (Apache2,PHP5,MySQL4.x) and everything worked directly. Maby it was my MySQL version (3.23) or some other configuration. I know it was a problem with my config, thanks again ! Regards Moob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Ajax Sortable Tutorial?
Jon, does the information from this post help at all? http://groups.google.com/group/cake-php/browse_thread/thread/694d96b7ac6f99a9/4d1ff2be201cd6ad?q=sortable&rnum=2#4d1ff2be201cd6ad I'm still trying to make heads or tales of it, myself, but it looks like this person had the same problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Tutorial+Script on ACL-Access-Checking
http://wiki.cakephp.org/tutorials:acl-access-checking Still has some limitations and lots of gotchas, but it's a start :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Ajax Sortable Tutorial?
I'm sorry, but I have no idea how to get the serialized list back to my controller. I can build the the link that I would like the send back to method I want to handle the data in my controller, but I can't figure out how to send it. Your example is the first one I've seen since I started searching for an answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: unset($this->params['data']) Not Working???
Hi Josh, I don't know why that wouldn't work, unless it's something to do with the browser remembering input (do the field values actually appear in the html source as value=?) Anyway it might be more useful to find out why the flash isn't working. You would only need to do this in the controller: $this->Session->setFlash ("Your enhancement has been saved, Go on, add another one!"); $this->redirect ($this->here); And make sure you have this in the layout somewhere: controller->Session)) $this->controller->Session->flash(); ?> If it doesn't work it'll probably be because of some sort of session problem that will bite eventually. Hope you find a solution, cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Multiple recursion levels
Hi, I found something and I don't know if it is a bug. I thought that the parameter $recursive in findAll() was the maximum deep, but I see it's the *exact* deep. So if I call findAll(.2), tables which are one level away aren't searched, are they? Thanks from Spain --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Saving related model data
Thanks for the confirmation Mika, much appreciated. I was tripped up by my previous experience with Hibernate and Java. Hibernate takes care of all of the models with one save and I was expecting the same with Cake. Regards, Langdon Mika wrote: > That's true. I think the manual should definitely explain this process > more as it is quite common. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: unset($this->params['data']) Not Working???
Nope. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: unset($this->params['data']) Not Working???
Maybe $this->data="" ?On 5/18/06, josh southern <[EMAIL PROTECTED]> wrote: In several applications I've developed, on the 'add' functions, insteadof using the built-in flash() function, I simply unset$this->params['data'] and display the empty form again with a successmessage, to allow for more rapid data input: //Save to DB and report on resultsif ($this->Enhancement->save($this->params['data'])) {$this->set('message', 'The new enhancement has been added.');unset($this->params['data']); $this->render();}For some reason, when I upgraded to version 1.0, this stopped working.The fields won't unset, which is very confusing for users. I assumethis is because of some new pass-by-reference functionality, which I understand is safer and better. But is there still a way to unset thefields (data) and just display an empty form and a message after thesave? When I try using the redirect() function, it doesn't get themesssage variable, and setAction() doesn't work either (times out). Any help is greatly appreciated.-- Armando Sosawww.nolimit-studio.comwww.dospuntocero.info --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
unset($this->params['data']) Not Working???
In several applications I've developed, on the 'add' functions, instead of using the built-in flash() function, I simply unset $this->params['data'] and display the empty form again with a success message, to allow for more rapid data input: //Save to DB and report on results if ($this->Enhancement->save($this->params['data'])) { $this->set('message', 'The new enhancement has been added.'); unset($this->params['data']); $this->render(); } For some reason, when I upgraded to version 1.0, this stopped working. The fields won't unset, which is very confusing for users. I assume this is because of some new pass-by-reference functionality, which I understand is safer and better. But is there still a way to unset the fields (data) and just display an empty form and a message after the save? When I try using the redirect() function, it doesn't get the messsage variable, and setAction() doesn't work either (times out). Any help is greatly appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Using a querystring results in 'Requested address could not be found error'
I am creating a login function and I am passing the url of the page they were trying to access as well as other information in the querystring using a $this->redirect in another function. The url looks like this: http://cake.localhost/users/login/?url=post.add&accountID=1234 When I put that in the address bar, I get the error that the requested address could not be found. I have setup the route: $Route->connect ('/login/*', array('controller'=>'users', 'action'=>'login')); Is this the correct way of setting it up? In the manual at http://manual.cakephp.org/chapter/7 , it states `For example, if the URL /posts/view/?var1=3&var2=4 was called, $this->params['pass'] would equal "?var1=3&var2=4".` --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Google Web Toolkit - Easy AJAX for CakePHP?
It is not an Ajax toolkit FOR java, but IN Java. You code and debug your frontend in Java, and then when you are done, you "compile" your code to javascritp and html. (I guess you could still use cakephp as a backend to feed the site created with GWT) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adding custom folder to the webroot
the modrewrite command in the webroot, doesn´t reroute requests for things that exist on the file system. Therefore I don´t think you need do anything ;). If you wanted to ensure that any assets/ requests that were missing were not passed to cake you would need to create a .htaccess file in the folder turning mod rewrite off. Although it might be useful to create an assets controller to check for snoopers in any case. Hope that´s helpful, cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Building select option list
I think if you use the generateList() method you may be able to loop through the array that it returns manually. In your controller: $this->set("options", $this->Model->Data->generateList()); In your view: You may have to play around with the array keys to get it to return the right data. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Adding custom folder to the webroot
Hi all I'm busy working on a major site using Cake 1.0 (which is incredible by the way - well done guys!). I've been using Cake since May 2005, and it really has come a long way. I want to add a new folder to the webroot called "assets" which will host things that aren't strictly "images", like downloads, java-based panorama scripts, etc. I guess Cake's location for this stuff is "files", but I just don't like that name, and I'm kinda anal like that ;) So, how does one go about telling cake to not pass requests for "/assets/ilookpano/exterior.jar" to some non-existence AssetsController, which would be it's default behavior? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: AJAX Forms
If _javascript_ is enabled you can try to create the activex and if it fails send the form in the normal way (form.submit())Regards,-- Pablo Viojo[EMAIL PROTECTED] http://pviojo.netOn 5/17/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:I hadn't looked at the manual yet. I suspected using the RequestHandler. The thing is the form does work with _javascript_disabled. But if you enable _javascript_ and disable ActiveX in IE itdoesn't work. Weird behavior. I will try to rework it from the groundup like you say. Make it work first without AJAX and then AJAX it. Thanks for the link too! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
saving hasAndBelongsToMany without form?
I'm building an app that does most of its work via AJAX, so I don't think the form-based methods for working with associations in the docs will work, and I can't figure out how to update and create hasAndBelongsToMany relationships from a controller. What I have is basically a posts table, a tags, table, and a posts_tags table as expected. The HABTM relationship works perfectly for retrieving data: When I retrieve posts I get the tags along with them. But saving is another matter. I've tried passing various permutations of the following array to Post->save(): Array ( [Post] => Array ( [name] => postname [id] => 138 ) [Tag] => Array ( [0] => Array ( [name] => test tag ) ) ) ...which I would expect to save a relationship between post #138 and the tag named "test tag", creating the tag if necessary. Is that possible? If so, what am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: How to Get Javascript Returned Data to Controller for Database Entry?
What I really need is to be able to use the serialize method of sortable. Does CakePHP provide access to it? I didn't see any mention of it in the API. If I can get access to it from the PHP in my page then I can post it as part of my form. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Who to do when link table use with hasBelongstomany (tablea_tableb) contain data ?
In my db shema I have albums linked with hasBelongstomany to musics. Track number is in albums_musics table. So what should I do to inform this field (Track number) ? Who to do when link table use with hasBelongstomany (tablea_tableb) contain data ? Best regards, Naonak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Inserting files automagically
My question is very simple: * Can I insert files in my database automagically using the file html tag? * I am doing it explicitelly, but, you know, programmers are always looking for ways of less working and more earning I'm Spanish so please write like if I am stupid Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Saving related model data
Create documentation bug at https://trac.cakephp.org/ticket/827 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Saving related model data
That's true. I think the manual should definitely explain this process more as it is quite common. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Using a Model in a Layout or Helper
You could use an element on the layout and then in the element call $this->requestAction which would call another view. It can be a bit tedious but it's maybe a "cleaner" way. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Problem with Complex Model Validation
Hi bakers! I've problems with advanced validation ( http://wiki.cakephp.org/tutorials:complex_model_validation_routines#step_8test_it_out ) when i try to insert a email already registered, cake doesn't find it because the email string was modified. For example i insert [EMAIL PROTECTED]: If I active debug i see the following sql string: SELECT `User`.`id`, `User`.`username`, `User`.`email`, `User`.`password`, `User`.`firstname`, `User`.`lastname`, `User`.`phone`, `User`.`modified`, `User`.`created` FROM `users` AS `User` WHERE `User`.`email` = "[EMAIL PROTECTED]" LIMIT 1 look email` = "[EMAIL PROTECTED]" ! If i do it in controller i cand find email. What's I am doing wrong? :( Thanks for answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: HABTM and join-table selections
well it was a copy/paste problem I guess :p Anyway, can somebody help me ? DJ Spark wrote: > found a typo: > > 'associationForeignKey'=> 't_objecti_id', > > that key doesn't exist, right ? > spark! > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---