The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Calling routes from within route

danattwood's Avatar

danattwood

11 Nov, 2015 04:27 PM

Hi

I'm starting to port an old set of soap apis over to slim.

I have lots of cases where the soap functions are nested. So i have something like;

function getUsers ($id) {
  getUserName($id);
  getUserAge($id);
}

function getUserName($id) {
  //do stuff
}

function getUserAge($id) {
 //do stuff
}

This means that I call either of those three functions via a soap client.

What's the best way to do this kind of nesting in slim please or is this a bad idea and can anyone point my to a better way?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac