Codestance

PHP, Linux and Marketing Playground
  • Home
  • Articles
  • Resources
  • Tips
  • Tutorials
2013 Middax | Rainbow Newsletter
May 3, 2013 Comments

Force Secure Pages With Zend Framework

When i was working on one project i needed to secure some pages eg. cart, checkout, login, .. This will implement SSL on pages you want and i will assume that you have working Zend Framework application and that you know how to implement this action helper.

You must know also that securing pages with SSL is not actually “secure” which will help you fix your mistakes done in writing code, but it will help against traffic sniffing.

Read More

April 29, 2013 Comments

Zend Framework Config Helper

Each time i wanted to get config from Zend Framework, inside application.ini or engine.ini or any other name you wish to call your config i had a problem with writing too much code to get job done. Code needs to be written inside Bootstrap.php which then set object inside Zend_Registry and this was overkill for me. What i wanted to do is to have only one class or method from which i will call any config file and get any property inside this file.

Read More

April 28, 2013 Comments

Zend Framework Truncate View Helper

This simple view helper for the Zend Framework will truncate a string to the desired length and automatically add customizable postfixes if the string was truncated.

Read More

April 28, 2013 Comments

Zend Framework Get Absolute Path View Helper

I will show you how you can create simple but effective absolute path view helper in Zend Framework. In this example, i will create new file under /library/My/View/Helper with name GetApsolutePath.php

Read More