Which parts of the framework can be used outside the framework?

2015-07-08 Thread David Yell
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

Re: Post idea: Long term, large scales projects with CakePHP

2014-08-15 Thread David Yell
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

Re: Post idea: Long term, large scales projects with CakePHP

2014-08-15 Thread David Yell
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

Re: Post idea: Long term, large scales projects with CakePHP

2014-08-15 Thread David Yell
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

Post idea: Long term, large scales projects with CakePHP

2014-08-14 Thread David Yell
*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

Re: Selecting specific data from the database through multiple relations

2014-07-22 Thread David Yell
'], ] ] ] ] ] ], 'fields' => ['Region.slug', 'CountriesRegion.region_id', 'Region.name', 'COUNT(Hotel.id) as NumHotels'],

Re: Selecting specific data from the database through multiple relations

2014-07-22 Thread David Yell
id'], 'City' => [ 'fields' => ['id'], 'Hotel' => [ 'fields' => ['id'], ] ] ] ] ] ], 'fields' => ['Region.slug', 'CountriesRegion.region_id', 'Region.name', 'COUNT(Hotel.id)

Re: Selecting specific data from the database through multiple relations

2014-07-22 Thread David Yell
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 >&

Selecting specific data from the database through multiple relations

2014-07-22 Thread David Yell
*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.

Re: How could I change Paginator->numbers() render from to the

2008-10-08 Thread David Yell
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

Re: Filter a paginated dataset using a related field through a habtm relationship (1.2)

2008-08-21 Thread David Yell
egory'])); } else { $data = $this->paginate('Link', array('Link.status_id'=>'1')); } die(pr($data)); $this->set('links', $data_mod); $categories = $this->Link->Category->fi

Filter a paginated dataset using a related field through a habtm relationship (1.2)

2008-08-20 Thread David Yell
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'])

Re: Selective field model validation

2008-08-18 Thread David Yell
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

Selective field model validation

2008-08-18 Thread David Yell
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