HMVC with Codeigniter


HMVC is an evolution of the MVC pattern used for most web applications today. It came about as an answer to the salability problems apparent within applications which used MVC. The solution presented in the JavaWorld web site, July 2000, proposed that the standard Model, View, and Controller triad become layered into a “hierarchy of parent-child MCV layers“. The image below illustrates how this works:

HMVC structure

Key advantages to implementing the HMVC pattern in your development cycle:

  • Modularization: Reduction of dependencies between the disparate parts of the application.
  • Organization: Having a folder for each of the relevant triads makes for a lighter work load.
  • Reusability: By nature of the design it is easy to reuse nearly every piece of code.
  • Extendibility: Makes the application more extensible without sacrificing ease of maintenance.

These advantages will allow you to get M.O.R.E out of your application with less headaches.

Download and Tutorial : https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc

NOTE : Need some adjustments on several parts.

Advertisements

NetBeans 7.2 : Dreamweaver in Linux and more.


NB_box72

This is an amazingly powerful tool that equally powerful to work as a platform framework for Java desktop applications and as an IDE (integrated development environment) while developing something with PHP, JavaScript, Scala, Clojure, C, C++, Groovy, Ruby, Python and many more.

The NetBeans IDE runs virtually anywhere given the fact that a JVM is installed. It is developed in Java. You can download it here: http://netbeans.org/downloads

I recommend Net-beans 7.2

Reset default browser style CSS


/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

HTML 5 samples


Many Stackers may already know I’m tired of hearing about the lack of Flash on mobile devices. I’ve always tried to explain we are not missing anything and Flash is great but it’s a resource and battery hog among other things (security) for mobile devices. 

So i went in search of some HTML5 luv to show some of it’s potential. While we fight for Flash I think it’s also important we fight for something even better than Flash. Something that does not suck our resources and battery dry and something that maintains security while being used on a mobile phone. 

Samples of HTML5:

Sample 0
Sample 1
Sample 2
Sample 3
Sample 4
Sample 5
Sample 6 
Sample 7
Sample 8
Sample 9

I think we will be JUST fine without Flash as long as people push the envelop with HTML5. We should be requesting developer push and deliver the best for our mobile experience and not just follow what others have always done.