Can't save image-album_id and image-name after file-upload to server.

2010-03-07 Thread mattyh88
I've been trying to save some details of my image to the database. This is what I'm doing: (the upload works, but image-name and image- album_id don't get inserted in the database) Form: ?php echo $form-create('Image', array('type' = 'file', 'action' = 'upload')); echo

Re: Can't save image-album_id and image-name after file-upload to server.

2010-03-07 Thread mattyh88
I've just noticed that, when I put the first if (for the image upload) in comments, then the Image-save does work. The image successfully gets inserted. It just doesn't work when the first if (for the image upload) isn't commented. So basically, why does CakePhp skip my Image-save() (after

Re: Flame Post: Performance 1.2.6 vs 1.3.0-RC1 - Bad news.

2010-03-07 Thread Dérico Filho
@Walther: I think I did a mistake indeed. There is a missing slash by the end of 1.2.6 url address (http://serverbenchmark/cakephp-1.2.6 vs http://serverbenchmark/cakephp-1.2.6/). 1.3.0-RC1 out performed the 1.2.6. Thanks for the help On Mar 6, 2:25 am, Walther waltherl...@gmail.com wrote:

Re: Calling custom methods in related models

2010-03-07 Thread mathaios
I can confirm that all the related models called from a controller (like $this-contr1-contr2) are automatically re-generated by Cakephp. I can say that because I have some configuration done in other model's relations declaration that get overwritten and lost too. I think this is a plug-in only

Re: Flame Post: Performance 1.2.6 vs 1.3.0-RC1 - Bad news.

2010-03-07 Thread Dérico Filho
Gee! Now I am really confused... Ferrari 599 is 1.2.6 and Prius is 1.3.0-RC1? Anyway, the whole idea of hello world benchmarks is to assess the frameworks weight. That's all. I am not here trying to figure out if 1.2.6 is better or worse then 1.3.0-RC1. Even though you and I do not agree on this

Re: Calling custom methods in related models

2010-03-07 Thread Andy Dirnberger
What happens if you change SisField::$hasMany to var $hasMany = array('SisQueue');? pardon for my dumbness but I did not understand what you are asking me to do...in the model hasMany is already var hasMany= I'm asking you to change $hasMany from what you have to the shorter version I

Re: Show username and logout link when user is logged

2010-03-07 Thread cricket
if ($session-read('Auth.User')) { And to get the username use $session-read('Auth.User.username') (or whatever the field is) On Mar 6, 11:19 am, amarradi radis...@googlemail.com wrote: Hello together, i tryed this tutorial (http://komunitasweb.com/2009/03/cakephp-acl-tutorial-what-and-how/

Re: Subdomain Auth Problems

2010-03-07 Thread cricket
A subdomain is usually a completely separate site. Do you already have the same Cake app serving all of your subdomains? On Mar 6, 5:34 pm, Kyle Decot kdec...@gmail.com wrote: I have a couple different subdomains on my site but I am having some problems w/ the Auth Component. I login fine under

Re: Can't save image-album_id and image-name after file-upload to server.

2010-03-07 Thread cricket
Maybe $data is being changed. $this-log($this-data); if($this-Image-upload($this-data)) { $this-Session-setFlash('The image was successfully uploaded.'); $this-log($this-data); } On Mar 7, 7:50 am, mattyh88 mathew.hu...@gmail.com wrote: I've just noticed that, when I put the first if

Re: Containable not containing

2010-03-07 Thread cricket
Are you certain that you have a Task with ID = 2? Try setting debug to 2 and running the SQL directly in a terminal (or web interface, etc.) Also, I recommend that you list the fields in a separate array, if only for clarity. 'contain' = array( 'Event' = array( 'fields' =

Re: Searchable behavior on two models

2010-03-07 Thread cricket
What do the models look like? Especially the $actsAs arrays. What does the data look like before you save it? Are you using saveAll()? Try adding some debugging calls in the behavior's beforeSave() afterSave() methods. On Mar 6, 4:05 pm, Foroct forrestfraz...@gmail.com wrote: Continuing to

Re: Using hasMany from app to plugin

2010-03-07 Thread iamcam (Cameron Perry)
Nick, Correct me if I'm wrong... You ended up creating the association inside the chat plugin anyway - like any other model-to-model relationship? I wonder if I'm being too strict in trying to keep the plugin too app-agnostic. And the truth is, in the current app I have, there are other

Re: $useTable ignoring the alternate table name

2010-03-07 Thread rain...@gmail.com
Thanks - I didn't get the email replies for some reason! After some debugging I figured out it didn't like the names I was using and changed my model to Completeorder but I prefer CompleteOrder and I haven't done too much with it :) Thanks for your help and the headsup on import! Sarah Check

Re: Subdomain Auth Problems

2010-03-07 Thread Kyle Decot
Yep. It's all one Cake App. Any ideas? On Mar 7, 11:43 am, cricket zijn.digi...@gmail.com wrote: A subdomain is usually a completely separate site. Do you already have the same Cake app serving all of your subdomains? On Mar 6, 5:34 pm, Kyle Decot kdec...@gmail.com wrote: I have a couple

Re: Using Notepad++ to edit .ctp files

2010-03-07 Thread nickadeemus2002
This didn't work for me at first either. I too have the latest version of Notepad++. I eventually got it to work with one simple step. I followed the OP instructions and entered ctp as the user ext. When I clicked close and save in the style configurator, I was back on the main text editor

Re: Containable not containing

2010-03-07 Thread Brenda
Cricket, you are absolutely brilliant! Sure enough, no task with id=2. How I got an assignment in there without a valid task, I dunno, but that's a problem for another day... Thanks! Brenda Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Subdomain Auth Problem

2010-03-07 Thread Nabil Alsharif
My first guess would be that you lost session data when you went to the subdomain. Maybe because the session cookies weren't sent with the requests going to the subdomain or maybe something else, I'm can't see whats happening on your servers The point is it's easy to check if the session was

Re: Subdomain Auth Problem

2010-03-07 Thread Kyle Decot
Well my sessions.save is set to database in my core.php file. Also, I did $session-read() on my www page and I get all of my auth info, however if I do the same thing on, blog.mysite.com then auth is now empty. Any ideas on next steps to take towards solving this? Thanks guy. On Mar 7, 8:36 pm,

Re: Can saveAll ignore invalid data and save all others?

2010-03-07 Thread BrendonKoz
To clarify - I'd like invalid records to simply be ignored (and not saved), and valid records saved. I am pulling information in from a text file, each line in the file is generated from a system report. I don't want duplicates, but the generated report might have them so I've set a validation up

Re: Can saveAll ignore invalid data and save all others?

2010-03-07 Thread WebRenovator
Hi As far as I know there's no functionality in cake to chuck out invalid records from saveAll. You'd probably have to cycle through the array one by one and discard the invalid records. Then you can use saveAll() once you have the final valid set. On Mar 8, 7:03 am, BrendonKoz

Re: Can't save image-album_id and image-name after file-upload to server.

2010-03-07 Thread mattyh88
Thank you for the reply. But i just tried to insert image details in the db first and then upload the picture and now it works lol. Just by switching model functions from place. On 7 mrt, 17:52, cricket zijn.digi...@gmail.com wrote: Maybe $data is being changed. $this-log($this-data);