Showing posts with label hello world tutorials. Show all posts
Showing posts with label hello world tutorials. Show all posts

03 December 2013

Zend Framework hello world Tutorial

Zend Framework hello world
This is a compact tutorial on Zend Framework hello world.

If you like to know more , then read the Zend Framework Documentation.

First, you need to download Zend framework from below links.
or visit: framework.zend.com


After Download , unzip the file and place inside your host / locahost .

Open the php.ini file .

Add the include path of library folder of zend like this :

include_path = "/ZendFramework-1.11.0-minimal/library"


edit php.ini


Create a project name as "MyWebsite" and copy the library folder from zend.
folder tree
- Folder Tree -











Detailed folder Structure :




MyWebsite
|_applications
| |_config
| |_models
| |_modules
|   |_public
|     |_controllers
|     | |_IndexController.php
|     |
|     |_views
|       |_scripts
|       | |_index
|       |   |_index.phtml
|
|_library
| |_Zend
|
|_.htaccess
|_index.php
|




Done.




Download : MyWebsite.zip and unzip it in your host/localhost
It includes zend library , and index page.


If any problem , comment below.



(If you found this article useful then share with your friends.)

How to create Joomla templates - hello world

To create your own template for Joomla CMS , you need to follow some directory structure and file names. The template should have at least this 2 files : templateDetails.xml and index.php
joomla

You need to create a folder and the files inside it. Place this folder under templates folder inside the joomla folder.

To set your template , go to Extensions -> template manager.
Choose your template name from the list and click default to make effected.

The file structure of the templateDetails.xml :

<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="template">
<name>My First J template</name>
<description>
This is my Template
</description>
<files>
<filename>index.php</filename>
<filename>templateDetails.xml</filename>
</files>
</install>

Sample index.php file :

<html>
<head>
<jdoc:include type="head" />
</head>
<body>
<jdoc:include type="message" />
<div class="center" align="center">Welcome to my World! Lets have some fun</div>
<jdoc:include type="modules" name="debug" />
</body>
</html>

Done.

(If you found this article useful then share with your friends.)