Angular with CakePHP

364 views
Skip to first unread message

movep...@gmail.com

unread,
Feb 15, 2014, 1:42:49 PM2/15/14
to ang...@googlegroups.com
Hello all,

I am just starting out with Angular and would like to implement it into an existing project / app built with CakePHP but am a little lost on how to go about this. Where to start and correct way to do so.

As CakePHP is a MVC framework it has its views and re-used small code blocks called Elements. Fisrt looking at Angular I see partials and in some of the app.js if route is '/' then it renders this view or what not. Is there a way to still use a frameworks native views / elements what ever the framework might call it in conjunction with Angular?

Thanks,

Dave

Jeff Adams

unread,
Feb 17, 2014, 5:20:08 PM2/17/14
to ang...@googlegroups.com
I've got a similar question. I don't necessarily want to use Angular's routes, I've got CakePHP's views for that. I guess what I'm asking is how to integrate Angular with an existing mvc app but not have all the routing generated by Angular?  

Advantage+

unread,
Feb 17, 2014, 5:57:12 PM2/17/14
to ang...@googlegroups.com

I was looking at other js frameworks that use render: function(){

}

 

So if there was a way to to do that in Angular and pass the html direct to the success / error.

 

For my Cake set up I return a json respose and if needed also contains the html so it look like response.content // the html response.status, response.errors and what not.

 

I do not want to lose all the goodness that comes with Cakes views, especially forms and the elements since they come in handy. Security, session or what not.

 

Have not tried it yet but maybe we can put our heads together and come up with something.

 

Dave Maharaj

Freelance Designer | Developer
Description: header_logo

www.movepixels.com  |  da...@movepixels.com  |  709.800.0852

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/7YT8441sLc0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

image001.jpg
Reply all
Reply to author
Forward
0 new messages