PHP Frameworks

How to Remove Empty Objects From Array In CakePHP

Author - Webner

In CakePHP, to remove empty or ‘false’ values from an Array, use CakePHP’s static ‘filter’ method contained in ‘Hash’ class:

$sampleArray =
[
,
false,
true,
0,
[‘one, ‘two, ‘three’]
]
$sampleArray = Hash::filter($sampleArray);

Here’s the array after filter method call:
$sampleArray =
[
true,
0,
[‘one, ‘two, ‘three’]
]

 
Webner Solutions is Read more…

Importance of Website for Business – Part 3

Author - Webner

In previous 2 posts in this series we covered benefits of having a website for your business and difference between Responsive and Non-Responsive website. We also shared some stats on how small business presence on Internet is going up.

In this third and final post of “Importance of Website Read more…

Fatal error: Allowed memory size of 16777216 bytes exhausted

Author - Webner

You need to change the maximum memory allowed to a php script to run.
For this you need to open your php.ini (location of this file will depend on where php is installed on your machine). In my case php.ini is in /etc/php5/apache2/php.ini

Open Read more…

‹ Prev page1 ... 8 9 10 11 12 13