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

TOPIC:

how to start from scratch 07 Oct 2012 16:08 #4303

hallo

can anyone give me some general information about how to build an component yourself from scratch.
I try to do this so that I understand better how everything fits together.

How can i build up my code bit by bit.

Lets say a simple component to display information from a table.

What must be in the basic package installation,
and for what reasons should I reinstall the package.

Thanx,
Herman

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

Re: how to start from scratch 07 Oct 2012 16:17 #4304

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

Re: how to start from scratch 07 Oct 2012 17:51 #4307

I am working this throuh.
But I try to build it up from scratch bit by bit.
What i did now is.
I first installed a really basic component as descriped in the first chapter of this tutorial.
Then i used modified
- the helloworld.php component
- i created the controller.php component with an empty class in it.
- then i made the view.html.php
- and the tmpl/default.php
I always use http://localhost/appartement/index.php?option=com_helloworld in my browser, to test the output.

But I ask myself
- can I go on like this, without reinstalling the component, because in the tutorial after every chapter, they reinstall a zip file.
I don't like this way of working, because if I wan't to write code myself I do it little bit by little bit.
But I wonder if by doings so, some information maybe will not be written to the system tables.

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

Re: how to start from scratch 07 Oct 2012 20:11 #4312

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You will not need to reinstall for every changes, of course !
Coding is now a piece of cake

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

Re: how to start from scratch 08 Oct 2012 04:17 #4320

But are there changes after witch I must reinstall ?
Are is it sufficient that I install just a basic thing and develop from there on ?
Thanx

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

Re: how to start from scratch 11 Oct 2012 06:42 #4381

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
No, not really.

Maybe for the admin menu, because it is written in SQL and not easy to create a new item menu, so you can add it in the XML manifest, and reinstall.

I cannot see any other reason to reinstall your component. Just write in it ;-)
Coding is now a piece of cake
The following user(s) said Thank You: hermanvancauwelaert

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

  • Page:
  • 1
Time to create page: 0.065 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started