Category

Uncategorized

PHPDocumentor

By | Uncategorized

Download the PHAR from their website. This is the easiest method to start with and works perfectly.


1
php ~/phpDocumentor.phar -d . -t docs

I found an excellent configuration file that you just need to place and it will make life easier.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
    <title>App Plugins Documentations</title>
    <parser>
        <target>reference/docs</target>
    </parser>
    <transformer>
        <target>reference/docs</target>
    </transformer>
    <files>
        <directory>.</directory> <!-- Scan and parse all the php files except those found in the paths below -->
        <ignore>assets/*</ignore>
        <ignore>includes/gm-virtual-pages/*</ignore>
        <ignore>includes/app_virtual_pages/*</ignore>
        <ignore>includes/third-party/*</ignore>
        <ignore>vendor/*</ignore>
        <ignore>reference/docs/*</ignore>
        <ignore>storage/*</ignore>
        <ignore>views/*</ignore>
        <ignore>index.php</ignore> <!-- Ignore all the index.php files -->
    </files>
</phpdoc>

Ignoring vendor directory should be the first step to start with.

What is the ideal slider image size for homepage for various resolutions/breakpoints?

By | CSS, Responsive, Uncategorized

It is essential to use different slider images for desktop and mobiles. Because, the desktop slider image will look very small in terms of length. Any text over slider will have very little space. Hence, for mobile we must use an entirely different image.

Mobile

For mobile I use – 500px x 375px. While writing media queries. You should also consider the landscape resolution (will be discussed soon).

Tablet

The resolution – 960px x 540px seems like a good fit on a tablet.

Desktop

For desktop whatever looks good to your eyes should do it. In one of my recent project, I’ve used – 1900px x 600px

Checkbox

By | Uncategorized

If you have two checkboxes with same name (value should of course be different).

When user submits a form with one selected. In PHP you will get the value as a string for the checked checkbox. Interestingly if user checks both, PHP gives an array and this is without specifying name with an array.