{"id":1567,"date":"2012-07-12T15:08:26","date_gmt":"2012-07-12T15:08:26","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2012\/07\/12\/jfactory-get-application\/"},"modified":"2021-08-16T23:39:29","modified_gmt":"2021-08-17T03:39:29","slug":"jfactory-get-application","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/","title":{"rendered":"Joomla 2.5 Templates &#8211; JFactory::getApplication()"},"content":{"rendered":"<p class=\"alert\">Joomla 2.5 has reached its end of life as for 12\/31\/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life <a href=\"https:\/\/docs.joomla.org\/Joomla!_CMS_versions\">here<\/a>.<\/p>\n<p>As we dig deeper into the <a href=\"\/support\/website\/working-with-images-in-premium-web-builder\/\">PHP code that makes up the Joomla 2.5 Beez2 template<\/a>, we come to the following line of code:<\/p>\n<p class=\"code_block\">$app\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = JFactory::getApplication();<\/p>\n<p>We have two items here that we need to review, JFactory and getApplication.<\/p>\n<h2>What is JFactory used for?<\/h2>\n<p>You can use JFactory to get access to several core Joomla objects. When you use JFactory, your variable will be an object and generally contains your Joomla 2.5 site settings.<\/p>\n<p>According to <a href=\"https:\/\/docs.joomla.org\/JFactory_Class\">official documentation<\/a>, there are many other objects that you can call.<\/p>\n<h2>What data is returned with getApplication() ?<\/h2>\n<p>Using the following code, we can look at the contents of the <strong>$app<\/strong> object, which is assigned its values by <strong>JFactory::getApplication()<\/strong>.<\/p>\n<p class=\"code_block\">$app\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = JFactory::getApplication();<br>\n<span style=\"color: #ff0000;\">echo \u201c&lt;pre&gt;\u201d; print_r($app); echo \u201c&lt;\/pre&gt;\u201d; die();<\/span><\/p>\n<p>As you can see in the table below, there is quite a bit of information put into the <strong>$app<\/strong> variable by<strong> JFactory::getApplication()<\/strong>.<\/p>\n<table class=\"article_table\">\n<tbody>\n<tr>\n<th>Actual Data in $app variable<\/th>\n<th>Screenshot of our testing code<\/th>\n<\/tr>\n<tr>\n<td>\n<pre class=\"code_block\">JSite Object\n(\n    [template:private] =&gt; stdClass Object\n        (\n            [id] =&gt; 4\n            [home] =&gt; 1\n            [template] =&gt; beez_20\n            [params] =&gt; JRegistry Object\n                (\n                    [data:protected] =&gt; stdClass Object\n                        (\n                            [wrapperSmall] =&gt; 53\n                            [wrapperLarge] =&gt; 72\n                            [logo] =&gt; images\/joomla_black.gif\n                            [sitetitle] =&gt; Joomla!\n                            [sitedescription] =&gt; Open Source Content Management\n                            [navposition] =&gt; left\n                            [templatecolor] =&gt; personal\n                        )\n\n                )\n\n        )\n\n    [_language_filter:private] =&gt; \n    [_detect_browser:private] =&gt; \n    [clientId:protected] =&gt; \n    [_clientId:protected] =&gt; 0\n    [messageQueue:protected] =&gt; Array\n        (\n        )\n\n    [_messageQueue:protected] =&gt; Array\n        (\n        )\n\n    [name:protected] =&gt; \n    [_name:protected] =&gt; site\n    [scope] =&gt; \n    [requestTime] =&gt; 2012-07-12 15:36\n    [startTime] =&gt; 1342107374.8458\n    [input] =&gt; JInput Object\n        (\n            [options:protected] =&gt; Array\n                (\n                )\n\n            [filter:protected] =&gt; JFilterInput Object\n                (\n                    [tagsArray] =&gt; Array\n                        (\n                        )\n\n                    [attrArray] =&gt; Array\n                        (\n                        )\n\n                    [tagsMethod] =&gt; 0\n                    [attrMethod] =&gt; 0\n                    [xssAuto] =&gt; 1\n                    [tagBlacklist] =&gt; Array\n                        (\n                            [0] =&gt; applet\n                            [1] =&gt; body\n                            [2] =&gt; bgsound\n                            [3] =&gt; base\n                            [4] =&gt; basefont\n                            [5] =&gt; embed\n                            [6] =&gt; frame\n                            [7] =&gt; frameset\n                            [8] =&gt; head\n                            [9] =&gt; html\n                            [10] =&gt; id\n                            [11] =&gt; iframe\n                            [12] =&gt; ilayer\n                            [13] =&gt; layer\n                            [14] =&gt; link\n                            [15] =&gt; meta\n                            [16] =&gt; name\n                            [17] =&gt; object\n                            [18] =&gt; script\n                            [19] =&gt; style\n                            [20] =&gt; title\n                            [21] =&gt; xml\n                        )\n\n                    [attrBlacklist] =&gt; Array\n                        (\n                            [0] =&gt; action\n                            [1] =&gt; background\n                            [2] =&gt; codebase\n                            [3] =&gt; dynsrc\n                            [4] =&gt; lowsrc\n                        )\n\n                    [_errors:protected] =&gt; Array\n                        (\n                        )\n\n                )\n\n            [data:protected] =&gt; Array\n                (\n                    [SESSf61997c271b5d7e7cd0e3d4d2cc7fed5] =&gt; oQ8nNIkJD-4hEdP-MWN7foEq6jN2SC6Ww19I9Q26zv8\n                    [jpanesliders_menu-sliders-543] =&gt; 0\n                    [jpanesliders_plugin-sliders-433] =&gt; 0\n                    [jpanesliders_permissions-sliderscom_users] =&gt; 0\n                    [jpanesliders_sliders] =&gt; 1\n                    [jpanesliders_plugin-sliders-10067] =&gt; 0\n                    [jpanesliders_content-sliders-] =&gt; 0\n                    [jpanesliders_permissions-sliders-] =&gt; 0\n                    [jpanesliders_menu-sliders-435] =&gt; 0\n                    [jpanesliders_content-sliders-79] =&gt; 0\n                    [jpanesliders_permissions-sliders-79] =&gt; 0\n                    [jpanesliders_permissions-sliderscom_content] =&gt; 0\n                    [jpanesliders_menu-sliders-] =&gt; 0\n                    [fb8d050fa6edfad9f07b1fb40c8266d0] =&gt; 400ef7499e634eb4e7c9cb0d763b22e1\n                    [037affe80d78b62a827b593db7df4c3b] =&gt; 91e8e99991ce9f146a26eab8c67f551e\n                    [jpanesliders_module-sliders] =&gt; 0\n                    [jpanesliders_panel-sliders] =&gt; 0\n                    [jpanesliders_position-icon] =&gt; 0\n                    [__utma] =&gt; 256822360.1859812311.1342025884.1342039063.1342100374.5\n                    [__utmc] =&gt; 256822360\n                    [__utmz] =&gt; 256822360.1342025884.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)\n                    [jpanesliders_template-sliders-4] =&gt; 0\n                    [option] =&gt; com_content\n                    [view] =&gt; featured\n                    [Itemid] =&gt; 435\n                )\n\n            [inputs:protected] =&gt; Array\n                (\n                    [request] =&gt; JInput Object\n                        (\n                            [options:protected] =&gt; Array\n                                (\n                                )\n\n                            [filter:protected] =&gt; JFilterInput Object\n                                (\n                                    [tagsArray] =&gt; Array\n                                        (\n                                        )\n\n                                    [attrArray] =&gt; Array\n                                        (\n                                        )\n\n                                    [tagsMethod] =&gt; 0\n                                    [attrMethod] =&gt; 0\n                                    [xssAuto] =&gt; 1\n                                    [tagBlacklist] =&gt; Array\n                                        (\n                                            [0] =&gt; applet\n                                            [1] =&gt; body\n                                            [2] =&gt; bgsound\n                                            [3] =&gt; base\n                                            [4] =&gt; basefont\n                                            [5] =&gt; embed\n                                            [6] =&gt; frame\n                                            [7] =&gt; frameset\n                                            [8] =&gt; head\n                                            [9] =&gt; html\n                                            [10] =&gt; id\n                                            [11] =&gt; iframe\n                                            [12] =&gt; ilayer\n                                            [13] =&gt; layer\n                                            [14] =&gt; link\n                                            [15] =&gt; meta\n                                            [16] =&gt; name\n                                            [17] =&gt; object\n                                            [18] =&gt; script\n                                            [19] =&gt; style\n                                            [20] =&gt; title\n                                            [21] =&gt; xml\n                                        )\n\n                                    [attrBlacklist] =&gt; Array\n                                        (\n                                            [0] =&gt; action\n                                            [1] =&gt; background\n                                            [2] =&gt; codebase\n                                            [3] =&gt; dynsrc\n                                            [4] =&gt; lowsrc\n                                        )\n\n                                    [_errors:protected] =&gt; Array\n                                        (\n                                        )\n\n                                )\n\n                            [data:protected] =&gt; Array\n                                (\n                                    [SESSf61997c271b5d7e7cd0e3d4d2cc7fed5] =&gt; oQ8nNIkJD-4hEdP-MWN7foEq6jN2SC6Ww19I9Q26zv8\n                                    [jpanesliders_menu-sliders-543] =&gt; 0\n                                    [jpanesliders_plugin-sliders-433] =&gt; 0\n                                    [jpanesliders_permissions-sliderscom_users] =&gt; 0\n                                    [jpanesliders_sliders] =&gt; 1\n                                    [jpanesliders_plugin-sliders-10067] =&gt; 0\n                                    [jpanesliders_content-sliders-] =&gt; 0\n                                    [jpanesliders_permissions-sliders-] =&gt; 0\n                                    [jpanesliders_menu-sliders-435] =&gt; 0\n                                    [jpanesliders_content-sliders-79] =&gt; 0\n                                    [jpanesliders_permissions-sliders-79] =&gt; 0\n                                    [jpanesliders_permissions-sliderscom_content] =&gt; 0\n                                    [jpanesliders_menu-sliders-] =&gt; 0\n                                    [fb8d050fa6edfad9f07b1fb40c8266d0] =&gt; 400ef7499e634eb4e7c9cb0d763b22e1\n                                    [037affe80d78b62a827b593db7df4c3b] =&gt; 91e8e99991ce9f146a26eab8c67f551e\n                                    [jpanesliders_module-sliders] =&gt; 0\n                                    [jpanesliders_panel-sliders] =&gt; 0\n                                    [jpanesliders_position-icon] =&gt; 0\n                                    [__utma] =&gt; 256822360.1859812311.1342025884.1342039063.1342100374.5\n                                    [__utmc] =&gt; 256822360\n                                    [__utmz] =&gt; 256822360.1342025884.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)\n                                    [jpanesliders_template-sliders-4] =&gt; 0\n                                    [option] =&gt; com_content\n                                    [view] =&gt; featured\n                                    [Itemid] =&gt; 435\n                                )\n\n                            [inputs:protected] =&gt; Array\n                                (\n                                )\n\n                        )\n\n                )\n\n        )\n\n    [_errors:protected] =&gt; Array\n        (\n        )\n\n)<\/pre>\n<\/td>\n<td><a href=\"\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\" rel=\"lightbox-0\"><img decoding=\"async\" width=\"650\" height=\"800\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\" class=\"optimized-lcp-image\" alt=\"data-in-app-variable\" loading=\"eager\" fetchpriority=\"high\" sizes=\"(max-width: 768px) 100vw, 768px\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>How is the $app variable used in the template?<\/h2>\n<p>We now know that the <strong>$app<\/strong> variable contains a lot of information, but how is this information used within our template? To find out, we\u2019ll look at an example where $app is used:<\/p>\n<p class=\"code_block\">$templateparams \u00a0 \u00a0 = $app-&gt;getTemplate(true)-&gt;params;<\/p>\n<p>The above appears to be the only use of the $app variable within the Beez2 index.php file. In this case, we are using <strong>$app<\/strong> with <strong>getTemplate params<\/strong> to apparently get the parameters of our template (<a href=\"\/support\/edu\/joomla\/joomla-2-5\/this-params-get\/\">which we\u2019ve apparently already done within the template?<\/a>).<\/p>\n<p>We\u2019ll see what values are stored in $templateparams by using the following code:<\/p>\n<p class=\"code_block\">$templateparams \u00a0 \u00a0 = $app-&gt;getTemplate(true)-&gt;params;<br>\n<span style=\"color: #ff0000;\">echo \u201c&lt;pre&gt;\u201d; print_r($templateparams); echo \u201c&lt;\/pre&gt;\u201d; die();<\/span><\/p>\n<p>The results of that line of code confirm that the <strong>$templateparams<\/strong> variable contains the values of our template\u2019s parameters:<\/p>\n<pre class=\"code_block\">JRegistry Object\n(\n    [data:protected] =&gt; stdClass Object\n        (\n            [wrapperSmall] =&gt; 53\n            [wrapperLarge] =&gt; 72\n            [logo] =&gt; images\/joomla_black.gif\n            [sitetitle] =&gt; Joomla!\n            [sitedescription] =&gt; Open Source Content Management\n            [navposition] =&gt; left\n            [templatecolor] =&gt; personal\n        )\n\n)<\/pre>\n<p>Again, we have already accessed these same values using the following code (which appeared earlier in the template):<\/p>\n<pre class=\"code_block\">\/\/ get params\n$color              = $this-&gt;params-&gt;get('templatecolor');\n$logo               = $this-&gt;params-&gt;get('logo');\n$navposition        = $this-&gt;params-&gt;get('navposition');<\/pre>\n<p>In the end, the $templateparams variable is ultimately used in the following context:<\/p>\n<p>$templateparams-&gt;get(\u2018sitetitle\u2019)<\/p>\n<p>$templateparams-&gt;get(\u2018sitedescription\u2019)<\/p>\n<h2>Why is the JFactory::getApplication() used in this template?<\/h2>\n<p>Above we showed you how JFactory::getApplication is used in the template, now we will show you WHY it was used:<\/p>\n<ol>\n<li style=\"margin-bottom: 5px;\">JFactory::getApplication was used to create the $app variable:$app = JFactory::getApplication();<\/li>\n<li style=\"margin-bottom: 5px;\">The $app variable was then used to create the $templateparams variable:$templateparams = $app-&gt;getTemplate(true)-&gt;params;<\/li>\n<li>Finally, $templateparams is used to get the following values:$templateparams-&gt;get(\u2018sitetitle\u2019)\n<p>and\u2026<\/p>\n<p>$templateparams-&gt;get(\u2018sitedescription\u2019)<\/p>\n<p>So, in the end it appears that getApplication is used to get the <strong>site\u2019s title<\/strong> and the <strong>site\u2019s description<\/strong>:<\/p>\n<table class=\"article_table\">\n<tbody>\n<tr>\n<th>Test code to see the value of sitetitle and sitedescription<\/th>\n<th>What are the values of sitetitle and sitedescription?<\/th>\n<\/tr>\n<tr>\n<td>\n<pre class=\"code_block\">$app                = JFactory::getApplication();\n$doc        = JFactory::getDocument();\n$templateparams     = $app-&gt;getTemplate(true)-&gt;params;\n<strong>echo \"  <\/strong><strong>                templateparams-&gt;get('sitetitle') = \" . $templateparams-&gt;get('sitetitle') . \"\n                templateparams-&gt;get('sitedescription') = \" . $templateparams-&gt;get('sitedescription') . \"\n        <\/strong>\n<strong> \"; die();<\/strong><\/pre>\n<\/td>\n<td><a href=\"\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_values-taken-from-templateparams.gif\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss\" style=\"max-width: 240px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_values-taken-from-templateparams.gif\" alt=\"values-taken-from-templateparams\" width=\"754\" height=\"354\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<\/tr>\n<tr>\n<th>Where are these values used within the template?<\/th>\n<th>Where are these values defined?<\/th>\n<\/tr>\n<tr>\n<td><a href=\"\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_sitetitle-and-sitedescription-in-the-template.gif\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss size-full wp-image-7945\" style=\"max-width: 240px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_sitetitle-and-sitedescription-in-the-template.gif\" alt=\"sitetitle-and-sitedescription-in-the-template\" width=\"1053\" height=\"506\"><\/a>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<td>Where are these values defined? That\u2019s a really good question! After further research, they do not appear to be set anywhere within the Global Configuration settings, anywhere within the configuration.php file, nor do they appear to be anywhere within the site\u2019s language files. They are actually set in the template\u2019s configuration (which means they\u2019re stored in the database), as seen in the screenshot below:\n<p><a href=\"\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_sitetitle-and-sitedescription-in-template-config.gif\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss\" style=\"max-width: 240px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_sitetitle-and-sitedescription-in-template-config.gif\" alt=\"sitetitle-and-sitedescription-in-template-config\" width=\"978\" height=\"636\"><\/a><\/p>\n<div style=\"clear: both;\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Joomla 2.5 has reached its end of life as for 12\/31\/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life here. As we dig deeper into the PHP code that makes up the Joomla 2.5 Beez2 template, we come to the following<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4403,82],"tags":[2113],"class_list":["post-1567","post","type-post","status-publish","format-standard","hentry","category-joomla","category-joomla-2-5","tag-joomla-v2-5"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site&#039;s title and description (which are Advanced Options) for the template.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site&#039;s title and description (which are Advanced Options) for the template.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-12T15:08:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-17T03:39:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"Joomla 2.5 Templates &#8211; JFactory::getApplication()\",\"datePublished\":\"2012-07-12T15:08:26+00:00\",\"dateModified\":\"2021-08-17T03:39:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\"},\"wordCount\":588,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\",\"keywords\":[\"Joomla v2.5\"],\"articleSection\":[\"Joomla\",\"Joomla 2.5\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\",\"name\":\"Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\",\"datePublished\":\"2012-07-12T15:08:26+00:00\",\"dateModified\":\"2021-08-17T03:39:29+00:00\",\"description\":\"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site's title and description (which are Advanced Options) for the template.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif\",\"width\":650,\"height\":800,\"caption\":\"data-in-app-variable\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Joomla 2.5 Templates &#8211; JFactory::getApplication()\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting","description":"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site's title and description (which are Advanced Options) for the template.","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:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/","og_locale":"en_US","og_type":"article","og_title":"Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting","og_description":"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site's title and description (which are Advanced Options) for the template.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2012-07-12T15:08:26+00:00","article_modified_time":"2021-08-17T03:39:29+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif","type":"","width":"","height":""}],"author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"Joomla 2.5 Templates &#8211; JFactory::getApplication()","datePublished":"2012-07-12T15:08:26+00:00","dateModified":"2021-08-17T03:39:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/"},"wordCount":588,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif","keywords":["Joomla v2.5"],"articleSection":["Joomla","Joomla 2.5"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/","name":"Joomla 2.5 Templates - JFactory::getApplication() | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif","datePublished":"2012-07-12T15:08:26+00:00","dateModified":"2021-08-17T03:39:29+00:00","description":"While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site's title and description (which are Advanced Options) for the template.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2012\/07\/edu_joomla25_create-template_data-in-app-variable.gif","width":650,"height":800,"caption":"data-in-app-variable"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/joomla\/joomla-2-5\/jfactory-get-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Joomla 2.5 Templates &#8211; JFactory::getApplication()"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=1567"}],"version-history":[{"count":6,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1567\/revisions"}],"predecessor-version":[{"id":85828,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/1567\/revisions\/85828"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=1567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=1567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=1567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}