php

Page 3 of 3
<< Previous   1 | 2 | 3
Tutorials

Autoloading classes in drupal 7

When adding a lot of your own classes on top of the Drupal 7 framework you may well want to add your own autoloader. This article looks at the options for including individual files, and how to add a custom autoloader for many files.

Code Snippets

Sort an array by value in PHP

Sorting arrays in PHP is easy with several built in functions to cater for different re-ordering methods.

Code Snippets

Getting a child class name without namespaces

Code snippet for retrieving a child class name from the parent without the namespace.

Tutorials

Adding a twitter feed for multiple accounts using Zend_Service_Twitter

How would we go about creating a twitter feed for a web site that pulled the latest statuses or ‘tweets’ from several different accounts using Zend’s Zend_Service_Twitter client? This is the question I was looking at last week, specifically using Zend version 1 and the Twitter API version 1.

Tutorials

Routing custom URLs in Zend Framework for dynamic CMS pages

Zend’s standard routing functionality already creates SEO-friendly URLs. If we don’t want to strictly follow the setup of the controller name, Zend Router also provides a nice and easy way of adding specific routes which you can read about in the Zend Manual. But what about if we didn’t know what the URL was going to be? This article looks at creating custom URLs in Zend so that slugs can be managed in a CMS for better control over SEO.

Page 3 of 3
<< Previous   1 | 2 | 3
Sign Up

Popular Tags

350x250

Need a web developer?

If you'd like to work with code synthesis on your next project get in touch via the contact page.