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.094 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started