Mike Posted May 24, 2012 Share Posted May 24, 2012 Hi! I´m working in a project with an external aplication, and I need create a module that load data from an external database. I've started creating a module called InputFieldData but I don´t know how do it. I need some help. Thanks! Link to comment Share on other sites More sharing options...
ryan Posted May 24, 2012 Share Posted May 24, 2012 Mike, I think we need more info. Is the external database to be accessed by a web service or directly through a DB connection? If DB connection, is it MySQL? What is the data? You mentioned creating an Inputfield module, which is something used for inputting data in the admin--is this what you need? Can you tell us more of the specifics of when you want to retrieve this data and what you want to do with it once retrieved? Link to comment Share on other sites More sharing options...
Mike Posted May 28, 2012 Author Share Posted May 28, 2012 Well, I need a module for create a list of items from a database, through a DB connection. I created an Inputfiled module because this is a field for a template. This data is an item of OpenCart. When I select item, this will return me the properties of the item for show it in template. I hope I explained correctly. Thanks!! Link to comment Share on other sites More sharing options...
ryan Posted May 29, 2012 Share Posted May 29, 2012 Mike, what you are trying to do sounds feasible and interesting. How far along with this are you and do you have any specific questions thus far? I'm not familiar with OpenCart, so would probably need to see your Inputfield code for context with any questions too. Link to comment Share on other sites More sharing options...
Mike Posted May 30, 2012 Author Share Posted May 30, 2012 Ryan, I´m working on it, and I think I have little to end. I´m using a copy of InputFieldCheckbox to resolve this. Thank you for you attention. If I have any question I will come here Link to comment Share on other sites More sharing options...
Mike Posted June 4, 2012 Author Share Posted June 4, 2012 Hello again!! I found the following problem: I need introduce the datas that come by $_POST variable in field, but in our class, $_POST is empty. How store InputField data in database? Don´t know if I explained well... Thanks! Link to comment Share on other sites More sharing options...
ryan Posted June 6, 2012 Share Posted June 6, 2012 Not sure that I understand exactly, but if $_POST is empty, then ProcessWire also won't be able to get at any of the posted data. So I would look to find why $_POST is empty (from a redirect or incorrect <form method> attribute?) before getting into the ProcessWire specific stuff. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now