Re: Can I get smart objects from model::find() instead of array?

2006-10-12 Thread Serg
On Oct 13, 12:21 am, "nate" <[EMAIL PROTECTED]> wrote: > The short answer is no. Allowing the view to query model objects > directly violates the basic tenents of MVC separation, so although Cake > 2.0 will support a fully object-based ActiveRecord implementation, this > will likely never be su

Re: Mutually exclusive associations

2006-10-12 Thread Martin Schapendonk
On 10/13/06, gremlin <[EMAIL PROTECTED]> wrote: > Keep addresses in an address table. > A join table could connect contacts to addresses - likewise for > companies and addresses. > Disallowing a company to have the same address as a contact is going to > eventually bite you in the ass. I for on

Re: common ajax actions in app_controller

2006-10-12 Thread [EMAIL PROTECTED]
You can set the directory from which the view is loaded by using $this->viewPath = 'directory_with_view_templates'; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Re: Can I get smart objects from model::find() instead of array?

2006-10-12 Thread nate
Yes, that's correct. The model represents the data, which is accessed by the controller. The controller then passes raw data to the view, where the view itself (or a helper) can manipulate the data for display purposes. Maybe I'm misunderstanding what you mean by accessing attribute values. -

Re: Mutually exclusive associations

2006-10-12 Thread gremlin
Martin Schapendonk wrote: > On 10/11/06, AD7six <[EMAIL PROTECTED]> wrote: > > >However, strictly speaking it does not provide any way to prevent an > > Address to belong to a Person and an Organization at the same time. > > > > ? > > > > If on the address table there are 2 fields 'class' and 'fo

Re: Cake PHP Zend Studio Templates

2006-10-12 Thread hypercubed
Looks very nice... I've been looking for a CakePHP snippets set for Eclipse. Probably only take a little search and replace action. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

common ajax actions in app_controller

2006-10-12 Thread nnichols
Hi all, I have searched for similar queries and found many different answers but nothing that quite suits my needs. We have a group of ajax actions that apply to the majority of the models that make up the backbone of a CMS that we are writing. I have placed these actions and there related meth

Re: Can I get smart objects from model::find() instead of array?

2006-10-12 Thread Matt Adams
nate wrote: > The short answer is no. Allowing the view to query model objects > directly violates the basic tenents of MVC separation, so although Cake > 2.0 will support a fully object-based ActiveRecord implementation, this > will likely never be supported. > > You should plan up-front the d

Re: radio button inbetween param

2006-10-12 Thread Shunro Dozono
Hello, I wrote a small article in my blog.   http://cakephp.seesaa.net/article/24687605.html   You can change style sheet, Try this: