Reputation
987
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 14
Newest
 Yearling
Impact
~23k people reached

  • 0 posts edited
  • 0 helpful flags
  • 100 votes cast
Oct
2
revised How do I design my application to use REST for itself?
added 944 characters in body
Oct
2
comment How do I design my application to use REST for itself?
I do appreciate everyone's answer. I really do, but this doesn't really answer my question. Where do I put the HTTP verbs? Do I put it in a URL in my form's action? Do I put it in a hidden input somewhere? Do I do it all in AJAX and put the Type: I want? Where does this information go in my client that I'm saving my data to? If I use curl, that isn't helping me with my client's design. It only tells me my API is working for someone else that consumes it via CURL or some other library. I'm doing everything from an HTML page client.In other words, I cannot use all the HTTP verbs in HTML.
Oct
2
comment How do I design my application to use REST for itself?
I know our craft is complex by nature for the most part, and I can build it, but that seems to be really complicated for what I'm asking to do. Can it not be done without AJAX? If I do use AJAX with my "Type:" qualifier, such as in jQuery, aren't I just making up a type there? I mean can't I put any kind of type there? It's just that I happen to be adhering to the REST architecture that in reality isn't supported in HTTP?
Oct
2
comment How do I design my application to use REST for itself?
Why would it do this? Is this solely so it can be RESTful, having that architecture, even though you cannot really use those verbs?
Oct
2
comment How do I design my application to use REST for itself?
But how can I do that if the form tag does not allow PUT/DELETE requests to be sent? Say I want to use no javascript AJAX as you said. How do I use the HTTP verbs for an all internal application (no client), just my server. I also think my notions of client and server are messed up. In my app, aren't I the client and the server? The front end and back end? I do not have other consumers other than myself.
Oct
2
asked How do I design my application to use REST for itself?
Sep
2
awarded  Custodian
Sep
2
reviewed Approve How do I keep my classes in MVC from becoming bloated?
Sep
2
comment In MVC design, do I use a base class over an interface?
I guess I could say calling super, from language X.
Sep
2
comment In MVC design, do I use a base class over an interface?
Does that mean in the constructor of your concrete you do parent::__construct();, so you don't have to keep typing in $db = new PDO(....) or mysqli...?
Sep
2
revised In MVC design, do I use a base class over an interface?
edited title
Sep
2
asked In MVC design, do I use a base class over an interface?
Sep
2
comment application logic, business logic, models, controllers - where to put the application's brains?
@ErikReppen "It's also a heavily loaded marketing term that carries more "serious-sound" weight than practical use to most." That's the truth.
Sep
1
revised How do I keep my classes in MVC from becoming bloated?
added 766 characters in body
Sep
1
asked How do I keep my classes in MVC from becoming bloated?
Aug
28
comment Is routing a site with RESTful not the best when you have very long URLs?
@Snowman I thought it was a design question, so I asked it that way.
Aug
28
comment Is routing a site with RESTful not the best when you have very long URLs?
@CameronMcKay What if I had 50 variables in the URL?
Aug
28
asked Is routing a site with RESTful not the best when you have very long URLs?
Aug
28
comment Front controller in PHP
I find the history very helpful. It helps in light of older code found in Git, Sourceforge, etc. I always wonder why people pick what they do, and I feel like I never have it "right." I don't know what anyone does.
Aug
26
comment DRY with Dynamic SQL vs. prepared statements
@DougKress Where do you do the connection?