Welcome, Guest
  • Page:
  • 1

TOPIC: Solved: External php-scripts

Solved: External php-scripts 2 years, 2 months ago #12884

Never mind, a silly typo caused me grief for a few hours! Everything is fine, no includes/references were needed.

Hi folks,

I'm using Breezing Forms on a site of mine. One of the forms I'm working on involves some rather intricate juggling of data from a few different tables, and the resulting script in the form is around 500 lines of code.

This amount of code is not very handy to edit in the form editor, not to mention testing. I therefore decided to catch up on my OOP-skills, and implement the major part of my code as a separate php-class, which I include into the form script. Hopefully the end result will be a cleaner, more modularized version of a code long since grown wild

Now, my problem isn't strictly speaking a BF-problem, but rather a Joomla-programming question. I'd like to use the Joomla API in my class, accessing the database through the database-object, reading user-information with a JFactory::getUser()-command, and so on. What includes/references to Joomla-scripts should I throw into my class in order to achieve this?

Thank you for any reply.

Best regards,

Mike
  • Misha
Last Edit: 2 years, 2 months ago by .
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.33 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint