Welcome to Abdul Malik Ikhsan's Blog

Zend Framework 2 : Create Simple Upload Form with File Validation

Posted in Tutorial PHP, Zend Framework 2 by samsonasik on August 31, 2012

Zend Framework 2 has Zend\File\Transfer component that can provide file transfer need for our application. We can add Files validator and pass error message to Zend\Form component object, that can be retrieve by view if process was failed. We can add another validator instead of Upload validator that registered by default in Http Adapter.

Continue Reading

Zend Framework 2 : Setting Default Db Adapter

Posted in Teknologi, Tutorial PHP, Zend Framework 2 by samsonasik on August 28, 2012

The price of flexibility in Zend Framework 2 often push us to setting all ‘manually’. We have to be a creative person, right ? In this post, i want to present you my greatest post ! Simple, but very important because it can reduce your code redundancy in setting up DbAdapter to Your Table Class.

Continue Reading

Zend Framework 2 : ControllerPluginManager – Append Custom Controller Plugin to All Controller

Posted in Tutorial PHP, Zend Framework 2 by samsonasik on August 23, 2012

In most of applications, you often need to set something that happen in all whole application. It can be global authorization like your ACL depend on the module/controller/action that accessed. In this post, I will show you the trick.

Continue Reading

Zend Framework 2 : Zend\Db\Sql – Join Your Tables

Posted in Tutorial PHP, Zend Framework 2 by samsonasik on August 14, 2012

Zend Framework 2 has a component named Zend\Db that can simplify a way application interact with database. If you just has one table, you don’t need Sql statement, but if you have many, you need this. With Sql object, your paradigm of Query will be changed to Object Oriented Paradigm.

Continue Reading

Zend Framework 2 : ZendDeveloperTools : The ZF2 tools You must install

Posted in Teknologi, Tutorial PHP, Zend Framework 2 by samsonasik on August 7, 2012

ZendDeveloperTools is a Module for developer and debug tools for working with the ZF2 MVC layer. It can show you a request method, response code, current controller/action, current route we access, execution time, memory consumption, grab the profiler of Zend\Db adapter instance, and Zend Framework version you currently use.

Continue reading …

Zend Framework 2 : Zend\Serializer – Serialize Your Data

Posted in Teknologi, Tutorial PHP, Zend Framework 2 by samsonasik on August 6, 2012

Serialization is the process of converting a data structure or object state into a format that can be stored (for example, in a file or memory buffer, or transmitted across a network connection link) and “resurrected” later in the same or another computer environment.

Zend Framework 2 Serializer component can serialize object with 6 Adapter :
1. IgBinary
2. Json
3. PhpCode
4. PhpSerialize
5. PythonPickle
6. Wddx

Continue Reading …