hasMany through: my neverending problem?

2014-01-22 Thread Sam Clauw
I have two tables: attractions accessibilities. I want to display which people can go on which rides so I invented a new, joined table called accessibilities_attractions. Here's a visual representation of it:

Little trick to return json

2014-01-22 Thread Rubensvsx
Sorry for the poor english. I created a piece of code that solved my problem in returning a JSON object and helped me not to re-write all views. I await your feedback pros and cons. class AppController extends Controller { public $components = array('RequestHandler'); function

cookbook

2014-01-22 Thread MihaiTL
As I am studying CakePHP, the 2.0 cookbook is essential. I discovered many places in it where the level of knowledge needed to understand a topic is raised. In these conditions I think it's a heroic act to start learning Cake. I propose to you that the cookbook or any other introductory manual

Re: CakePHP bake command not working in CLI

2014-01-22 Thread MihaiTL
In Ubuntu Linux I had to install it using the following command: apt-get install cakephp-scripts then it worked: cake bake luni, 30 septembrie 2013, 16:40:25 UTC+3, Victor Musvibe a scris: I have got an application that i am working on built using Cakephp 1.3 problem that i am having is

HMVC vs MVC

2014-01-22 Thread MihaiTL
I kindly ask you all if HMVC (Hierarhical MVC) in cakePHP is actually MVC with controllers+actions. -- 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 CakePHP

RE: cookbook

2014-01-22 Thread Advantage+
No one is stopping you to do so. Dave Maharaj Freelance Designer | Developer Description: header_logo www.movepixels.com | mailto:d...@movepixels.com d...@movepixels.com | 709.800.0852 From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of MihaiTL Sent:

Re: cookbook

2014-01-22 Thread Carlos Javier Baeza Negroni
Hello Mihaitl, In order to learn cake or any other framework, you should first had knowledge of OO programming, i really dont feel like aa heroe...haha, and im pretty new to cake. Give it a try again, it is really simple to start and the learning curve is quite short. Have my best regards.

Re: Router redirect pass all parameters to another domian

2014-01-22 Thread Борислав Събев Borislav Sabev
As Reuben said - you will be far better off with a Web Server based redirect. This way your application will not get called at all. On Monday, 20 January 2014 23:49:09 UTC+2, gonzela2006 wrote: Hello, I want to use *Router::redirect* to redirect to another domain and pass all parameters

RE: Little trick to return json

2014-01-22 Thread Advantage+
Where is the magic? What's so special? Simply spitting out the results in JSON……… and? Dave Maharaj Freelance Designer | Developer Description: header_logo www.movepixels.com | mailto:d...@movepixels.com d...@movepixels.com | 709.800.0852 From: cake-php@googlegroups.com

Re: Little trick to return json

2014-01-22 Thread stevensjn
This is an excellent idea. Thx for sharing.

Re: Little trick to return json

2014-01-22 Thread euromark
You could cut down your code by almost have and drop every second line when following the documentation regarding JsonView: http://book.cakephp.org/2.0/en/views/json-and-xml-views.html No need to fight the framework and manually set response type and alike Also, I highly recommend using