{"id":152,"date":"2012-09-04T16:41:54","date_gmt":"2012-09-04T14:41:54","guid":{"rendered":"http:\/\/www.4amics.com\/x.perez\/?p=152"},"modified":"2012-09-04T16:42:52","modified_gmt":"2012-09-04T14:42:52","slug":"codeginiter-2-1-2-hmvc-5-4-common-application","status":"publish","type":"post","link":"https:\/\/www.4amics.com\/x.perez\/2012\/09\/codeginiter-2-1-2-hmvc-5-4-common-application\/","title":{"rendered":"Codeginiter 2.1.2 + HMVC 5.4 + Common application"},"content":{"rendered":"<p>Recentlly, I needed a common modules folder for various applications, and now I have decided to share my solution.<\/p>\n<p>The common folder can have helpers, libraries, modules (HMVC) and thir_party libraries (HMVC MX base)<\/p>\n<p>An application can load a library, helper etc\u2026 as usual\u2026\n<\/p>\n<blockquote>\n<div>\n<p><code>$this-&gt;load-&gt;library('mylibrary').<\/code><\/p>\n<p>\/\/\u00a0If\u00a0this\u00a0library\u00a0exists\u00a0in\u00a0application\/library\u00a0folder,\u00a0then\u00a0use\u00a0this.<br \/>\n\/\/\u00a0If\u00a0this\u00a0library\u00a0not\u00a0exists\u00a0locally,\u00a0the\u00a0try\u00a0to\u00a0load\u00a0from\u00a0common\/libraries<\/p>\n<\/div>\n<\/blockquote>\n<p>\nAlso, can work with modular extensions (\/modules\/libraries)<\/p>\n<p>Welcome example included in download.<\/p>\n<p>Download :\u00a0\u00a0<a href=\"https:\/\/bitbucket.org\/xperez\/codeigniter-modular-extensions-hmvc-plus-common-application\">https:\/\/bitbucket.org\/xperez\/codeigniter-modular-extensions-hmvc-plus-common-application<\/a><\/p>\n<p>Any suggestions \/ improvements are welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recentlly, I needed a common modules folder for various applications, and now I have decided to share my solution. The common folder can have helpers, libraries, modules (HMVC) and thir_party libraries (HMVC MX base) An application can load a library, helper etc\u2026 as usual\u2026 $this-&gt;load-&gt;library(&#8216;mylibrary&#8217;). \/\/\u00a0If\u00a0this\u00a0library\u00a0exists\u00a0in\u00a0application\/library\u00a0folder,\u00a0then\u00a0use\u00a0this. \/\/\u00a0If\u00a0this\u00a0library\u00a0not\u00a0exists\u00a0locally,\u00a0the\u00a0try\u00a0to\u00a0load\u00a0from\u00a0common\/libraries Also, can work with modular extensions (\/modules\/libraries) Welcome [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-152","post","type-post","status-publish","format-standard","hentry","category-other"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/152","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/comments?post=152"}],"version-history":[{"count":9,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/152\/revisions"}],"predecessor-version":[{"id":163,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/posts\/152\/revisions\/163"}],"wp:attachment":[{"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/media?parent=152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/categories?post=152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.4amics.com\/x.perez\/wp-json\/wp\/v2\/tags?post=152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}