{"id":1309,"date":"2016-03-04T17:24:56","date_gmt":"2016-03-04T17:24:56","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=1309"},"modified":"2016-03-04T17:24:56","modified_gmt":"2016-03-04T17:24:56","slug":"create-custom-url-helper-function-codeigniter","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/","title":{"rendered":"Create Custom URL Helper Function in CodeIgniter"},"content":{"rendered":"<p>In <a href=\"http:\/\/www.codexworld.com\/category\/codeigniter\/\">CodeIgniter<\/a>, we all know that the project base URL is defined in <code>application\/config\/config.php<\/code> file. If project location is changed, you only need to change the <code>$config['base_url']<\/code> value. The project base URL could get by calling <code>base_url()<\/code> method in CodeIgniter project. Like this, you can define the custom variable in <code>application\/config\/config.php<\/code> file and get the respective variable value from anywhere in CodeIgniter project.<\/p>\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-1024x576.png\" alt=\"create-custom-url-helper-function-in-codeigniter-by-codexworld\" width=\"960\" height=\"540\" class=\"alignnone size-large wp-image-1311\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-1024x576.png 1024w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-300x169.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-768x432.png 768w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-350x197.png 350w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-320x180.png 320w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-380x214.png 380w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-200x112.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld-346x195.png 346w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png 1366w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/div>\n<p>In this article, we&#8217;ll show the simple way to define a custom URL and getting the respective URL from custom URL function. Here we&#8217;ll define the public URL (where all the assets content would be stored) and <code>public_url()<\/code> function to get the project assets directory URL.<\/p>\n<p>At First create a custom URL function. Open the <code>system\/helpers\/url_helper.php<\/code> file and create <code>public_url()<\/code> function.<\/p>\n<pre><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Public&nbsp;URL<br \/>&nbsp;*&nbsp;<br \/>&nbsp;*&nbsp;File&nbsp;public&nbsp;URL,&nbsp;function&nbsp;created&nbsp;by&nbsp;CodexWorld.<br \/>&nbsp;*<br \/>&nbsp;*&nbsp;@access&nbsp;&nbsp;&nbsp;&nbsp;public<br \/>&nbsp;*&nbsp;@param&nbsp;&nbsp;&nbsp;string<br \/>&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;string<br \/>&nbsp;*\/<br \/><\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;!&nbsp;<\/span><span style=\"color: #0000BB\">function_exists<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'public_url'<\/span><span style=\"color: #007700\">))<br \/>{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;function&nbsp;<\/span><span style=\"color: #0000BB\">public_url<\/span><span style=\"color: #007700\">()<br \/>&nbsp;&nbsp;&nbsp;&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$CI&nbsp;<\/span><span style=\"color: #007700\">=&amp;&nbsp;<\/span><span style=\"color: #0000BB\">get_instance<\/span><span style=\"color: #007700\">();<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<\/span><span style=\"color: #0000BB\">$CI<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">config<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">config<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'public_url'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;}<br \/>}<\/span><\/pre>\n<p>Open the <code>application\/config\/config.php<\/code> file and assign the Public URL in config array.<\/p>\n<pre><span style=\"color: #FF8000\">\/*<br \/>|-----------------------------------------<br \/>|&nbsp;File&nbsp;Public&nbsp;URL<br \/>|-----------------------------------------<br \/>|<br \/>|&nbsp;URL&nbsp;to&nbsp;your&nbsp;assets&nbsp;root&nbsp;directory:<br \/>|<br \/>|&nbsp;&nbsp;&nbsp;&nbsp;http:\/\/example.com\/assets_dir\/<br \/>|<br \/>*\/<br \/><\/span><span style=\"color: #0000BB\">$config<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'public_url'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #DD0000\">\"http:\/\/\"&nbsp;<\/span><span style=\"color: #007700\">.&nbsp;<\/span><span style=\"color: #0000BB\">$_SERVER<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'HTTP_HOST'<\/span><span style=\"color: #007700\">]&nbsp;.&nbsp;<\/span><span style=\"color: #DD0000\">\"\/assets\/\"<\/span><span style=\"color: #007700\">;<\/span><\/pre>\n<h2>Example Uses<\/h2>\n<p>Here the example to displaying an image using custom URL function in CodeIgniter project.<\/p>\n<pre>&lt;<span style=\"color:#bf4f24\">img<\/span> <span style=\"color:#bf4f24\">src<\/span>=<span style=\"color:#0b6125\">\"<span style=\"color: #0000BB\">&lt;?php&nbsp;<\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #0000BB\">public_url<\/span><span style=\"color: #007700\">();&nbsp;<\/span><span style=\"color: #0000BB\">?&gt;<\/span>images\/codex.png\"<\/span>  <span style=\"color:#bf4f24\">alt<\/span>=<span style=\"color:#0b6125\">\"\"<\/span>>\r\n<\/pre>\n<h2>Conclusion<\/h2>\n<p>Using this way you can define any custom variable and respective function for using globally in the project. Also, you can retrieve the config item without creating a custom function by using the following line of code.<\/p>\n<pre><span style=\"color: #0000BB\">$this<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">config<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">item<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'public_url'<\/span><span style=\"color: #007700\">);<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In CodeIgniter, we all know that the project base URL is defined in application\/config\/config.php file. If project location is changed, you only need to change the $config[&#8216;base_url&#8217;] value. The project base URL could get by <\/p>\n","protected":false},"author":1,"featured_media":1311,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8],"tags":[55,152,151],"class_list":["post-1309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codeigniter","tag-codeigniter","tag-function","tag-helper","cat-8-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create Custom URL Helper Function in CodeIgniter - CodexWorld<\/title>\n<meta name=\"description\" content=\"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().\" \/>\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.codexworld.com\/create-custom-url-helper-function-codeigniter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Custom URL Helper Function in CodeIgniter - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-04T17:24:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1366\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Create Custom URL Helper Function in CodeIgniter\",\"datePublished\":\"2016-03-04T17:24:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/\"},\"wordCount\":191,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png\",\"keywords\":[\"CodeIgniter\",\"Function\",\"Helper\"],\"articleSection\":[\"CodeIgniter\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/\",\"name\":\"Create Custom URL Helper Function in CodeIgniter - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png\",\"datePublished\":\"2016-03-04T17:24:56+00:00\",\"description\":\"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png\",\"width\":1366,\"height\":768,\"caption\":\"create-custom-url-helper-function-in-codeigniter-by-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-url-helper-function-codeigniter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Custom URL Helper Function in CodeIgniter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Custom URL Helper Function in CodeIgniter - CodexWorld","description":"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().","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.codexworld.com\/create-custom-url-helper-function-codeigniter\/","og_locale":"en_US","og_type":"article","og_title":"Create Custom URL Helper Function in CodeIgniter - CodexWorld","og_description":"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().","og_url":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2016-03-04T17:24:56+00:00","og_image":[{"width":1366,"height":768,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Create Custom URL Helper Function in CodeIgniter","datePublished":"2016-03-04T17:24:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/"},"wordCount":191,"commentCount":0,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","keywords":["CodeIgniter","Function","Helper"],"articleSection":["CodeIgniter"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/","url":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/","name":"Create Custom URL Helper Function in CodeIgniter - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","datePublished":"2016-03-04T17:24:56+00:00","description":"CodeIgniter custom URL helper function - Simple way to create custom url helper function like base_url().","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","width":1366,"height":768,"caption":"create-custom-url-helper-function-in-codeigniter-by-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/create-custom-url-helper-function-codeigniter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Create Custom URL Helper Function in CodeIgniter"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2016\/03\/create-custom-url-helper-function-in-codeigniter-by-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-l7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=1309"}],"version-history":[{"count":3,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1309\/revisions"}],"predecessor-version":[{"id":1313,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/1309\/revisions\/1313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/1311"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=1309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=1309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=1309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}