SlideShare a Scribd company logo
  Smarty - Template Engine
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Why I use Smarty
Model ,[object Object]
Start Using Smarty  ,[object Object],[object Object],[object Object]
Welcome <!--{$name}--> to Smarty <script language=&quot;javascript&quot;> var foo = <!--{$foo}-->; function dosomething() { alert(&quot;foo is &quot; + foo); } dosomething(); </script>
<?php $smarty = new  Smarty(); $smarty->assign('firstname', 'Doug'); $smarty->assign('lastname', 'Evans'); $smarty->assign('meetingPlace', 'New York'); $smarty->display('index.tpl');  ?>
<? php $smarty->assign('cust_ids', array(56,92,13)); $smarty->assign('cust_names', array(                               'Joe Schmoe',                               'Jane Johnson',                               'Charlie Brown')); $smarty->assign('customer_id', 92); ?>
<select name=&quot;customer_id&quot; size=&quot;{$cust_names|@count}&quot;> {html_options values=$cust_ids output=$cust_names selected=$customer_id} </select>
Thank you

More Related Content

What's hot

Wordpress workshop accademia di belle arti di bergamo - 22 04 2015
Wordpress workshop   accademia di belle arti di bergamo - 22 04 2015Wordpress workshop   accademia di belle arti di bergamo - 22 04 2015
Wordpress workshop accademia di belle arti di bergamo - 22 04 2015
Andrea Cognini
 
When to use WordPress MultiSite WordCamp Nepal 2012
When to use WordPress MultiSite WordCamp Nepal 2012When to use WordPress MultiSite WordCamp Nepal 2012
When to use WordPress MultiSite WordCamp Nepal 2012Utsav Singh Rathour
 
Utsav Singh Rathour: How, Why and Where to use WordPress multisite
Utsav Singh Rathour: How, Why and Where to use WordPress multisiteUtsav Singh Rathour: How, Why and Where to use WordPress multisite
Utsav Singh Rathour: How, Why and Where to use WordPress multisitewpnepal
 
Drupal and Winona360
Drupal and Winona360Drupal and Winona360
Drupal and Winona360
Jose de Leon
 
Introduction to running a website
Introduction to running a websiteIntroduction to running a website
Introduction to running a website
Adam Lake
 
Wp maintenance and Security
Wp maintenance and SecurityWp maintenance and Security
Wp maintenance and Security
Dee Teal
 
Getting started with wordpress hosting and security
Getting started with wordpress hosting and securityGetting started with wordpress hosting and security
Getting started with wordpress hosting and security
WP Pittsburgh Meetup Group
 

What's hot (8)

10reasons to choose_drupal
10reasons to choose_drupal10reasons to choose_drupal
10reasons to choose_drupal
 
Wordpress workshop accademia di belle arti di bergamo - 22 04 2015
Wordpress workshop   accademia di belle arti di bergamo - 22 04 2015Wordpress workshop   accademia di belle arti di bergamo - 22 04 2015
Wordpress workshop accademia di belle arti di bergamo - 22 04 2015
 
When to use WordPress MultiSite WordCamp Nepal 2012
When to use WordPress MultiSite WordCamp Nepal 2012When to use WordPress MultiSite WordCamp Nepal 2012
When to use WordPress MultiSite WordCamp Nepal 2012
 
Utsav Singh Rathour: How, Why and Where to use WordPress multisite
Utsav Singh Rathour: How, Why and Where to use WordPress multisiteUtsav Singh Rathour: How, Why and Where to use WordPress multisite
Utsav Singh Rathour: How, Why and Where to use WordPress multisite
 
Drupal and Winona360
Drupal and Winona360Drupal and Winona360
Drupal and Winona360
 
Introduction to running a website
Introduction to running a websiteIntroduction to running a website
Introduction to running a website
 
Wp maintenance and Security
Wp maintenance and SecurityWp maintenance and Security
Wp maintenance and Security
 
Getting started with wordpress hosting and security
Getting started with wordpress hosting and securityGetting started with wordpress hosting and security
Getting started with wordpress hosting and security
 

Similar to How to Use PHP Smarty Template

Codeigniter
CodeigniterCodeigniter
Codeigniter
ShahRushika
 
CrowdFusion: The Front-End Edition, Part I: Presentation Layer
CrowdFusion: The Front-End Edition, Part I: Presentation LayerCrowdFusion: The Front-End Edition, Part I: Presentation Layer
CrowdFusion: The Front-End Edition, Part I: Presentation Layer
graybill
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
Muhammad Hafiz Hasan
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
mayank.grd
 
Adopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal wayAdopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal way
Marek Sotak
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To DrupalLauren Roth
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
Gerald Villorente
 
Usage Note of SWIG for PHP
Usage Note of SWIG for PHPUsage Note of SWIG for PHP
Usage Note of SWIG for PHP
William Lee
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
Joram Salinas
 
Instagram filters (8 24)
Instagram filters (8 24)Instagram filters (8 24)
Instagram filters (8 24)
Ivy Rueb
 
Flyr PHP micro-framework
Flyr PHP micro-frameworkFlyr PHP micro-framework
Flyr PHP micro-framework
Siro Díaz Palazón
 
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdfITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
Ortus Solutions, Corp
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
Evan Mullins
 
Website optimization
Website optimizationWebsite optimization
Website optimization
Mindfire Solutions
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
ANAND PRAKASH
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
darandon
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
ffats1
 
Open erp technical_memento_v0.6.3_a4
Open erp technical_memento_v0.6.3_a4Open erp technical_memento_v0.6.3_a4
Open erp technical_memento_v0.6.3_a4
openerpwiki
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013
Thomas Daly
 

Similar to How to Use PHP Smarty Template (20)

Codeigniter
CodeigniterCodeigniter
Codeigniter
 
CrowdFusion: The Front-End Edition, Part I: Presentation Layer
CrowdFusion: The Front-End Edition, Part I: Presentation LayerCrowdFusion: The Front-End Edition, Part I: Presentation Layer
CrowdFusion: The Front-End Edition, Part I: Presentation Layer
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
Beginner's guide to drupal
Beginner's guide to drupalBeginner's guide to drupal
Beginner's guide to drupal
 
Adopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal wayAdopt or hack - how to hack a theme in a Drupal way
Adopt or hack - how to hack a theme in a Drupal way
 
Introduction To Drupal
Introduction To DrupalIntroduction To Drupal
Introduction To Drupal
 
Drupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal ConceptsDrupal 7x Installation - Introduction to Drupal Concepts
Drupal 7x Installation - Introduction to Drupal Concepts
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, TerminologiesIntroduction to Drupal - Installation, Anatomy, Terminologies
Introduction to Drupal - Installation, Anatomy, Terminologies
 
Usage Note of SWIG for PHP
Usage Note of SWIG for PHPUsage Note of SWIG for PHP
Usage Note of SWIG for PHP
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Instagram filters (8 24)
Instagram filters (8 24)Instagram filters (8 24)
Instagram filters (8 24)
 
Flyr PHP micro-framework
Flyr PHP micro-frameworkFlyr PHP micro-framework
Flyr PHP micro-framework
 
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdfITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
ITB_2023_Extend_your_contentbox_apps_with_custom_modules_Javier_Quintero.pdf
 
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to DevelopmentWordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
WordCamp Greenville 2018 - Beware the Dark Side, or an Intro to Development
 
Website optimization
Website optimizationWebsite optimization
Website optimization
 
CONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEMCONTENT MANAGEMENT SYSTEM
CONTENT MANAGEMENT SYSTEM
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
 
Open erp technical_memento_v0.6.3_a4
Open erp technical_memento_v0.6.3_a4Open erp technical_memento_v0.6.3_a4
Open erp technical_memento_v0.6.3_a4
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013
 

More from Dot Com Infoway - Custom Software, Mobile, Web Application Development and Digital Marketing Company

The Future of Web Apps_ Trends, Ideas, and Insights
The Future of Web Apps_ Trends, Ideas, and InsightsThe Future of Web Apps_ Trends, Ideas, and Insights
The Future of Performance Marketing: Key Trends Shaping 2024
The Future of Performance Marketing: Key Trends Shaping 2024The Future of Performance Marketing: Key Trends Shaping 2024
Aso in numbers [Infographic]
Aso in numbers [Infographic]Aso in numbers [Infographic]
How to turn the challenge of covid 19 into a digitalzation opportunity
How to turn the challenge of covid 19 into a digitalzation opportunity How to turn the challenge of covid 19 into a digitalzation opportunity
How to turn the challenge of covid 19 into a digitalzation opportunity
Dot Com Infoway - Custom Software, Mobile, Web Application Development and Digital Marketing Company
 
How Much Does It Cost To Build a Start-up?
How Much Does It Cost To Build a Start-up?How Much Does It Cost To Build a Start-up?
DCI - Free Seo Tools
DCI - Free Seo ToolsDCI - Free Seo Tools
How to Grow Your Business to 10X by Building a Mobile App?
How to Grow Your Business to 10X by Building a Mobile App?How to Grow Your Business to 10X by Building a Mobile App?
ICO Marketing Guide
ICO Marketing GuideICO Marketing Guide
Webinar on "Measure & Optimize ROI with Influencer Marketing"
Webinar on "Measure & Optimize ROI with Influencer Marketing"Webinar on "Measure & Optimize ROI with Influencer Marketing"
Webinar on "Mobile App Marketing KPIs and Metrics"
Webinar on "Mobile App Marketing KPIs and Metrics"Webinar on "Mobile App Marketing KPIs and Metrics"
Webinar - Influence of Mobile Apps in the Growth of IoT
Webinar - Influence of Mobile Apps in the Growth of IoTWebinar - Influence of Mobile Apps in the Growth of IoT
Google SEO Ranking Factors 2017
Google SEO Ranking Factors 2017Google SEO Ranking Factors 2017
Take Your App to the Top This Holiday Season
Take Your App to the Top This Holiday SeasonTake Your App to the Top This Holiday Season
Webinar - Effective Tactics to Grow Loyal Users for Your App
Webinar - Effective Tactics to Grow Loyal Users for Your AppWebinar - Effective Tactics to Grow Loyal Users for Your App
Webinar - Why SEO Marketing is Important for Startup
Webinar - Why SEO Marketing is Important for StartupWebinar - Why SEO Marketing is Important for Startup
Top Web Technology Trends to Watch in 2016
Top Web Technology Trends to Watch in 2016Top Web Technology Trends to Watch in 2016
6 Strategies to Drive Mobile App Engagement
6 Strategies to Drive Mobile App Engagement6 Strategies to Drive Mobile App Engagement
Social Media Statistics And Trends
Social Media Statistics And TrendsSocial Media Statistics And Trends
Importance of Visual Content Marketing
Importance of Visual Content MarketingImportance of Visual Content Marketing
How to Plan for Successful App Launch
How to Plan for Successful App LaunchHow to Plan for Successful App Launch

More from Dot Com Infoway - Custom Software, Mobile, Web Application Development and Digital Marketing Company (20)

The Future of Web Apps_ Trends, Ideas, and Insights
The Future of Web Apps_ Trends, Ideas, and InsightsThe Future of Web Apps_ Trends, Ideas, and Insights
The Future of Web Apps_ Trends, Ideas, and Insights
 
The Future of Performance Marketing: Key Trends Shaping 2024
The Future of Performance Marketing: Key Trends Shaping 2024The Future of Performance Marketing: Key Trends Shaping 2024
The Future of Performance Marketing: Key Trends Shaping 2024
 
Aso in numbers [Infographic]
Aso in numbers [Infographic]Aso in numbers [Infographic]
Aso in numbers [Infographic]
 
How to turn the challenge of covid 19 into a digitalzation opportunity
How to turn the challenge of covid 19 into a digitalzation opportunity How to turn the challenge of covid 19 into a digitalzation opportunity
How to turn the challenge of covid 19 into a digitalzation opportunity
 
How Much Does It Cost To Build a Start-up?
How Much Does It Cost To Build a Start-up?How Much Does It Cost To Build a Start-up?
How Much Does It Cost To Build a Start-up?
 
DCI - Free Seo Tools
DCI - Free Seo ToolsDCI - Free Seo Tools
DCI - Free Seo Tools
 
How to Grow Your Business to 10X by Building a Mobile App?
How to Grow Your Business to 10X by Building a Mobile App?How to Grow Your Business to 10X by Building a Mobile App?
How to Grow Your Business to 10X by Building a Mobile App?
 
ICO Marketing Guide
ICO Marketing GuideICO Marketing Guide
ICO Marketing Guide
 
Webinar on "Measure & Optimize ROI with Influencer Marketing"
Webinar on "Measure & Optimize ROI with Influencer Marketing"Webinar on "Measure & Optimize ROI with Influencer Marketing"
Webinar on "Measure & Optimize ROI with Influencer Marketing"
 
Webinar on "Mobile App Marketing KPIs and Metrics"
Webinar on "Mobile App Marketing KPIs and Metrics"Webinar on "Mobile App Marketing KPIs and Metrics"
Webinar on "Mobile App Marketing KPIs and Metrics"
 
Webinar - Influence of Mobile Apps in the Growth of IoT
Webinar - Influence of Mobile Apps in the Growth of IoTWebinar - Influence of Mobile Apps in the Growth of IoT
Webinar - Influence of Mobile Apps in the Growth of IoT
 
Google SEO Ranking Factors 2017
Google SEO Ranking Factors 2017Google SEO Ranking Factors 2017
Google SEO Ranking Factors 2017
 
Take Your App to the Top This Holiday Season
Take Your App to the Top This Holiday SeasonTake Your App to the Top This Holiday Season
Take Your App to the Top This Holiday Season
 
Webinar - Effective Tactics to Grow Loyal Users for Your App
Webinar - Effective Tactics to Grow Loyal Users for Your AppWebinar - Effective Tactics to Grow Loyal Users for Your App
Webinar - Effective Tactics to Grow Loyal Users for Your App
 
Webinar - Why SEO Marketing is Important for Startup
Webinar - Why SEO Marketing is Important for StartupWebinar - Why SEO Marketing is Important for Startup
Webinar - Why SEO Marketing is Important for Startup
 
Top Web Technology Trends to Watch in 2016
Top Web Technology Trends to Watch in 2016Top Web Technology Trends to Watch in 2016
Top Web Technology Trends to Watch in 2016
 
6 Strategies to Drive Mobile App Engagement
6 Strategies to Drive Mobile App Engagement6 Strategies to Drive Mobile App Engagement
6 Strategies to Drive Mobile App Engagement
 
Social Media Statistics And Trends
Social Media Statistics And TrendsSocial Media Statistics And Trends
Social Media Statistics And Trends
 
Importance of Visual Content Marketing
Importance of Visual Content MarketingImportance of Visual Content Marketing
Importance of Visual Content Marketing
 
How to Plan for Successful App Launch
How to Plan for Successful App LaunchHow to Plan for Successful App Launch
How to Plan for Successful App Launch
 

Recently uploaded

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 

Recently uploaded (20)

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 

How to Use PHP Smarty Template

  • 1. Smarty - Template Engine
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. Welcome <!--{$name}--> to Smarty <script language=&quot;javascript&quot;> var foo = <!--{$foo}-->; function dosomething() { alert(&quot;foo is &quot; + foo); } dosomething(); </script>
  • 7. <?php $smarty = new  Smarty(); $smarty->assign('firstname', 'Doug'); $smarty->assign('lastname', 'Evans'); $smarty->assign('meetingPlace', 'New York'); $smarty->display('index.tpl'); ?>
  • 8. <? php $smarty->assign('cust_ids', array(56,92,13)); $smarty->assign('cust_names', array(                               'Joe Schmoe',                               'Jane Johnson',                               'Charlie Brown')); $smarty->assign('customer_id', 92); ?>
  • 9. <select name=&quot;customer_id&quot; size=&quot;{$cust_names|@count}&quot;> {html_options values=$cust_ids output=$cust_names selected=$customer_id} </select>