Welcome, Guest
Username: Password: Remember me

TOPIC: how to start from scratch

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
The administrator has disabled public write access.

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

  • dyvel
  • dyvel's Avatar
  • Offline
  • Elite Member
  • Posts: 200
  • Thank you received: 11
  • Karma: 10
The administrator has disabled public write access.

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.
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
You will not need to reinstall for every changes, of course !
Coding is now a piece of cake
The administrator has disabled public write access.

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
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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 administrator has disabled public write access.
The following user(s) said Thank You: hermanvancauwelaert
Time to create page: 0.073 seconds

Get Started