PHPnews.io

Overview for 'beberlei'

Knights Tour using Warndorff’s rule

Written by Benjamin Eberlei / Original link on Jan. 21, 2008

Knights Tour using Warndorff’s rule When using Warndorff’s rule for solving the Knights Tour problem, the solution is found within a second. It took some time for me to realize it in PASCAL though using a RECORD type to match the jumps to the number of free fields and then sort them. You can view…




Using a self defined Zend_Loader

Written by Benjamin Eberlei / Original link on Jan. 19, 2008

Using a self defined Zend_Loader When you start writing with a Framework like Zend like I did in the last weeks, you probably are still haunted by all the bad habits of pseudo object orientated PHP design, using lots of require and include’s. Zend_Loader doesn’t seem to help at first, its just anot…



Helpers in Zend_View: Class Prefix

Written by Benjamin Eberlei / Original link on Jan. 13, 2008

Helpers in Zend_View: Class Prefix I have to say, the Zend Framework documentation is a bit imprecise sometimes. Regarding custom Helpers in Zend_View it states: The class name must, at the very minimum, end with the helper name itself, using CamelCaps. E.g., if you were writing a helper called “sp…