How can I use components in a shell

How should I include and call components in a shell?

Asked by powtac, on 26/11/09

1 Answer

Because shells + CLI environment can be quite different from the web server, there can be issues using some components in a CLI environment. But if you have a component where this isn't going to be an issue you can just import and construct the component like any other class. Often times needing a controller component in a shell class means your component contains methods that should be model methods.

Answered by markstoryon 26/11/09

Not really, but based on the name of your component, I would say you actually have a model :)

markstory - on 27/11/09

<< comments | 1 | 2
<< previous next >>

Tagged with

Rating

4

Viewed

2239 times

Last Activity

on 27/11/09