Creating and executing custom Hello World component in Joomla

All of the components that we have made will be put under the folder components. In our exercises, considere that your Joomla! folder named myjoomla, then all of our exercises component will be put under [webroot]/myjoomla/components. All of the component folder naming started with com_(component_name).

We are going to make a simple component named hello. According to the rule, then the component folder will be named as com_hello. Here are the steps in making the hello component:

1. Make new folder named com_hello under myjoomla/components folder.

2. Make the hello.php file inside the com_hello folder, and type the code as the following then save this change:

The program code explanation as the following:

  1. You must write the first line into every component file. This line will prevent people from accessing the file directly without through the URL rules which is established by Joomla.
  2. The next line, we are going to show the "Hello World." text in Joomla! page. We wiil modify the text a little bit by adding the class name into tag div. Class will be related with CSS which has been definite in template.

Executing the Component

After making the simple file for hello component, it is time for you to show it in the Joomla! page. You can call it with the following formula:

[servername]/index.php?option=com_hello

In this exercise, you can call it with:

http://localhost/myjoomla/index.php?option=com_hello

Building your own theme in Wordpress

Although thousands themes available, You may want to create your own theme. Make something different from others. You can customize from exist theme or build from zero. In this post, we will learn about wordpress theme from zero. from blank page. Let's do it.

Ok, in this post, we create blank page. We just want to look very basic file structure at wordpress theme. We don't write any code. Don't worry, next post, we begin to write some lines code.

  1. Create a folder named "my_theme" within \wordpress\wp-content\themes. It means we will create a theme named "my_theme".
  2. Create a file named "index.php" within \wordpress\wp-content\themes\my_theme.
  3. Create a file named "style.css" within \wordpress\wp-content\themes\my_theme.
  4. Open style.css use your text editor. Add some description like Theme name, Theme URI, Author, Author URL ... etc
  5. Now, activate your theme.

Don't worry if you just get blank page.

Drupal 7 - Create your custom Hello World module

Create your first "Hello World" Drupal 7 module with the following steps.

  1. Create a folder called helloworld in sites/all/modules/custom
  2. Create a helloworld.info file
  3. Create a template file page-helloworld.tpl.php in your theme directory
  4. Enable your module at http://domain.com/admin/build/modules
  5. Visit http://domain.com/helloworld

This belongs into your helloworld.info file:

; $Id$
 
name = helloworld
description = Reinholds Hello World module
package = Reinholds modules
core = 7.x
 
files[] = helloworld.module

The helloworld.module file

<?php
 function helloworld_menu(){
   $items = array();
 
   $items['helloworld'] = array(
     'title'            => t('Hello world'),
     'page callback'    => 'helloworld_output',
     'access arguments' => array('access content'),
   );
 
   return $items;
 }
 
 /*
 * Display output
 */
 function helloworld_output() {
   header('Content-type: text/plain; charset=UTF-8');
   header('Content-Disposition: inline');
   return 'helloworld';
 }
?>

The theme template file page-helloworld.tpl.php

<?php
print $content;
?>

Download all versions of Joomla packages

Download Joomla! 2.5.x

English (UK) - 2.5.6 Full Package - Click Here to download
English (UK) - 2.5.5 to 2.5.6 Upgrade Package - Click Here to download

Note: If you are upgrading from 1.7, please read the update instructions before updating.

Download Joomla! 1.7.5

English (UK) - 1.7.5 Full Package - Click Here to download
English (UK) - 1.7.5 Upgrade Packages - Click Here to download

Download Joomla! 1.5.x

English (UK) - 1.5.26 Full Package - Click Here to download
English (UK) - 1.5.25 to 1.5.26 Upgrade Package - Click Here to download

Magento - Introduction

The Magento eCommerce platform serves more than 110,000 merchants worldwide and is supported by a global ecosystem of solution partners and third-party developers. Magento is a feature-rich, open-source, enterprise-class platform that offers merchants a high degree of flexibility and control over the user experience, catalog, content and functionality of their online store.

Magento Enterprise

Magento Enterprise, the company's premiere solution, enables mid- to large-sized merchants to build and run world-class online stores. Magento Enterprise has been adopted by thousands of the world's leading merchants and brands.

Magento Go

Magento Go, the company's hosted software-as-a-service solution, provides small merchants with the tools to help them succeed online – from payments to inventory management.

In 2011, Magento was acquired by eBay Inc. and became part of eBay's X.commerce business unit. Magento is based in Los Angeles and employs more than 375 people worldwide.

Magento Official Website - http://www.magentocommerce.com/

Symfony Framework - Introduction

Symfony provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise.

Symfony is based on experience. It does not reinvent the wheel: it uses most of the best practices of web development and integrates some great third-party libraries.

Thousands of developers already trust symfony for their applications!

New users join the community every day, and that makes of symfony the most popular PHP framework around. A large community means easy-to-find support, user-contributed documentation, plugins, and free applications.

Symfony Official website - http://www.symfony-project.org/

Code Igniter - Introduction

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks

CodeIgniter is right for you if...

  • You want a framework with a small footprint.
  • You need exceptional performance.
  • You need broad compatibility with standard hosting accounts that run a variety of PHP versions and configurations.
  • You want a framework that requires nearly zero configuration.
  • You want a framework that does not require you to use the command line.
  • You want a framework that does not require you to adhere to restrictive coding rules.
  • You are not interested in large-scale monolithic libraries like PEAR.
  • You do not want to be forced to learn a templating language (although a template parser is optionally available if you desire one).
  • You eschew complexity, favoring simple solutions.
  • You need clear, thorough documentation.

Zend Framework - Introduction

Extending the art & spirit of PHP, Zend Framework is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase. Zend Framework is focused on building more secure, reliable, and modern Web 2.0 applications & web services, and consuming widely available APIs from leading vendors like Google, Amazon, Yahoo!, Flickr, as well as API providers and cataloguers like StrikeIron and ProgrammableWeb.

Expanding on these core themes, we have implemented Zend Framework to embody extreme simplicity & productivity, the latest Web 2.0 features, simple corporate-friendly licensing, and an agile well-tested code base that your enterprise can depend upon.

Wordpress Introduction

WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on millions of sites and seen by tens of millions of people every day.

Everything you see here, from the documentation to the code itself, was created by and for the community. WordPress is an Open Source project, which means there are hundreds of people all over the world working on it. (More than most commercial platforms.) It also means you are free to use it for anything from your cat's home page to a Fortune 500 web site without paying anyone a license fee and a number of other important freedoms.

About WordPress.org

On this site you can download and install a software script called WordPress. To do this you need a web host who meets the minimum requirements and a little time. WordPress is completely customizable and can be used for almost anything. There is also a service called WordPress.com which lets you get started with a new and free WordPress-based blog in seconds, but varies in several ways and is less flexible than the WordPress you download and install yourself.

What You Can Use WordPress For

WordPress started as just a blogging system, but has evolved to be used as full content management system and so much more through the thousands of plugins, widgets, and themes, WordPress is limited only by your imagination. (And tech chops.)

Wordpress Official Website - http://wordpress.org/

Drupal Introduction

Drupal is a free software package that allows you to easily organize, manage and publish your content, with an endless variety of customization.

Drupal is Open Source

Drupal is open source software maintained and developed by a community of 630,000+ users and developers. It's distributed under the terms of the GNU General Public License (or "GPL"), which means anyone is free to download it and share it with others. This open development model means that people are constantly working to make sure Drupal is a cutting-edge platform that supports the latest technologies that the Web has to offer. The Drupal project's principles encourage modularity, standards, collaboration, ease-of-use, and more.

Drupal's History

Dries Buytaert began the Drupal software as a message board in 1999. Within a year or so, more people became interested using and contributing to Drupal, so the project was made open source. Drupal.org came online in 2001, and the Drupal community gained momentum in 2005 with several code sprints and conferences. Read more about the full history of Drupal and Druplicon.

Community Support

The passionate volunteer Drupal community is on hand to give support via various vibrant IRC channels, in the forums, and face to face at Drupal events. The community has also created Documentation for Drupal, which covers major topics related to working with Drupal. The worldwide community drives the innovation that makes Drupal the preferred choice for web developers and site owners. Everybody can get involved and make a difference to Drupal.

Drupal Official Website - http://drupal.org/

Joomla Introduction

Joomla is an award-winning content management system (CMS), which enables you to build Web sites and powerful online applications. Many aspects, including its ease-of-use and extensibility, have made Joomla the most popular Web site software available. Best of all, Joomla is an open source solution that is freely available to everyone.

What's a content management system (CMS)?

A content management system is software that keeps track of every piece of content on your Web site, much like your local public library keeps track of books and stores them. Content can be simple text, photos, music, video, documents, or just about anything you can think of. A major advantage of using a CMS is that it requires almost no technical skill or knowledge to manage. Since the CMS manages all your content, you don't have to.

What are some real world examples of what Joomla! can do?

Joomla is used all over the world to power Web sites of all shapes and sizes. For example:

  • Corporate Web sites or portals
  • Corporate intranets and extranets
  • Online magazines, newspapers, and publications
  • E-commerce and online reservations
  • Government applications
  • Small business Web sites
  • Non-profit and organizational Web sites
  • Community-based portals
  • School and church Web sites
  • Personal or family homepages