Zend Framework 2.0 patterns

0 comments

Posted on 27th juli 2011 by Bart McLeod in Zend Framework

Today I came across a presentation by Matthew Weier O’Phinney on slideshare, that I just do not want to forget about. Because bookmarks tend to disappear when I switch browsers and because I create bookmarks but rarely look at them a second time (using 10+ different browser installations and having bookmarks spread all over) I decided to embed the presentation on my blog, so that it sticks. So here it comes:

I have to remember to try this Depency Injection phenomenon I hear so much about lately.

Zend_Tool and Model generation

0 comments

Posted on 12th juli 2011 by Bart McLeod in Zend Framework

Zend_Tool is a command line tool that helps you setup a Zend Framework MVC application. You can also use it after you have set up your application to add controllers, actions, views, configuration and models. Since I use Zend Studio for development, I am used to the integrated version of Zend_Tool. This means that if you set up a Zend Framework MVC application as a new Zend Studio project, you will have menus available that let you add things like controllers and actions.

This is really nice of course, but the nature of the tool, that is command-line by birth, makes that I would like to be able to use it from the command-line too. (meer…)

Enabling syntax highlighting

0 comments

Posted on 15th juni 2011 by Bart McLeod in Web development |WordPress

, , , ,

I would like to know what happens if I enter some php code. Does the syntax get highlighted by default in WordPress? Is it going to be stripped out? Will it be forbidden? Let me just type “echo ‘Hello World!’” and see what happens:

<?php echo ‘Hello World’; ?>

I expect this to show up just as I typed it, nothing special.

Now let me type it into the html editor, and see what I get then:

(You see nothing here, but on the backend, in the editor there is a hidden html comment that contains the php code. On the front-end, without the editor, the comment gets stripped out completely) (meer…)

Do not require_once() a directory!

0 comments

Posted on 7th juni 2010 by Bart McLeod in Web development

If you see the following error messages on the command line in windows, you know you going to be wasting an uncertain amount of time figuring out the right permissions for the directory D:\ZendFramework:

Warning: require_once(D:\ZendFramework\library\Zend\Loader\Autoloader): failed to open stream: Permission denied in D:\werk7\tiris\loadDocuments.php on line 15

Fatal error: require_once(): Failed opening required ‘Zend/Loader/Autoloader’ (include_path=’.;D:\ZendFramework\library’) in D:\werk7\tiris\loadDocuments.php on line 15

What is happening here? Let me tell you what I was trying to do. I was trying to execute a php script from the command line. (meer…)

No more small websites…

0 comments

Posted on 25th mei 2010 by Bart McLeod in Services

One of my Zend Framework t-shirts hanging outside to dry after washing (I wash them on a regular basis).

Today I decided to stop developing small websites. This is necessary, because I can no longer find the time to support them. It is not because I do not like developing small websites. In fact, I enjoy developing small websites very much and I wish I had the time to continue doing so.

In the next couple of months I hope to do more Zend Framework development.

Deciding to stop developing small websites followed my decision to no longer develop my own CMS. A logical step was to install somebody  else’s CMS on my website. Hence the WordPress installation. A fun thing could be to design and implement my own theme, but then, when am I going to have time for that?

Easy AdSense by Unreal