Does EE have any built in classes or helper functions to perform common tasks in module code?

In this instance, I want to generate an href to a member profile to use in a control panel view, from a member ID. I have looked in the expression engine core code and not found anything.


EE has many helper functions - see the Functions class documentation for example. Also, all CodeIgniter helpers and classes can be loaded and used.

If you take a look in the models directory, you'll find many helpful methods there as well.

Re: member profile - do you mean on the front-end, or in the control panel? (In either case, I believe the answer is "no" - just built it manually.)

  • It's for Control Panel. There are member path global variables for templates, i.e. {path="member/profile"} but I haven't found the equivalent at a class level for module development. Sep 1 '13 at 11:02
  • 1
    The equivalent of {path} would be BASE. e.g., BASE.AMP.'d=CP'.AMP.'C=myaccount'.AMP.'id='.$member_id Sep 4 '13 at 21:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.