I've noticed that stuff like the Event library have their own readme's does
that mean that the library can be used outside the framework, like a
component?
I'm making a presentation and I would like a list of all the parts of the
framework which can be used outside the framework as a bonus poin
It would have been super helpful to include the link to the repo, d'oh
https://github.com/davidyell/BakeYourDreams
--
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
So I have created the repo and put some placeholder files in there, with a
bit of copy. If I need to write about the software patterns I will need to
learn the core and learn about software patterns, so that one might take a
while. I'll work on the tips and tricks mostly, as long as I can rememb
dding their experiences with CakePHP, even
> just to say "It made my day a bit easier".
>
> What would you propose to encourage more people contributing that kind of
> feedback? Would you be willing to write an article we can expose as a case
> study?
>
>
> On Th
*TL;DR*, Tell people why and how a RAD framework can compete with the likes
of Symfony for larger projects which have a long lifetime.
As we all know CakePHP get's a pretty bad rep in the PHP community and no
more so than from the Symfony corner. They love to belittle the framework
and regurgit
'],
]
]
]
]
]
],
'fields' => ['Region.slug', 'CountriesRegion.region_id',
'Region.name', 'COUNT(Hotel.id) as NumHotels'],
id'],
'City' => [
'fields' => ['id'],
'Hotel' => [
'fields' => ['id'],
]
]
]
]
]
],
'fields' => ['Region.slug', 'CountriesRegion.region_id', 'Region.name',
'COUNT(Hotel.id)
That will
> filter records from the parent model according to the conditions in the
> association.
>
> On Tuesday, July 22, 2014 10:57:14 AM UTC+2, David Yell wrote:
>>
>> *Synopsis*
>> Trying to select data from multiple related models explicitly is hard in
>&
*Synopsis*
Trying to select data from multiple related models explicitly is hard in
the framework due to it's focus on always providing a left join. Even with
Containable and Linkable it's not always possible, without a manual query,
to select records where their related record has a condition.
I would tackle it by extending the Paginator class to include a
customNumbers() style function which would take this into account. As
far as I know this isn't available with the current paginator class,
although I could be wrong.
A quick check on
http://api.cakephp.org/class_paginator_helper.htm
egory']));
} else {
$data = $this->paginate('Link', array('Link.status_id'=>'1'));
}
die(pr($data));
$this->set('links', $data_mod);
$categories = $this->Link->Category->fi
Does this mean that 1.2 still can't filter a result set by a related
model over habtm?
I've been trying to filter my Links by Category to no avail today.
Link habtm Category
Category habtm Link
$this->set('links', $this->paginate('Link', array('Category.id'=>$this-
>data['Link']['category_id'])
This was solved in #cakephp
By using $this->Model->validates($this->data['Model']['field']
So big thanks to penfold_99 for sorting this for me, thanks!
On Aug 18, 3:26 pm, David Yell <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been doing some work
Hi,
I've been doing some work with my users model and I got to a stage
where I was creating a method to change a users password to avoid the
default edit screen from having a populated password and such. Either
way I ended up with a change_password method and view, this works
great.
On this page
14 matches
Mail list logo