Each moment of our life is a picture which we had never seen before. And which we never see again so i enjoy present,dreaming for future and learn from past.And try best to make each moment beautiful....
It's too much easy to integrate Google map in your site .For this, it is needed to be downloaded the GoogleMapAPI class from this link After then, Google Map API key is mandatory to create. You can register free here
I have implemented this script using smarty. Since I discussed installation technique of smarty in my previous post, so I used only two file named map.html and map.php. Now follow me Step 1: Unzip the downloaded file. You need only GoogleMapAPI.class.php file Step 2: Copy and paste the following code in map.html file
Step 3: Copy and paste the following code in map.php file
If you would like to know details about this class,read the README file Output of this script will like that: http://www.phpinsider.com/php/code/GoogleMapAPI/demo/
Very Interesting.....isn't it? Posted by Md. Kausar Alam at 11:52 PM 2 comments Thursday, March 13, 2008 An Introduction to MVC
What is MVC? A car is a good real-world example of MVC. With a car you have two views: the interior and the exterior. Both take input from the controller: the driver. The brakes, steering wheel and other controls represent the model: they take input from the controller (driver) and hand them off to the views (interior/exterior) for presentation.
MVC on the Web MVC is an Object Oriented (OO) design pattern. A Model-View-Controller uses class to organize Business Logic contained in "Models", Presentation Logic in "Views" and has an overall flow for the application within a "Controller".
Figure 1:
The Model Models are the portion of the MVC application that implements the “Business Logic”. Business logic is any PHP logic relating to how information is stored in your application.
The View Views are the portion of the MVC application that presents output to the user. The most common output for PHP web applications would be HTML, but views are not restricted to this. Your MVC application might output XML, WML, plain text, images, email or some other content.
The Controller The controller is the heart of the MVC application. The controller translate the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
Figure 2:
Benefits and drawback of MVC details here.
TrygveReenskaug quoted about MVC as follows: • The View is connected to the user's eyes; • the Controller is connected to the user's hands; • and the Model is connected to the user's mind.
References: http://www.phpwact.org/pattern/model_view_controller http://www.onlamp.com/pub/a/php/2005/09/15/ mvc_intro.html?CMP=AFC-ak_article&ATT=Understanding+MVC+in+PHP http://en.wikipedia.org/wiki/Model-view-controller Posted by Md. Kausar Alam at 3:37 AM 0 comments Sunday, March 2, 2008 Smarty template engine
Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. Benefits of using Smarty template engines: 1. separates code from HTML. 2. When you get used to using template engines, your applications will be developed faster 3. Your source code will be more organized, more clean and easier to understand 4. Teamwork is a lot easier. Web page designers are not dealing with PHP code syntax, but instead easy-to-use templating syntax not much different than plain HTML. The templates are a very close representation of the final output, dramatically shortening the design cycle.
Code example
Since Smarty separates PHP from HTML, you have two files:
Follow the steps: Step1: 1.Download Latest Stable Release Smarty here 2. create two directory in www or htdoces named templates and temp 3. create a html file named test.html in templates dir 4. create a php file named test.php in root dir(i.e,www/htdocs) step 2: paste the following codes in test.html file
step 3: paste the following codes in test.php file
Now browse test.php output of this script This is the Smarty basic example.
References: http://en.wikipedia.org/wiki/Smarty http://tech.gogic.co.yu/web-development/smarty-template-engine/ http://www.fanphp.com/category/smarty/ Posted by Md. Kausar Alam at 11:20 AM 1 comments Labels: 1
It's too much easy to integrate Google map in your site .For this, it is needed to be downloaded the GoogleMapAPI class from this link After then, Google Map API key is mandatory to create. You can register free here
I have implemented this script using smarty. Since I discussed installation technique of smarty in my previous post, so I used only two file named map.html and map.php. Now follow me Step 1: Unzip the downloaded file. You need only GoogleMapAPI.class.php file Step 2: Copy and paste the following code in map.html file
Step 3: Copy and paste the following code in map.php file
If you would like to know details about this class,read the README file Output of this script will like that: http://www.phpinsider.com/php/code/GoogleMapAPI/demo/
Very Interesting.....isn't it? Posted by Md. Kausar Alam at 11:52 PM 2 comments Thursday, March 13, 2008 An Introduction to MVC
What is MVC? A car is a good real-world example of MVC. With a car you have two views: the interior and the exterior. Both take input from the controller: the driver. The brakes, steering wheel and other controls represent the model: they take input from the controller (driver) and hand them off to the views (interior/exterior) for presentation.
MVC on the Web MVC is an Object Oriented (OO) design pattern. A Model-View-Controller uses class to organize Business Logic contained in "Models", Presentation Logic in "Views" and has an overall flow for the application within a "Controller".
Figure 1:
The Model Models are the portion of the MVC application that implements the “Business Logic”. Business logic is any PHP logic relating to how information is stored in your application.
The View Views are the portion of the MVC application that presents output to the user. The most common output for PHP web applications would be HTML, but views are not restricted to this. Your MVC application might output XML, WML, plain text, images, email or some other content.
The Controller The controller is the heart of the MVC application. The controller translate the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
Figure 2:
Benefits and drawback of MVC details here.
TrygveReenskaug quoted about MVC as follows: • The View is connected to the user's eyes; • the Controller is connected to the user's hands; • and the Model is connected to the user's mind.
References: http://www.phpwact.org/pattern/model_view_controller http://www.onlamp.com/pub/a/php/2005/09/15/ mvc_intro.html?CMP=AFC-ak_article&ATT=Understanding+MVC+in+PHP http://en.wikipedia.org/wiki/Model-view-controller Posted by Md. Kausar Alam at 3:37 AM 0 comments Sunday, March 2, 2008 Smarty template engine
Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. Benefits of using Smarty template engines: 1. separates code from HTML. 2. When you get used to using template engines, your applications will be developed faster 3. Your source code will be more organized, more clean and easier to understand 4. Teamwork is a lot easier. Web page designers are not dealing with PHP code syntax, but instead easy-to-use templating syntax not much different than plain HTML. The templates are a very close representation of the final output, dramatically shortening the design cycle.
Code example
Since Smarty separates PHP from HTML, you have two files:
Follow the steps: Step1: 1.Download Latest Stable Release Smarty here 2. create two directory in www or htdoces named templates and temp 3. create a html file named test.html in templates dir 4. create a php file named test.php in root dir(i.e,www/htdocs) step 2: paste the following codes in test.html file
step 3: paste the following codes in test.php file
Now browse test.php output of this script This is the Smarty basic example.
References: http://en.wikipedia.org/wiki/Smarty http://tech.gogic.co.yu/web-development/smarty-template-engine/ http://www.fanphp.com/category/smarty/ Posted by Md. Kausar Alam at 11:20 AM 1 comments Labels: 1
2 comments:
How to integrate Google Map??
It's too much easy to integrate Google map in your site .For this, it is needed to be downloaded the GoogleMapAPI class from this link
After then, Google Map API key is mandatory to create. You can register free here
I have implemented this script using smarty. Since I discussed installation technique of smarty in my previous post, so I used only two file named map.html and map.php. Now follow me
Step 1: Unzip the downloaded file. You need only GoogleMapAPI.class.php file
Step 2: Copy and paste the following code in map.html file
Step 3: Copy and paste the following code in map.php file
If you would like to know details about this class,read the README file
Output of this script will like that:
http://www.phpinsider.com/php/code/GoogleMapAPI/demo/
Very Interesting.....isn't it?
Posted by Md. Kausar Alam at 11:52 PM 2 comments
Thursday, March 13, 2008
An Introduction to MVC
What is MVC?
A car is a good real-world example of MVC. With a car you have two views: the interior and the exterior. Both take input from the controller: the driver. The brakes, steering wheel and other controls represent the model: they take input from the controller (driver) and hand them off to the views (interior/exterior) for presentation.
MVC on the Web
MVC is an Object Oriented (OO) design pattern. A Model-View-Controller uses class to organize Business Logic contained in "Models", Presentation Logic in "Views" and has an overall flow for the application within a "Controller".
Figure 1:
The Model
Models are the portion of the MVC application that implements the “Business Logic”. Business logic is any PHP logic relating to how information is stored in your application.
The View
Views are the portion of the MVC application that presents output to the user. The most common output for PHP web applications would be HTML, but views are not restricted to this. Your MVC application might output XML, WML, plain text, images, email or some other content.
The Controller
The controller is the heart of the MVC application. The controller translate the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
Figure 2:
Benefits and drawback of MVC details here.
TrygveReenskaug quoted about MVC as follows:
• The View is connected to the user's eyes;
• the Controller is connected to the user's hands;
• and the Model is connected to the user's mind.
References:
http://www.phpwact.org/pattern/model_view_controller
http://www.onlamp.com/pub/a/php/2005/09/15/
mvc_intro.html?CMP=AFC-ak_article&ATT=Understanding+MVC+in+PHP
http://en.wikipedia.org/wiki/Model-view-controller
Posted by Md. Kausar Alam at 3:37 AM 0 comments
Sunday, March 2, 2008
Smarty template engine
Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation.
Benefits of using Smarty template engines:
1. separates code from HTML.
2. When you get used to using template engines, your applications will be developed faster
3. Your source code will be more organized, more clean and easier to understand
4. Teamwork is a lot easier.
Web page designers are not dealing with PHP code syntax, but instead easy-to-use templating syntax not much different than plain HTML. The templates are a very close representation of the final output, dramatically shortening the design cycle.
Code example
Since Smarty separates PHP from HTML, you have two files:
Follow the steps:
Step1:
1.Download Latest Stable Release Smarty here
2. create two directory in www or htdoces named templates and temp
3. create a html file named test.html in templates dir
4. create a php file named test.php in root dir(i.e,www/htdocs)
step 2:
paste the following codes in test.html file
step 3:
paste the following codes in test.php file
Now browse test.php
output of this script
This is the Smarty basic example.
References:
http://en.wikipedia.org/wiki/Smarty
http://tech.gogic.co.yu/web-development/smarty-template-engine/
http://www.fanphp.com/category/smarty/
Posted by Md. Kausar Alam at 11:20 AM 1 comments
Labels: 1
How to integrate Google Map??
It's too much easy to integrate Google map in your site .For this, it is needed to be downloaded the GoogleMapAPI class from this link
After then, Google Map API key is mandatory to create. You can register free here
I have implemented this script using smarty. Since I discussed installation technique of smarty in my previous post, so I used only two file named map.html and map.php. Now follow me
Step 1: Unzip the downloaded file. You need only GoogleMapAPI.class.php file
Step 2: Copy and paste the following code in map.html file
Step 3: Copy and paste the following code in map.php file
If you would like to know details about this class,read the README file
Output of this script will like that:
http://www.phpinsider.com/php/code/GoogleMapAPI/demo/
Very Interesting.....isn't it?
Posted by Md. Kausar Alam at 11:52 PM 2 comments
Thursday, March 13, 2008
An Introduction to MVC
What is MVC?
A car is a good real-world example of MVC. With a car you have two views: the interior and the exterior. Both take input from the controller: the driver. The brakes, steering wheel and other controls represent the model: they take input from the controller (driver) and hand them off to the views (interior/exterior) for presentation.
MVC on the Web
MVC is an Object Oriented (OO) design pattern. A Model-View-Controller uses class to organize Business Logic contained in "Models", Presentation Logic in "Views" and has an overall flow for the application within a "Controller".
Figure 1:
The Model
Models are the portion of the MVC application that implements the “Business Logic”. Business logic is any PHP logic relating to how information is stored in your application.
The View
Views are the portion of the MVC application that presents output to the user. The most common output for PHP web applications would be HTML, but views are not restricted to this. Your MVC application might output XML, WML, plain text, images, email or some other content.
The Controller
The controller is the heart of the MVC application. The controller translate the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.
Figure 2:
Benefits and drawback of MVC details here.
TrygveReenskaug quoted about MVC as follows:
• The View is connected to the user's eyes;
• the Controller is connected to the user's hands;
• and the Model is connected to the user's mind.
References:
http://www.phpwact.org/pattern/model_view_controller
http://www.onlamp.com/pub/a/php/2005/09/15/
mvc_intro.html?CMP=AFC-ak_article&ATT=Understanding+MVC+in+PHP
http://en.wikipedia.org/wiki/Model-view-controller
Posted by Md. Kausar Alam at 3:37 AM 0 comments
Sunday, March 2, 2008
Smarty template engine
Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation.
Benefits of using Smarty template engines:
1. separates code from HTML.
2. When you get used to using template engines, your applications will be developed faster
3. Your source code will be more organized, more clean and easier to understand
4. Teamwork is a lot easier.
Web page designers are not dealing with PHP code syntax, but instead easy-to-use templating syntax not much different than plain HTML. The templates are a very close representation of the final output, dramatically shortening the design cycle.
Code example
Since Smarty separates PHP from HTML, you have two files:
Follow the steps:
Step1:
1.Download Latest Stable Release Smarty here
2. create two directory in www or htdoces named templates and temp
3. create a html file named test.html in templates dir
4. create a php file named test.php in root dir(i.e,www/htdocs)
step 2:
paste the following codes in test.html file
step 3:
paste the following codes in test.php file
Now browse test.php
output of this script
This is the Smarty basic example.
References:
http://en.wikipedia.org/wiki/Smarty
http://tech.gogic.co.yu/web-development/smarty-template-engine/
http://www.fanphp.com/category/smarty/
Posted by Md. Kausar Alam at 11:20 AM 1 comments
Labels: 1
Post a Comment