Sql request with angularJS

192
July 06, 2017, at 06:49 AM

i'm using angular with Synfony2. With synfony i can use doctrine to proceed to sql request using entity and repository.

I would like to do the same with angular. How can i use the database param from symfony to perform sql request with angjularJs (my database is not from localhost) ?

I already know the trick: make an ajax post request to get the data from the symfony controler, but, for this specific case i would like to do that with full angularJs.

Is that posible ?

Thanks.

READ ALSO
Can't access nested object in blade template

Can't access nested object in blade template

I'm using Laravel, Eloquent for queries, and Blade for templating

134
How to debug PHP from a separate functions file? [Edited]

How to debug PHP from a separate functions file? [Edited]

Often, I would like to put my PHP functions that I use in a separate functions fileIs there any way I can debug the functions from that separate file from my main page? I understand that var_dump will not print because it is not actually returning the variable...

166
Reference: What is variable scope, which variables are accessible from where and what are “undefined variable” errors?

Reference: What is variable scope, which variables are accessible from where and what are “undefined variable” errors?

Note: This is a reference question for dealing with variable scope in PHPPlease close any of the many questions fitting this pattern as duplicate of this one

89
Multi option dropdown with Angular in WordPress

Multi option dropdown with Angular in WordPress

I have a WP website with filtration built with AngularBasically, it takes queries and filters it by Name / Location

237