When I first started doing PHP back in 2000, PHP4 was brand new. I did some extensive testing to figure out the best way to echo strings. It turned out that the best way was using single quotes, because otherwise the PHP parser parsed the string for variables.
In modern times, …
Getting this error?
dyld: NSLinkModule() error
dyld: Library not loaded: /Users/severin/Dev/Projects/MAMP_1.7_src/lib/libltdl.3.dylib
Referenced from: /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/mcrypt.so
Reason: image not found
Trace/BPT trap
This article was published on 27 November 2007. It references a release candidate version of Zend Framework, version 1.0 of Symfony, a preview version of Doctrine, and a version of Propel that had issues with it’s dependency on Creole. It is severely out of date and has not been updated.
The Symfony and Zend frameworks are so amazingly different that they almost don’t deserve to share the title “framework.”
Like the .Net Framework, Zend is a bucket of functions that, together, provide advanced interfaces to the most complex of tasks that web developers need to write regularly. They then leave the developer to work up a quick interface to the application, which they enable with their views structure. Zend’s major strength and weakness is that there isn’t one particular way to do things and that you can pick and choose which libraries you want to use.
Both frameworks are PHP5-native frameworks and won’t function in PHP4. Both are heavily object-oriented and make use of inheritance that’s only offered in PHP>5. Both use the front controller model.
The similarities end there.
Zend uses very little code generation and configuration is all in the front controller; Symfony has a great deal of code generation and a huge amount of configuration overhead. Zend is flexible about it’s directory hierarchy and allows you to heavily customize your directories to use global code libraries; Symfony has a required directory structure that is created when you use the command line tool to create modules. Zend doesn’t require command-line creation of modules.
After the jump, I’ll focus on a few areas where there’s some specific differences.
Is there a framework that is uncomplicated, easy to get started in, will let you build applications out quickly with a minimum of hassle, and will let you integrate non-standard behaviours and ‘best practices’ that you feel are important?
Frameworks are great because other programmers can walk into the project and …
CDBaby.com has switched back to PHP from Rails… but with a catch. Derek silvers says that PHP would do what he wanted just fine with his new-found Rails programming skills. Texas Startup Blog covered this last week.
sfGuard is a Symfony plugin that implements a user management and login system for an application. It supports both groups and individual users… and it saves you from having to ‘roll your own’ user administration system. I’m going to walk you through the basic installation. The steps I take are all taken from the Wiki page, but I’ll expound a little bit more about styling and creating a custom registration process.
Authentication and security are important for any application greater than a mere toy. It’s much better practice to implement something that’s standardized and depend on the security of lots of eyes and a decent user-base as opposed to depending on the obscurity of your own code to secure your app. I highly recommend using sfGuard.
First, the usual installation steps — in your project root directory, use $ symfony plugin-install http://plugins.symfony-project.com/sfGuardPlugin
$ symfony propel-build-all
$ symfony propel-load-data (application name)
The last one is actually important, even if you don’t already have fixtures — you need to load the admin user so that you can log into your application and access these new features that you’re automagically adding. More below the jump.
For a long time, I’ve used Safari to post with wordpress. But with my upgrade to 2.2.2 I’m not impressed.
There’s CSS bugs in the admin panel. There’s problems with the editors — code only, becase the visual one doesn’t display. There’s problems with the javascript in the options screens. I had to crack open Firefox just to change the link format.
I know that Wordpress doesn’t claim to support Safari, but fer chrissakes — it’s the third of the big3, and makes up about 5% of the traffic to my site. I’m glad that the themes I’m using at least support Safari.
Two great flavors in one! Here’s the link to the plugin, the announcement on the freshbooks blog, and a link to Freshbooks itself.
The PHP community has started promoting GoPHP5 — a website devoted to promoting the move to PHP5 and dropping compatibility with PHP4.
The site complains that “PHP 4 is still installed on a majority of shared web hosts.”
Want to know the reason for that? It’s cPanel, folks. Most shared web hosts …
In a Symfony application that I’m working on right now, a number of administrative functions are intermixed with the user interface. Everything’s controlled with standard security permissions at the module level, and all should be well and good. But sometimes, your best defense against people trying to hack and cheat …
If you enjoy the content, consider subscribing to the feed(s).
Post a Comment