Quantcast

Design reusable CakePHP application

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Design reusable CakePHP application

Mariano C.
One of the rules for reusable code is: Develop your application like webservice.

So I don't want to strictly bind controller with view. My idea is: 

  • controllers just returns json info (just like a webservice does), 
  • views calls that webservices, get the json and make html output.

In this way, reusability is to maximum. But... how can I realize that? Could be a good approch, developing pages rather than views, and inside that pages call the webservices previously developed.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Design reusable CakePHP application

Dr. Tarique Sani
IMO Go one step further the CakePHP application is just the webservice
and renders json/xml/whtever views - for this read
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html

The consumer applications are developed 100% independent of the
original CakePHP websevice providing app

Tarique

On Mon, Jul 30, 2012 at 5:40 PM, Mariano C. <[hidden email]> wrote:
> One of the rules for reusable code is: Develop your application like
> webservice.

--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Design reusable CakePHP application

Mariano C.
And so I should an alternative template engine to put everything together?

Il giorno lunedì 30 luglio 2012 14:17:51 UTC+2, Dr. Tarique Sani ha scritto:
IMO Go one step further the CakePHP application is just the webservice
and renders json/xml/whtever views - for this read
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html

The consumer applications are developed 100% independent of the
original CakePHP websevice providing app

Tarique

On Mon, Jul 30, 2012 at 5:40 PM, Mariano C. <[hidden email]> wrote:
> One of the rules for reusable code is: Develop your application like
> webservice.

--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Design reusable CakePHP application

Dr. Tarique Sani
You can use whatever you want even javascript :-)

T

On Mon, Jul 30, 2012 at 6:09 PM, Mariano C. <[hidden email]> wrote:

> And so I should an alternative template engine to put everything together?
>
> Il giorno lunedì 30 luglio 2012 14:17:51 UTC+2, Dr. Tarique Sani ha scritto:
>>
>> IMO Go one step further the CakePHP application is just the webservice
>> and renders json/xml/whtever views - for this read
>> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html
>>
>> The consumer applications are developed 100% independent of the
>> original CakePHP websevice providing app
>>
>> Tarique
>>
>> On Mon, Jul 30, 2012 at 5:40 PM, Mariano C. <[hidden email]>
>> wrote:
>> > One of the rules for reusable code is: Develop your application like
>> > webservice.
>>
>> --
>> =============================================================
>> PHP for E-Biz: http://sanisoft.com
>> =============================================================
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [hidden email] For more options, visit this group at
> http://groups.google.com/group/cake-php



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Design reusable CakePHP application

Amit-6-3
Is there any good tutorial on how to do authentication via REST? Ideally implementing Oauth 2.0.

On Monday, July 30, 2012 8:02:57 AM UTC-5, Dr. Tarique Sani wrote:
You can use whatever you want even javascript :-)

T

On Mon, Jul 30, 2012 at 6:09 PM, Mariano C. <> wrote:

> And so I should an alternative template engine to put everything together?
>
> Il giorno lunedì 30 luglio 2012 14:17:51 UTC+2, Dr. Tarique Sani ha scritto:
>>
>> IMO Go one step further the CakePHP application is just the webservice
>> and renders json/xml/whtever views - for this read
>> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html
>>
>> The consumer applications are developed 100% independent of the
>> original CakePHP websevice providing app
>>
>> Tarique
>>
>> On Mon, Jul 30, 2012 at 5:40 PM, Mariano C. <>
>> wrote:
>> > One of the rules for reusable code is: Develop your application like
>> > webservice.
>>
>> --
>> =============================================================
>> PHP for E-Biz: http://sanisoft.com
>> =============================================================
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [hidden email] For more options, visit this group at
> http://groups.google.com/group/cake-php



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
[hidden email] For more options, visit this group at http://groups.google.com/group/cake-php
Loading...