DotKernel will be a "skeleton"of Zend Framework.
DotKernel borrowed the coding standard from Zend Framework: ZF Coding Standard with some exceptions.
In what follows, we will make remarks only on those features that are slightly different in the coding standards of DotKernel.
B.2. PHP File Formatting
- B.2.2. Indentation indentation - make indent with tabs, and not with space
- B.3.1. Classes starts with Dot_ (e.g. Dot_Templates)
- B.3.2. Interfaces ends with the string "Interface"(e.g. Dot_Db_Interface)
- B.3.3. Filenames All php files will have the extension ".php". No fancy extensions like .inc
>if ($a != 2)
{
$a = 2;
}
>if ($a != 2)
{
$a = 2;
if($a == 2)
{
$c = 3;
}
}