Re: Receive a file on a REST application

2012-06-24 Thread Kiran
You have to send files in binary data.read below. In client of web service read the file and store it in a variable. now send this as any other string. now in the server side you have to write it to your server using php write functions. Say you have sample.zip to send to server. normally rad

Re: Pagination with HABTM?

2012-06-24 Thread Борислав Събев
Have you tried configuring the paginator in your Controller with a limit of 10: public $paginate = array( 'limit' => 10, 'order' => array( 'Post.title' => 'asc' ) ); On Monday, 25 June 2012 04:14:32 UTC+3, 42startups wrote: > > Ah ok, so how would I pagi

Re: Concepts I'm still not sure of...

2012-06-24 Thread bs28723
It was recently discussed in another thread in this group, I am paraphrasing, You need to spend time making sure your data Models are well thought out before you worry about where the code goes. A typical way to solve the website order problem is that you have

Re: Concepts I'm still not sure of...

2012-06-24 Thread godjen99
On Sunday, June 24, 2012 10:27:28 PM UTC-4, rchavik wrote: > > > > Perhaps the new Event system in 2.x would help here > rchavik, thanks for your comment! This is something we were kicking around, but we really couldn't makes sense of what we (the team I work with) were reading, nor we reall

Re: Concepts I'm still not sure of...

2012-06-24 Thread rchavik
On Monday, 25 June 2012 07:22:49 UTC+7, godjen99 wrote: > > So I have been working with CakePHP a while now, and feel pretty > comfortable with it. I get the common ideas of MVC, but recently ran into a > situation at work that I can't put my finger on how to tackle. The company > I work for w

Concepts I'm still not sure of...

2012-06-24 Thread godjen99
So I have been working with CakePHP a while now, and feel pretty comfortable with it. I get the common ideas of MVC, but recently ran into a situation at work that I can't put my finger on how to tackle. The company I work for wants to build a very large application that consists of many proc

Re: Pagination with HABTM?

2012-06-24 Thread 42startups
Ah ok, so how would I paginate and limit results to 10?... $this->loadModel('Tag', $id); $tag = $this->Tag->read(); On Monday, June 25, 2012 6:11:55 AM UTC+10, JonStark wrote: > > I find it easier to use LoadModel to display and sort posts from HABTM... > > Le dimanche 24 juin 2012 10:40:04 UTC+2

Re: Pagination with HABTM?

2012-06-24 Thread JonStark
I find it easier to use LoadModel to display and sort posts from HABTM... Le dimanche 24 juin 2012 10:40:04 UTC+2, 42startups a écrit : > > Wow, CakePHP really hasn't got this problem sorted. > > After hours of searching I came across the solution below (which may or > may not be outdated), but I

Pagination with HABTM?

2012-06-24 Thread 42startups
Wow, CakePHP really hasn't got this problem sorted. After hours of searching I came across the solution below (which may or may not be outdated), but I'm having issues applying paginatior 'limit' => 10 or other ordering. Any ideas what I'm missing? My model: public $hasAndBelongsToMany = ar