Saving unique data in hasMany through model

2014-09-02 Thread Jaz
Here's the associations that I have set up: Partner hasMany PartnerInvolvement Product hasMany PartnerInvolvement PartnerInvolvementType hasMany PartnerInvolvement PartnerInvolvement belongsTo Partner, Product, PartnerInvolvementType The $hasMany relationship is defined the same way in all 3 of t

Re: CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread José Lorenzo
Where did you put that generateLink() function? Helpers can only be used in the templates and from other helpers. What you are trying to do is not possible. You can create other helpers that can call the Html helper internally On Tuesday, September 2, 2014 1:57:30 PM UTC+2, Nguyễn Anh Tuấn wrot

Re: Paginate Sort on columns from related tables

2014-09-02 Thread José Lorenzo
you will need to use something like http://github.com/lorenzo/linkable to make that work You add the behavior to the models: $actsAs = ['Linkable.Linkable']; Then in your Paginator options you can add: $this->Paginator->settings['link'] = ['Patient' => ['CareGiver']]; This will probably help y

Re: load model from another module

2014-09-02 Thread Nguyễn Anh Tuấn
Did you try this one? $this->loadModel('Users'); On Monday, August 25, 2014 10:39:59 AM UTC+7, Hasrul Mikael wrote: > > Hai, > I'm new in CakePHP. Currently I got a problem in my task. > I had assigned to create a Plugin name UserManagement and Login in > app/Plugin/ > The Plugin UserManagement

CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread Nguyễn Anh Tuấn
Dear all. This so stupid but please help me. In my cell: *app/src/View/Cell/MyCell.php* i'm use public $helpers = ['Html']; In my cell view: *app/src/Template/Cell/MyCell/display.ctp* Html->link('name', ['controller' => 'mycontroller', 'action' => 'myaction', 'param']); // This one work correctly

Re: Why CakePHP ?

2014-09-02 Thread Stephen S
Additional to what John said, in my experience hosting for Java applications is usually more expensive than PHP applications, though it has been a couple of years so this may no longer be the case... On 2 September 2014 12:51, John Sposato wrote: > When you say JAVA, I assume you mean a JAVA fr

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 belongs to Patient with the hasMan

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

Why CakePHP ?

2014-09-02 Thread prakhil samar
Hi All, Hope you all are doing well I have a question, or i would say a confusion. I need to built a website approx 80 web pages. This will be a CMS site. I have a confusion that should i built that in JAVA or CakePHP. Can someone please educate me exact differences between the both, i mean