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
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
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
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.
-
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
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
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
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
Hello, I wrote a small article in my blog.
http://cakephp.seesaa.net/article/24687605.html
You can change style sheet, Try this: