{"id":41013,"date":"2016-02-11T19:23:48","date_gmt":"2016-02-11T19:23:48","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=41013"},"modified":"2022-12-26T06:19:46","modified_gmt":"2022-12-26T06:19:46","slug":"learn-about-appml","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/learn-about-appml\/","title":{"rendered":"Learn About AppML"},"content":{"rendered":"<p>Today we are going to learn about AppML which stands for Application Modeling Language. With the help of AppML we can bring data to a html page without write any extra code like Javascript, Jquery etc. By download Appml or by using cdn (content delivery network) you can develop a html page. If you are a <a href=\"https:\/\/store.webkul.com\/OpenCart-Modules.html\">OpenCart extension<\/a> developer then you can also use Appml easily to bring lots of data to your html data.<\/p>\n<p>Controller &#8211;<\/p>\n<pre class=\"brush:php\">&lt;?php\nclass ControllerAccountAppml extends Controller {\n\n\tpublic function index() {\n\t\t\n\t\t$this-&gt;document-&gt;addScript('http:\/\/www.w3schools.com\/appml\/2.0.2\/appml.js');\n\t\t\n\t\t$data['header'] = $this-&gt;load-&gt;controller('common\/header');\n\n\t\tif (file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '\/template\/account\/account.tpl')) {\n\t\t\t$this-&gt;response-&gt;setOutput($this-&gt;load-&gt;view($this-&gt;config-&gt;get('config_template') . '\/template\/module\/appml.tpl',$data));\n\t\t} else {\n\t\t\t$this-&gt;response-&gt;setOutput($this-&gt;load-&gt;view('default\/template\/module\/appml.tpl',$data));\n\t\t}\n\t}\n\n\tpublic function appml(){\n\n\t\t$this-&gt;load-&gt;model('account\/appml');\n        \n        $customer_details = $this-&gt;model_account_appml-&gt;appml();\n\n\t\t$this-&gt;response-&gt;addHeader('Content-Type: application\/json');\n\t\t$this-&gt;response-&gt;setOutput(json_encode($customer_details));\n\t}\n}\n<\/pre>\n<p>Model &#8211;<\/p>\n<pre class=\"brush:php\">&lt;?php\nclass ModelAccountAppml extends Model {\n\n\tpublic function appml(){\n\n\t\t$query = $this-&gt;db-&gt;query(\"SELECT * FROM `\" . DB_PREFIX . \"customer`\");\n\n\t\treturn $query;\n\t}\n\n}\n?&gt;<\/pre>\n<p>View &#8211;<\/p>\n<pre class=\"brush:xml\">&lt;?php echo $header; ?&gt;\n&lt;div class=\"table-responsive\"&gt;\n  &lt;table class=\"table table-bordered table-hover\" appml-data=\"index.php?route=account\/appml\/appml\"&gt;\n    &lt;thead&gt;\n       &lt;tr&gt;\n         &lt;td&gt;Customer_id&lt;\/td&gt;\n         &lt;td&gt;First Name&lt;\/td&gt;\n         &lt;td&gt;Last Name&lt;\/td&gt;\n         &lt;td&gt;Email Id&lt;\/td&gt;\n       &lt;\/tr&gt;\n    &lt;\/thead&gt;\n    &lt;tbody appml-repeat=\"rows\"&gt;\n        &lt;td&gt;{{customer_id}}&lt;\/td&gt;\n        &lt;td&gt;{{firstname}}&lt;\/td&gt;\n        &lt;td&gt;{{lastname}}&lt;\/td&gt;\n        &lt;td&gt;{{email}}&lt;\/td&gt;\n    &lt;\/tbody&gt;\n  &lt;\/table&gt;\n&lt;\/div&gt;<\/pre>\n<p>Result &#8211;<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"http:\/\/i.imgur.com\/PGAjmmE.png\" alt=\"\" width=\"1299\" height=\"226\" loading=\"lazy\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we are going to learn about AppML which stands for Application Modeling Language. With the help of AppML we can bring data to a html page without write any extra code like Javascript, Jquery etc. By download Appml or by using cdn (content delivery network) you can develop a html page. If you are <a href=\"https:\/\/webkul.com\/blog\/learn-about-appml\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":71,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305,13],"tags":[2071],"class_list":["post-41013","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","category-php","tag-opencart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn About AppML - Webkul Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/learn-about-appml\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn About AppML - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Today we are going to learn about AppML which stands for Application Modeling Language. With the help of AppML we can bring data to a html page without write any extra code like Javascript, Jquery etc. By download Appml or by using cdn (content delivery network) you can develop a html page. If you are [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/learn-about-appml\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-11T19:23:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-26T06:19:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Sambit Pattanayak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sambit Pattanayak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/\"},\"author\":{\"name\":\"Sambit Pattanayak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01\"},\"headline\":\"Learn About AppML\",\"datePublished\":\"2016-02-11T19:23:48+00:00\",\"dateModified\":\"2022-12-26T06:19:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/\"},\"wordCount\":85,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"opencart\"],\"articleSection\":[\"opencart\",\"php\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/learn-about-appml\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/\",\"url\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/\",\"name\":\"Learn About AppML - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2016-02-11T19:23:48+00:00\",\"dateModified\":\"2022-12-26T06:19:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/learn-about-appml\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/learn-about-appml\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn About AppML\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01\",\"name\":\"Sambit Pattanayak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sambit Pattanayak\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sambit-p819\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn About AppML - Webkul Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/learn-about-appml\/","og_locale":"en_US","og_type":"article","og_title":"Learn About AppML - Webkul Blog","og_description":"Today we are going to learn about AppML which stands for Application Modeling Language. With the help of AppML we can bring data to a html page without write any extra code like Javascript, Jquery etc. By download Appml or by using cdn (content delivery network) you can develop a html page. If you are [...]","og_url":"https:\/\/webkul.com\/blog\/learn-about-appml\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-02-11T19:23:48+00:00","article_modified_time":"2022-12-26T06:19:46+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Sambit Pattanayak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sambit Pattanayak","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/"},"author":{"name":"Sambit Pattanayak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01"},"headline":"Learn About AppML","datePublished":"2016-02-11T19:23:48+00:00","dateModified":"2022-12-26T06:19:46+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/"},"wordCount":85,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["opencart"],"articleSection":["opencart","php"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/learn-about-appml\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/","url":"https:\/\/webkul.com\/blog\/learn-about-appml\/","name":"Learn About AppML - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2016-02-11T19:23:48+00:00","dateModified":"2022-12-26T06:19:46+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/learn-about-appml\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/learn-about-appml\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Learn About AppML"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/23309d7bfba5b06d58b50ea5e3191f01","name":"Sambit Pattanayak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b470681418ca47d8211cf413884189c631a12188462ba25500fa51c897318975?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sambit Pattanayak"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/sambit-p819\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41013","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=41013"}],"version-history":[{"count":2,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41013\/revisions"}],"predecessor-version":[{"id":361736,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/41013\/revisions\/361736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=41013"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=41013"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=41013"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}