Re: Save Uploaded/Parsed File to Database Table

2013-01-04 Thread lowpass
It's complaining because the insert includes just the modified and created fields, whereas your table requires that certain columns not be null. The other columns are not represented because you haven't set up your code correctly for Cake to include those data. On Fri, Jan 4, 2013 at 10:21 AM, Kar

Re: Save Uploaded/Parsed File to Database Table

2013-01-04 Thread lowpass
On Fri, Jan 4, 2013 at 10:14 AM, Karl Smith wrote: > > All I need from this array is the file name. Now with that said, I read alot > of articles online about saving files to a database. Some people think it is > better to save to the file system rather than the database. In my case I > think the

Helper

2013-01-04 Thread Advantage+
I hate having to type more than I need to so this might help you to use auto ElemetHelper. params['controller'] .DS. $name; } return $this->params['controller'] .DS. $this->params['action']; } } ?> It sure

Re: Custom column in association

2013-01-04 Thread Jonathan Sundquist
Create your table structure first and then run through cake bake to have it create your models for you. It should be fairly straight forward. I would also suggest removing the id field from matches_teams. On Fri, Jan 4, 2013 at 9:39 AM, marcus33cz wrote: > Thanx a lot jsundquist! > > I guess i

Re: Custom column in association

2013-01-04 Thread marcus33cz
Thanx a lot jsundquist! I guess it makes sense but the assotiation is getting pretty complicated. :) -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" gr

Re: Custom column in association

2013-01-04 Thread Jonathan Sundquist
What you are asking for is possible but I would suggest rethinking how you have your tables laid out and also consider how your data should relate to each other. The original meaning of a HABTM table (matches_teams) is meant to be only a joining table. It should really contain only match_id and te

Re: Save Uploaded/Parsed File to Database Table

2013-01-04 Thread Karl Smith
Also I forgot to list the errors I have been getting when running my script. *Warning* (512): *SQL Error:* 1452: Cannot add or update a child row: a foreign key constraint fails (`ilsa_slic`.`spreadsheets`, CONSTRAINT `spreadsheets_ibfk_1` FOREIGN KEY (`coverage_id`) REFERENCES `coverages`

Custom column in association

2013-01-04 Thread marcus33cz
Hiya, I'm wondering if this is possible - imagine you have these tables: *teams **(id, name)* *matches **(id, date_started, created, modified)* *matches_teams **(id, match_id, team_id)* * * Every team can participate in many matches (e.g. on monday Detroit vs L.A., on wednesday Detroit vs Boston

Re: Save Uploaded/Parsed File to Database Table

2013-01-04 Thread Karl Smith
Thank you for such a quick response, and yes I can not get the file to save in my database. Now to answer some of your questions...yes Coverage can only have one spreadsheet, and yes my spreadsheet table has a coverage_id field. With that said, I added die(debug(uploadedFile)); $CoverageId =

Re: Displayfield from plugin not used from main app

2013-01-04 Thread mk
I found my issue. What I meant was I was trying to get the 'username' to show up in a view that is not a view from the actual plugin. My mistake was simple, In my hasmany model relationship, I didn't have correct 'className', just had the controller name 'User' but was missing the reference to

Re: Deleting Data From Other Model/Controller

2013-01-04 Thread Insert Code
Thanks very much for the response and code example - it's set me on the right track. Thanks again. On Tuesday, 1 January 2013 19:55:54 UTC, cricket wrote: > > You could create a deleteItem action in InvoicesController but the > only reason I would do that is if I needed to do something with th

Re: Penetration tests

2013-01-04 Thread stabb
Has anyone used any of these under osx (besides the windows only ones)? On Friday, December 21, 2012 11:22:47 PM UTC+8, Jeremy Burns wrote: > > The tests were performed by the chap that runs my servers, so apologies if > I am not well informed. However, the tools he used were Nessus, Nikto, > Me