Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How I can Import dataset? 01 Feb 2016 09:21 #13794

Hi how I can import one external data table? We like connect the j-cook component to other DB Tables. Ee like develop one joomla user interface for one external component. we can put the DB Table inside the Joomla installation or if is possible we like connect the J-Cook to one external DB.

Please Log in or Create an account to join the conversation.

How I can Import dataset? 01 Feb 2016 11:39 #13795

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Can you be more precise please ?
Do you mean external tables, or external database ?
What do you want to do exactly ? Read / Write ?

In case you want to CRUD a table, just create it in the builder as a regular table. Than simply change the name declarations of this table. (in the model)
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

How I can Import dataset? 01 Feb 2016 16:00 #13798

The ideal solution is to connect with one external DB table in Write and read

the DB is locate into same Server (localhost)

Please Log in or Create an account to join the conversation.

How I can Import dataset? 01 Feb 2016 20:21 #13799

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
I think you need to create a table class in the /tables folder.
Then the 3rd parameter ($db) of the constructor is containing the db config.


See in the JTable documentation.
Hope it helps. If you can't make it, I will take more time to show an example.
Unfortunately, the tables files are facultative, so Cook do not create them anymore. So you cannot fork it.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.061 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started