Jump to content


- - - - -

runSnippet() in manager


  • You cannot reply to this topic
3 replies to this topic

#1 Ingo Rasen

    Etomite Forum Newbie

  • Member
  • 14 posts

Posted 08 August 2006 - 01:41 PM

Hi folks,

I'm using etomite very happily but I'm not that into the manager-code. I modified the /manager/actions/static/site_logging.static.action.php a bit and now need to run a snippet in order to get some informations I need. (The snippet itself runs a couple of other snippets by calling runSnippet(...) again.)

When I try to run a snippet by calling "$ret = $etomite->runSnippet(...);" I get an undefined function error. The same with $this->runSnippet(...) and I even tried $e->runSnippet(...). (Found the $e in some scripts.) But without success!

How is the runSnippet-method to be called from within the manager? Could one instatiate a new etomite-class from within the script? Or what else could solve my problem?

Thanks.



Yours, Ingo.

P.S. Don't know if this is the right place to post... :blush:

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 08 August 2006 - 03:13 PM

Sounds like you may have gotten in a bit over your head on this one... None of the current releases of Etomite have the capability of using API functions within manager code - which is one reason why attempts to modify the manager code base are discouraged... Only the front end parser, index.php, makes use of the API, which resides within this file... Future releases will acutally use the API for both front end and back end functionality...

The $e-> that you have noticed is used when dealing with the error handler class only...

#3 Ingo Rasen

    Etomite Forum Newbie

  • Member
  • 14 posts

Posted 08 August 2006 - 05:14 PM

Ok, thanks for your quick reply.

What a pity, but ok, it might have been possible. Sometimes one doesn't see the forest because of so many trees. (A german saying: "Den Wald vor lauter Bäumen nicht sehen" :blink:)

I could image solving my problem by evaluating the snippets by myself as they are just php-Code. Must think about that, but thanks again for your help.



Yours, Ingo.

#4 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,524 posts
  • Gender:Male

Posted 08 August 2006 - 06:43 PM

What you are attempting to do can most likely be done, just not with snippets... At least not if you're looking for the information within the manager... If the data will be for your front end website then a snippet would be the right way to go about solving the problem...

What are you attempting to do, anyway...??? Knowing might yield more ideas from the membership... B)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users