Re: The (bad) perception and image of CakePHP in the public

2014-10-01 Thread John Sposato
I think it's interesting that some people say the docs are terrible and others list documentation as a reason why it's cool or productive. If you're build a blog application that will only do simple relationships and not a lot of complex things, the documentation is great. However, we typicall

Re: Paginate Sort on columns from related tables

2014-09-03 Thread John Sposato
']; > > Then in your Paginator options you can add: > > $this->Paginator->settings['link'] = ['Patient' => ['CareGiver']]; > > This will probably help you getting the models in the same query so you > can sort by them. > > On Thur

Re: Paginate Sort on columns from related tables

2014-09-02 Thread John Sposato
Any ideas? On Thursday, August 28, 2014 9:54:01 AM UTC-4, John Sposato wrote: > > We are having some issues getting this to work, is it possible? > > For example, > > We have a Patient model with a HABTM relationship to CareGiver. And a > PatientCase model that belong

Re: Why CakePHP ?

2014-09-02 Thread John Sposato
When you say JAVA, I assume you mean a JAVA framework (Spring, Grails, etc.) since I don't believe you can write a web application is straight JAVA (I may be wrong). CakePHP is a framework, which follows the Model/View/Controller pattern. The developers of the framework have abstracted away a

Paginate Sort on columns from related tables

2014-08-28 Thread John Sposato
We are having some issues getting this to work, is it possible? For example, We have a Patient model with a HABTM relationship to CareGiver. And a PatientCase model that belongs to Patient with the hasMany to it from Patient. Both HABTM relationships are setup and are correct. On the patie

Migrations question

2014-08-07 Thread John Sposato
We have three environments: Dev, Staging and Prod. How would you recommend handling adding migrations after a project has already been released to all the environments. It seems like the statements generated don't take into account that some tables may already exist. Is there a workaround? -

Re: Upgrade 2.0.x->2.5.x: problem in generated HTML in case of erros

2014-07-15 Thread John Sposato
You are probably running into the HTML5 validation that was added in 2.3: - The FormHelper now also adds the HTML5 required attribute to your input elements based on validation rules for a field. If you have a “Cancel” button in your form which submits the form then you should add '

Re: $this->field and contain

2014-03-24 Thread John Sposato
Any reason you can't use counterCache? On Monday, March 24, 2014 11:07:46 AM UTC-4, advantage+ wrote: > > Can you use / is there a way to read a field and not add in extra relation > queries? > > > > I have a very simple function to read 1 field and update it by +1 > > > > public function pa

hasMany Through question

2014-03-13 Thread John Sposato
I have a hasMany through with the joined models having the $hasMany key set to the join, and the join model $belongsTo each of the others. StudentLearningOutcome hasMany LuStudentConcentrationsStudentLearningOutcome LuStudentConcentration hasMany LuStudentConcentrationsStudentLearningOutcome LuSt

Re: PHP IDE

2014-03-03 Thread John Sposato
PHPStorm by JetBrains. Costs money, but I've used Eclipse, NetBeans and Aptana and it blows them all out of the water IMO. On Sunday, March 2, 2014 4:08:54 AM UTC-5, Thomas von Hassel wrote: > > Tangentially related to CakePHP, but what IDE (if any) are you guys using > these days ? > > /thom

Differences in 2.3.9 -> 2.4.5?

2014-02-22 Thread John Sposato
I have a test that is failing on 2.4.5 but not 2.3.9... The error is: - CAKEEXCEPTION AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => User [Aro0.foreign_key] => 1 ) " Test case: LuSpeciesControllerTest(testAddMissingField) Stack trace: /var/lib/

Re: Notice (8): Undefined variable:

2013-08-27 Thread John Sposato
First look, perhaps it's the space in $ banks? If not, can you post the entire error, which includes the line number and the line numbers from your code? On Tuesday, August 27, 2013 11:33:03 AM UTC-4, Diego Santos wrote: > > hello people I'm with a little problem on my cake 2.2.1 > > good staf

Re: CakePHP Events

2013-06-28 Thread John Sposato
I've read that, and it's not 100% great. I was hoping there might be a tutorial to walk through a basic example of best practices for implementing events. I'm very familiar with the book site, I reference it often. Thanks! On Wednesday, June 26, 2013 12:32:41 PM UTC-4, Joh

CakePHP Events

2013-06-26 Thread John Sposato
Anyone know of any good tutorials/examples on how to use the event system? -- 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 t

Re: connecting mssql 2005

2013-06-11 Thread John Sposato
Did you look here: https://github.com/cakephp/datasources This is what we're using On Thursday, June 6, 2013 2:21:59 AM UTC-4, Nikunj Amipara wrote: > > hi, > I am trying to connect to remote database which is on mssql server and i > am getting fallowing error can any one help? > tried to goog

Re: connecting mssql 2005

2013-06-06 Thread John Sposato
Here is a config from one of our apps that connects to an MSSQL 2008 server (the server is setup to use port 3306, but it is MSSQL): public $mssqlServer = array( 'datasource' => 'Datasources.Database/Mssql', 'persistent' => false, 'host' =>

Re: removing in Form->end closing, in cakephp 1.3

2013-05-15 Thread John Sposato
It's the VALUE property that you need to set to 'Search' if you want the button to say search. On Friday, May 10, 2013 8:52:39 PM UTC-4, Chris wrote: > > hi Andre,... thank you for your reply,... > > this: Form->end(array('text'=>'Search', 'div'=>false)); > ?> remove the ... > however value of