Stange behaviour with find('list')

2016-02-17 Thread 'Michael Kornatzki' via CakePHP
d this is wrong! The key should now the same as the value. And if i run the sql against the mysql-Database i get the right results Do i oversee something? I use cakePhp 3.1.5 Thanks in advance, michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/Ca

Srange behaviour with find('list')

2016-02-17 Thread 'Michael Kornatzki' via CakePHP
the value. And if i run the sql against the mysql-Database i get the right results Do i oversee something? I use cakePhp 3.1.5 Thanks in advance, michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message be

Pass a variable to a model construct

2015-10-14 Thread Michael Houghton
My experience of this is only with Cake 2, so I don't know if it is possible in Cake 3, but if it is, please point me in the right direction. I find myself writing model files which pass the same parameters to my methods! For example My "Settings" model might have: public function

create database within cakephp and fill it with some tables.

2015-09-14 Thread Michael Schrading
Hi together. I need to create a database for a user, which has logged in and fill it with some standard tables. How do I do this within cakephp in a controller action or in a extra helper class? Thank for any hint Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

Dealing with MASSIVE Model Files

2015-09-09 Thread Michael Houghton
I have some big projects in CakePHP and always follow the Fat Models, Skinny Controllers approach. The issue I have now, is some of my model files are 5000 lines! Is there a better way to decouple code that putting it all into the model files. How could this code be separated into smaller

When Fat Models become too Fat?

2015-09-02 Thread Michael Houghton
in CakePHP 3? Thanks Michael -- 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" group. To unsubscribe from this group and stop receiving e

3.0 -- Pagination Helper with Custom Routes causes Missing Route Exception!

2015-03-26 Thread Michael Riddle
I'm trying to use the pagination helper, but it's causing missing route exception when used with any method that tries to generate a link. my route code looks like this: Router::prefix('manage', function ($routes) { $routes-connect('/:organizationNeedle',['controller'='Organizations','action'

How do I conenct to SOAP/WDSL with WSE 2.0 auth

2014-10-21 Thread Michael Hill
Hi, I have been trying to get my PHP application to chat with a .net server using SOAP and WDSL with WSE 2.0 auth. This is a little bit of a pain and was wondering if anyone could point in the direction of a some code or a tutorial or plugin that might help. Most of the searches that I have

3.0 $this-Form-model no longer works

2014-07-11 Thread Michael Houghton
In 2.x, one could use $this-Form-model which would show the current model being used by the form. This was very useful when making custom helpers. I notice in 3.0 this no longer works. Is there a way to get the current form model somehow in 3.0? -- Like Us on FaceBook

3.0 Tree Behavior - understanding find('treeList')

2014-07-11 Thread Michael Houghton
= $this-Pages-find('treeList')-all(); It just feels like I am missing something here. When I put my $pages variable into my 'options' = $pages for my form select, I get the following error: *Error: * Function name must be a string *File* /home/michael/public_html/bettornet/vendor/cakephp/cakephp

Re: 3.0 Tree Behavior - understanding find('treeList')

2014-07-11 Thread Michael Houghton
Hey Jose Sure thing. This seems like a similar issue that I had with: $this-Models-findByField($name)-first(); If you recall, I missed the - first() and was trying: $this-Models-findByField($name); Which just gives a whole lot of data on the schema. With the tree behavior, I am calling:

Re: 3.0 Tree Behavior - understanding find('treeList')

2014-07-11 Thread Michael Houghton
Thanks Jose - that seems to be it! It might be worth updating the Tree docs to show this. Unfortunately, that is still giving me the error: *Error: * Function name must be a string *File* /home/michael/public_html/bettornet/vendor/cakephp/cakephp/src/Collection/Iterator/TreePrinter.php

Re: 3.0 Tree Behavior - understanding find('treeList')

2014-07-11 Thread Michael Houghton
Hey Jose Here it is: https://gist.github.com/cakecoded/59511a440dfb9c5c7628 On Friday, July 11, 2014 12:44:56 PM UTC+1, José Lorenzo wrote: Can you gist your full code, I have no idea what that error is. On Friday, July 11, 2014 11:49:40 AM UTC+2, Michael Houghton wrote: Thanks Jose

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: 3.0 - Removal of JS Helper

2014-06-16 Thread Michael Houghton
Hey Mark - it is super handy at times! I've used it recently for - Ajax Pagination Ajax Links Multiple select boxes where the options change depending on above selections. I recently used the JS helper for the final Toptal exam question and completed the test site in 5 hours with it - most

Re: Cake 2.5.1 Extremely Slow With MSSQL?

2014-06-15 Thread Michael Houghton
I suspect this is a MYSQL setting. Out if interest, have you tried version 2.4 or below? -- 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 group. To

3.0 - Removal of JS Helper

2014-06-15 Thread Michael Houghton
It appears that the JS helper has been removed from CakePHP 3. I was just wondering why this was, and how things like Ajax Pagination and other handy JS functions will be handled going forward. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

CakePHP 2.4.9: Best convention for referencing sub-classes in a model from the view?

2014-05-11 Thread michael
The association should be there by default - most likely $post['Category']['name']; Otherwise just run pr($post); to see the full array! -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

3.0 View VS Template Folders

2014-05-10 Thread michael
Having bought up this topic over at GitHub https://github.com/cakephp/cakephp/issues/3458 - I am keen to provide some further thoughts on the new view folder layouts. Currently, in 3.0, there are two view folders: View - for view classes, and if I understand correctly, for template engines

Cakephp Radio Buttons from Database Entries

2013-12-26 Thread John Michael Tejano
I have a database table called Complaints which has the following fields id and description. Is it possible that the values in the complaints table be used as radio button input fields? Such as if the table contains 10 entries there will be 10 radio buttons. -- Like Us on FaceBook

Store checkboxes values in the database.

2013-12-17 Thread Michael Tejano
I have two tables called Employees and JobOrders , I want to make use of the checkboxes where users can select Employees depending on how many Employees are needed in a particular Job Order and then save it in the database. How can I do this in CakePHP? -- Like Us on FaceBook

CAKEPHP can not bake a search in view ?

2013-10-25 Thread Trần Michael
Hi Expert, Why new version, we can not bake a view that have search module ? it's dufficult to make it ? . I hope new version CAKEPHP can have it. Thks your time. I am a newbie. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Models Associations

2013-08-27 Thread Michael Roker
Hi folks, this is my new post. I am new to CakePHP, and to be honest I love it. However, I am definitely confused when it comes to the models/tables and associations. I am now working on a small project which is an online exam application. I've read the models section , in particular the models

Re: ACL-allow based on aco id

2013-08-02 Thread Michael Gaiser
I have tried to pass in arrays like (Aco=array(id=4)) but it doesn't seem to work. Any suggestions? On Thu, Aug 1, 2013 at 3:13 AM, Michael Gaiser mjgai...@gmail.com wrote: So I have seen a lot of examples that use the aco alias when calling allow() but they usually have the parent aco's

ACL-allow based on aco id

2013-08-01 Thread Michael Gaiser
So I have seen a lot of examples that use the aco alias when calling allow() but they usually have the parent aco's alias included. For example 'controllers/Users'. Is it possible to call allow() and just use the Aco.id and the Aro.id? Thanks ~Michael -- Like Us on FaceBook https

Re: Issues upgrading component from 1.x to 2.x

2013-06-24 Thread Michael Gaiser
base code but that means extending the class and overriding the necessary functions. On Mon, Jun 24, 2013 at 1:25 AM, Rachman Chavik rcha...@gmail.com wrote: On Sun, 23 Jun 2013 01:43:28 -0400, Michael Gaiser wrote: Or even, just a solid example that extends the existing AclComponent so

Issues upgrading component from 1.x to 2.x

2013-06-22 Thread Michael Gaiser
://bakery.cakephp.org/articles/macduy/2010/01/05/acl-caching-using-session Thanks. ~Michael -- 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 group. To unsubscribe

Re: Issues upgrading component from 1.x to 2.x

2013-06-22 Thread Michael Gaiser
Well, the code in the link actually extends AclComponent. Any other ideas? On Sat, Jun 22, 2013 at 3:37 PM, Gaurav Matta gauravgroup...@gmail.comwrote: Check component class it should extend. Component and not object On 22-Jun-2013 10:03 PM, Michael Gaiser mjgai...@gmail.com wrote: So I

Re: Issues upgrading component from 1.x to 2.x

2013-06-22 Thread Michael Gaiser
Or even, just a solid example that extends the existing AclComponent so that I can actually override some of the functions in it? Thanks again! On Sun, Jun 23, 2013 at 1:39 AM, Michael Gaiser mjgai...@gmail.com wrote: Well, the code in the link actually extends AclComponent. Any other ideas

ACL - Group question?

2013-06-18 Thread Michael Gaiser
, is there anyway to make the ACL Behavior also save the alias of the record? Thanks ~Michael -- 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 group

Re: Saving session data from a view

2013-06-16 Thread Michael Gaiser
John is right. Your view should only be concerned with how the data is presented, not how it is handled / manipulated. In the end, you should be able to completely swap out your views without having to adjust your controller at all. Follow the link John gave you and read up on it. It will save you

Re: A more advanced use of ACL?

2013-04-21 Thread Michael Gaiser
Small correction, I want to overload the authorize function of the auth component. On Sunday, April 21, 2013, Michael Gaiser wrote: The Alaxos ACL Plugin is pretty cool and I will want my code to work very similar to that when I am done, but I dont think it will do exactly what I want

Re: A more advanced use of ACL?

2013-04-21 Thread Michael Gaiser
if it will do what I need. Thanks. ~Michael On Sun, Apr 21, 2013 at 8:04 PM, godjen99 godje...@yahoo.com wrote: Although I stopped short of this in my recent projects, so I haven't tried it, but it seems you could create a component of your own and just inherit the AuthComponent

Re: A more advanced use of ACL?

2013-04-20 Thread Michael Gaiser
I do not really understand how the original worked in the first place so I would prefer to try and make use of the already existing code as much as possible. that being said, is there a way to change or overload the Auth components check function without having to edit the library file? ~Michael

A more advanced use of ACL?

2013-04-13 Thread Michael Gaiser
ARO's linked to the same User id. Does anyone know of a setup like this? Possibly a plugin? I think of a few ways to go about it, but they tend to avoid using ACL Auth. Has anyone had to deal with a setup like this? Thanks. ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find

CakeDC User Plugin Facebook Plugin (webtechnick)

2013-03-11 Thread Michael Spreu
Hi all. I use two Plugins ( CakeDC User and the webtechnick Facebook Plugin) and try to get them working together. My Problem is when I login via the Facebook Plugin the User from the Users Plugin (Table field facebook_id) is not updated and I have no permission to get into various pages...

Re: Ajax Pagination using elements - only each second link is using ajax function

2013-02-14 Thread Michael Bartos
Be sure to render the JavaScript code *outside* of your update DIV. -- 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 group. To unsubscribe from this group

Re: Find 'All' returns same record multiple times

2013-02-11 Thread Michael Gaiser
Using the group option solved this issue. Thanks. ~Michael On Sun, Feb 10, 2013 at 11:09 AM, 清水紘己 hiromi2...@gmail.com wrote: Perhaps you can't get hasMany records(Characters) at once with `join` option. Use bindModel() etc. See: http://book.cakephp.org/2.0/en/models/associations-linking

Find 'All' returns same record multiple times

2013-02-10 Thread Michael Gaiser
I want to know what I can do so it only returns the event once. Thanks. So here is my find parameters. $this-Event-find('all', array( 'conditions'=array('Location.id'=4), 'joins'=array( array('table' = 'characters_events', 'alias' = 'Characters', 'type' = 'inner', 'conditions' = array(

Re: Validating multiple fields problem

2013-01-29 Thread Michael Gaiser
that? It seems really hacky but I'm not sure why cake is working the way it is. Thanks for the help. ~Michael -- 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

Validating multiple fields problem

2013-01-25 Thread Michael Gaiser
? Thanks. ~Michael -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Components vs Helpers vs Utilities

2013-01-25 Thread Michael Gaiser
? ~Michael -- 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 group. To post to this group, send email to cake-php@googlegroups.com. To unsubscribe from this group

Model Validation Error Message

2013-01-18 Thread Michael Gaiser
So because of how I am dynamically creating my form inputs/save data, the standard rule validation msg isnt being displayed on the input when the save rule returns false. How do I manually trigger the msg to appear on a given input? Thanks ~Michael -- Like Us on FaceBook https

Pagination of another Model

2013-01-05 Thread Michael Gaiser
to default to the Event model. Anyone know how to have it list an index of the Feeding Model from the Events Index function? Thanks ~Michael -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

Re: Pagination of another Model

2013-01-05 Thread Michael Gaiser
I will try that out later tonight.. Thanks a lot for the quick reply. ~Michael On Sat, Jan 5, 2013 at 1:44 PM, lowpass zijn.digi...@gmail.com wrote: ), -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Dynamic Div styling question

2012-11-18 Thread Michael Gaiser
-style function with div's brackets? Thanks ~Michael -- 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 group. To post to this group, send email to cake-php

CakePHP 1.3 - MEIO Image Upload / Resize Gallery Tutorial Problem Please help me...

2012-10-21 Thread Michael Hofmair
hi Guy's, I'm trying to get this little Image Upload function to work on my cakePHP site this Tutorial on cakephp.org does pretty much all I need but I always run into Trouble when I try to get The same thing running on my site and i cant figure out why... your help would be much aprechiated!

Re: Installing an existing site locally on MAMP

2012-10-04 Thread Michael Connors
Make a directory somewhere on your drive, say its /user/me/projects/site. Download and unzip cakephp and put its contents in that folder site. open MAMP/conf/apache/httpd.conf add a virtual host at the bottom VirtualHost * DocumentRoot */user/me/projects/site/app/webroot* ServerName

Re: new site made with cakephp

2012-10-04 Thread Michael Connors
was great to work with. On Wednesday, October 3, 2012 5:51:01 PM UTC-4, Michael Connors wrote: New site made with cake. http://www.morguefile.com -- Like Us on FacekBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

new site made with cakephp

2012-10-03 Thread Michael Connors
New site made with cake. http://www.morguefile.com -- Like Us on FacekBook 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 group. To post to this group, send email to

getting cousin data

2012-09-21 Thread Michael Bryant
I am new to CakePHP. I am trying to understand the models. I have Accounts that BelongsTo Contacts and Phones. the Contacts also BelongsTo Phones Phones BelongsTo PhoneType PhoneType hasMany Phones What I want to do is View an Account and get the list of Phones and the *name of the Phone

Re: SaveAll issue with nested arrays

2012-07-12 Thread Michael Gaiser
This is from the docs: The saveAll function is just a wrapper around the saveMany and saveAssociated methods. it will inspect the data and determine what type of save it should perform. If data is formatted in a numerical indexed array, saveMany will be called, otherwise saveAssociated is used.

Pre BC Dates?

2012-07-12 Thread Michael Gaiser
So my website will have a time line, along with dates that range before 0 AD. What would be the best way to tackle this issue? ~Michael -- 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

SaveAll issue with nested arrays

2012-07-10 Thread Michael Gaiser
When I pass this array to my saveAll function, the events get saved but the feeding and the character do not. Is there an issue with multiple levels of indexed arrays? Would I be better off trying to save them individually? array( (int) 0 = array( 'Event' = array(

Re: SaveAll issue with nested arrays

2012-07-10 Thread Michael Gaiser
Yes. Events hasMany Feedings(events_feedings) Characters (characters_events), and they belongTo the Event. On Tue, Jul 10, 2012 at 3:30 PM, Harsha M V har...@mink7.com wrote: what are the relations of the models ? does Events hasMany with feedings and characters ? -- Our newest site for

Re: Paginate with associated model conditions

2012-07-08 Thread Michael Gaiser
No on knows how to solve this issue? I have a few very complicated work arounds, but every time I end up implementing such work arounds, it always comes back to the fact that I was doing it wrong originally. ~Michael On Fri, Jul 6, 2012 at 12:09 AM, Michael Gaiser mjgai...@gmail.com wrote: So

Paginate with associated model conditions

2012-07-05 Thread Michael Gaiser
' I have looked around, some solutions I have found try to make use of a fake hasOne bind, others try to setup a virtual field others play around with the 'joins' array. I have tried all of these but cannot seem to get them to work. Any help would be greatly appreciated. ~Michael -- Our newest

Re: Autocomplete field to populate a select input example?

2012-07-03 Thread Michael Gaiser
. The ajax call should call some controller method that searches for and returns the cities (in the selected state) in json for example. Once it has completed you populate the select box. You will need to do this on every change of the State field. On Monday, 2 July 2012 16:39:05 UTC+3, Michael wrote

Autocomplete field to populate a select input example?

2012-07-02 Thread Michael Gaiser
it together. Thanks ~Michael -- 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

Error viewing ID 0

2012-06-27 Thread Michael Gaiser
of records to edit. Thanks ~Michael -- 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

Contain conditions based off parents data.

2012-06-10 Thread Michael Gaiser
So I have a table called Domains which has a parent_id allowing the domains to contain a parent/child relationship, the parent being referred to as ParentDomain. For the case I am working on, the ParentDomain has a variable called chronicle_id. The condition I want to make will get all domains

Force validation rule to run with empty fields in data set

2012-06-08 Thread Michael Gaiser
So I need to check that at least one field out of four is being set before I will allow to save. The validation rule works great as long as you have something sent to it, but since all the option fields have an empty slot, it would be easy to pass an array with all the right bits of info for that

Re: Using Helper in Model

2012-06-08 Thread Michael Gaiser
Helpers are for views, If you care wanting to call it in your model, you are doing something wrong as it does not conform to the MCV methodology. I would suggest looking into behaviors as those are traditionally used to share code between models. ~Michael On Thu, Jun 7, 2012 at 10:36 AM

Re: more than 1 level of belongsTo

2012-06-08 Thread Michael Gaiser
Well, you might have an issue if Bar is not properly setup to point at Xyxxy since it needs that connection to retrieve the data. I would do a find on Bar and see if it locates both Foo and Xyzzy. On Fri, Jun 8, 2012 at 12:43 PM, simo ahalshaba ahalshaba.moha...@gmail.com wrote: u can use 3

Re: how to wirte a code search users incakephp

2012-06-08 Thread Michael Gaiser
http://book.cakephp.org/2.0/en/tutorials-and-examples.html Run through those and you should be off to a good start. -- 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

Re: Force validation rule to run with empty fields in data set

2012-06-08 Thread Michael Gaiser
based on the data supplied. On Friday, June 8, 2012 10:13:31 AM UTC+2, Michael wrote: So I need to check that at least one field out of four is being set before I will allow to save. The validation rule works great as long as you have something sent to it, but since all the option fields

Re: Force validation rule to run with empty fields in data set

2012-06-08 Thread Michael Gaiser
Its not in front of me at the moment, but I can mock up what I mean. array( 'Domain' = array( 'name' = 'Foo', 'parent_id' = '85' ), 'Owner' = array( 'color' = '#123456', 'clan_id' = '32' ) ) This would be valid since clan_id (character_id, coterie_id covenant_id being the

Re: Associative model validation fails, but does not report.

2012-06-07 Thread Michael Gaiser
All the tables that involve the users modifying data are set to innoDB for the increased data integrity. I originally wasnt giving the saveAll any arguments, but tried to set 'Validate'='first' as I saw in one example and that didnt work either. I finally got the errors propagating back to my

Database structure question

2012-06-07 Thread Michael Gaiser
So, I have a domain model that has a parent/child relationship with itself going about 6 levels deep. Certain levels have some additional data I need to store(owner_id, chronicle_id, etc) but these values are only on the bottom most level. Is it better to have the domain table have a owner_id and

Re: custom model validation question

2012-06-06 Thread Michael Gaiser
I guess my question is: How do you get access to all the other associated data that is being saved? I can set it up so I catch it before the save happens, but it feels kind of hacky and does not make use of the field error message code. -- Our newest site for the community: CakePHP Video

Re: Looking for MVC CakePHP Best practice doc, examples for Med to large sites

2012-06-06 Thread Michael Gaiser
not be the proper forum for such a discussion to the degree you are looking for as a MySQL forum might get you closer to your goal. On the other hand, if you have some shitty code questions to ask, we would be happy to help. ~Michael -- Our newest site for the community: CakePHP Video Tutorials

Re: Looking for MVC CakePHP Best practice doc, examples for Med to large sites

2012-06-06 Thread Michael Gaiser
Yeah, I see it now. Apologies to Bill. To be fair to Bill Michael, it was Johns responses to the initial question that mentioned Shitty Code and Shitty Data ... I think Bill may have been making a point in much the same way as you have :) -- Our newest site for the community: CakePHP Video

Re: custom model validation question

2012-06-06 Thread Michael Gaiser
ok. i figured it out. The models being saved can be accessed in the validation rule through $this-data. On Wed, Jun 6, 2012 at 10:29 AM, Michael Gaiser mjgai...@gmail.com wrote: I guess my question is: How do you get access to all the other associated data that is being saved? I can set it up

Associative model validation fails, but does not report.

2012-06-06 Thread Michael Gaiser
So I have a form in my domains/add view. All the domain input fields save their data just fine when the form is submitted. The problem is that there is another field (Characters.0.character_id) that is to save its data to an hasMany associated join model (CharactersDomain). In the CharactersDomain

custom model validation question

2012-06-05 Thread Michael Gaiser
I have a Domain Model that has 4 has Many relationships with 4 different join models (Character, Clan, Covenant, Coterie). When creating a new record, the user is presented with 4 option boxes, each filled with different data pertaining to the 4 associated models but defaulting to an empty option.

Re: Question

2012-06-05 Thread Michael Gaiser
table /table Just like any other .html file. ~Michael On Tue, Jun 5, 2012 at 9:40 PM, ying yang yingyang99...@gmail.com wrote: My question is how i can make a table in view.ctp? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: custom model validation question

2012-06-05 Thread Michael Gaiser
validation routine. On Jun 5, 2012, at 5:45 PM, Michael Gaiser wrote: I have a Domain Model that has 4 has Many relationships with 4 different join models (Character, Clan, Covenant, Coterie). When creating a new record, the user is presented with 4 option boxes, each filled with different

Re: Question

2012-06-05 Thread Michael Gaiser
You probably are looking for something like this. h3Employee/h3 table tr thName/th thAge/th thHired/th /tr ?php foreach($data as $profile): ? tr tdh1?php echo sprintf(%s %s %s, $profile]['Profile']['fname'], $profile['Profile']['mname'],

Re: GoogleMapV3 Helper issue

2012-05-27 Thread Michael Gaiser
to the internet you should be fine Am Freitag, 25. Mai 2012 21:24:57 UTC+2 schrieb Michael: Would there be any issue with the fact that I am running it from my local host instead of from my host? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Re: Geocoding

2012-05-26 Thread Michael Gaiser
accessing its DB table? Thanks. ~Michael On Sat, May 26, 2012 at 12:33 AM, Simon Males s...@sime.net.au wrote: Data source for the GeoNames service: https://github.com/signified/CakePHP-GeoNames-DataSource -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Geocoding

2012-05-26 Thread Michael Gaiser
I meant my Location Model, not Controller. On Sat, May 26, 2012 at 9:22 AM, Michael Gaiser mjgai...@gmail.com wrote: When is says: 2. Add the following to your model:    public $useDbConfig = 'geoNames';    public $useTable = false; Does that go in my Locations controller or do I make

GoogleMapV3 Helper issue

2012-05-25 Thread Michael Gaiser
would be most welcome. Thanks in advance. ~Michael -- 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

Re: GoogleMapV3 Helper issue

2012-05-25 Thread Michael Gaiser
at the bottom. Am Freitag, 25. Mai 2012 09:56:06 UTC+2 schrieb Michael: So I have been trying to get this to work but still cannot seem to work through it. I am using this version: https://github.com/dereuromark/cakephp-google-map-v3-helper And following this explanation: http

Re: GoogleMapV3 Helper issue

2012-05-25 Thread Michael Gaiser
Would there be any issue with the fact that I am running it from my local host instead of from my host? -- 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

Malformed $results from Find queries

2012-05-21 Thread Michael Salisbury
Cake Version 2.1 PHP 5.3.10 MySQL version 5.0.95 (cpanel server) 5.1.62 (dev server) Apache version 2.2.22 (cpanel server) 2.2.20 (dev server) cpanel server version 11.32.2 (redHat 5.8) (problem child) dev server version Ubuntu 11.10 (works perfectly) My problem is very specific, when I issue

Re: Comparing user's existing password

2012-05-18 Thread Michael Gaiser
Have you changed your security salt setting since you first entered in original password? If so your passwords hash will not match. Sent from my iPhone On 2012-05-18, at 8:49 AM, rahajiyev rahaji...@bankofbaku.com wrote: When user enters his current password for verification it compares

Re: Can more than 1 database connections be used?

2012-05-11 Thread Michael Stelly
Yes. Just add the config in database.php then assign your model to that connection. Sent from my iPhone On May 11, 2012, at 5:42 AM, rahaji...@bankofbaku.com rahaji...@bankofbaku.com wrote: Hi, all. Can I use more than one database connection in Cake 1 or 2? There's an existing remote

Re: Finished tutorials but do not know how to proceed learning

2012-05-11 Thread Michael Gaiser
the road. Then bake out your models, controllers and views and see where that puts you. All in all, get your feet wet. ~Michael Sent from my iPhone On 2012-05-11, at 7:20 PM, Kevin Mitchell ke...@ncbible.com wrote: Hello. Let me say upfront, thank you for any offering time and expertise to help

Re: Little help with routes and links

2012-05-08 Thread Michael Stelly
I'm not an expert on routes, either. But I would start here to find out.Routing Cookbook v2http://book.cakephp.org/2.0/en/development/routing.html Sincerely, Michael Stelly mobile: +1.918.978.2000 skype: mjstelly LinkedIn http://www.linkedin.com/in/mstelly On Tue, May 8, 2012 at 7:26 AM

different find results for models null values.

2012-05-08 Thread Michael Gaiser
So sometimes the results for my model finds seem to very between the two formats: $results['Faction'] = array() and $results['Faction'] = array('id'=null, 'name'=null) What determines the two? I would prefer that it always give me the listed fields with null values, but I am unsure what is

Re: different find results for models null values.

2012-05-08 Thread Michael Gaiser
of empty result sets and therefore it would just be an empty array Am Dienstag, 8. Mai 2012 18:55:10 UTC+2 schrieb Michael: So sometimes the results for my model finds seem to very between the two formats: $results['Faction'] = array() and $results['Faction'] = array('id'=null, 'name'=null

Re: Pass data between models during same request

2012-05-07 Thread Michael Stelly
Thanks for the tip. I'll check it when I get back to the office. Sincerely, Michael Stelly mobile: +1.918.978.2000 skype: mjstelly LinkedIn http://www.linkedin.com/in/mstelly On Mon, May 7, 2012 at 6:11 PM, lowpass zijn.digi...@gmail.com wrote: Are these models associated with each other

  1   2   3   >