Coders Army

You're in the army now

Follow me on TwitterRSS Feeds

  • Barracks
  • Mess Hall
  • MIA
  • Spec Ops

Getting squeakly clean with Zend_Soap

Sep 15th

Posted by Matt Cockayne in Spec Ops

2 comments

I recently had to set up a SOAP service for a client. So I thought it was the perfect opportunity to get to grips with the Zend_Soap_Server.

Everything went swimmingly. I agreed on a structure with the customer and following the Zend Framework reference manual i managed to set up the server in no time at all using the auto discover feature.

Now I use a linux environment and tested the service with php_soap, nusoap and Zend_Soap_Client, and it all worked perfectly. it was so easy to use i found myself laughing.

But…. and here is the killer. Its only after I spent two whole days writing and testing the service that I hand it over to the customer and… it doesn’t work.
More >

autoDiscover, client, dotnet, liquid, PHP, server, Soap, soapui, studio, wsdl, xml, Zend, zend_soap

Zend + TinyMCE

Jun 15th

Posted by Matt Cockayne in Spec Ops

17 comments

EDIT: Since This article has been written the original code has taken down from our Subversion repository. to download a copy click here

In the course of my trying to do various things with the Zend Framework I am constantly haveing to create rich text editor fields.

Now the guys at Zend Framework have done a bang up job of of getting things started and the Dojo and jQuery libraries that are part of it are spectacular.. except that they dont offer an advanced text editor. Which I think is a bit of a shame. So I decided that In order to make my job a whole lot easier I would create a plugin that I could reuse as and when I needed it.

Please do bear in mind that this is not a completely finished plugin so feel free to fix the bits I miss. If you want to see/use my original code you can find it over at http://subversion.zucchi.co.uk.

So far This helper has allowed me to call the TinyMCE editor form countless views and forms.

More >

editor, element, elements, Form, Framework, helper, Javascript, mce, rich, text, textarea, tiny, tinymce, view, wysiwyg, Zend

You Lazy Lazy Boy

Jun 14th

Posted by Matt Cockayne in Mess Hall

No comments

So I have been a little lax recently, with work and family and warcraft I just havent been keeping up top date with my posts. I intend to rectify that now.

The title of this post however doesnt relate to my being lax in posting but in that I have now found a new Opensource CMS system that I have fallen in love with and has made me more inclined to leave trying to code my own and just use that.

Its called Silverstripe, made by a company of the same name from New Zealand. I have been using it for about 3 weeks now and it has proven totally invaluable. Its quick and easy to set up with a one page installation screen. Aimed at editors rather than administrators it contains almost no settings control in the admin area as that is al handled by the framework that it is built upon. This makes it extremely clean and easy to use.

I have used it on a number of sites now and it has been the quickest turn around time for setting up a CMS for clients. Its been so good that I have even migrated some of my existing clients sites over to it.

More >

blog, cms, embargo, expiry, forum, newsletter, sapphire, silverstripe, temlate

Wifi Walk-about

Mar 12th

Posted by Matt Cockayne in MIA

No comments

We have a couple of Acer Aspire One net books which we continually have silly little hiccups with. We finally had quite a big issue happen very recently one of the net books just refused to connect to the internet at all.

The symptoms were quite obvious.

  1. No matter what I did i couldn’t connect to a network, even though I could connect with other devices
  2. The network icon was missing in the taskbar
  3. I was unable to access the network center from the main preferences menu, the context menu or the command line

As the AA1 has a strong tendency to just die without warning when the battery runs out I suspected that it may have been caused by a corrupt file or three.

So now for the solution…

Turns out it is as simple as deleting a few files in order to force the networking to reset itself and not as severe as re-imaging the whole machine as Acer support has mentioned to a lot of people who have has the same kind of problems. It would be nice if companys who provide machines with linux on it would take the time to use google to find the solution instead of having a windows monkey sat on the phone not having a clue what they are doing and giving duff advice.

All right i’ll stop ranting now… the command you need to get everything running smoothly is

rm -Rf ~/.gconf/system/networking/*

This removes all the network connection settings and no need to use sudo. All you need do then is reboot and wait for the network manager to appear so you can connect to your network again.

Hope this manages to help some people

Acer, Aspire, Linpus, Network, One

Zend Lego – Initialise, Part 2

Mar 6th

Posted by Matt Cockayne in Spec Ops

No comments

In this part I am going to go through setting up some translation methods and setting up your database connection.

initTranslate()

Zend_translate provides us with a very powerful way of translating text in a website, I would strongly recommend reading the manual for more info on the full extensibility of the component.

I tend to use the GetText method of translation. Mainly due to its increased speed over other methods as it is a compiled source rather than plain text. If this sounds daunting then dont worry as there are a number of free applications that will help you to build the files you need… I use a combination of POEdit and the GTEditor Plugin for Eclipse. POEdit is by far the more powerful of the two as it will compile the relevant files for you as well as attempt auto translation. Gted only allws for the editing of the human readable source but I find it is a nice clean and intuitive interface.

So here is the code to throw into your Initialise class.

public function initTranslate()
{
    $settings = Zend_Registry::get('settings');
    if (Zend_Registry::isRegistered('Zend_Cache')) {
        Zend_Translate::setCache(Zend_Registry::get('Zend_Cache'));
    }
    $options = $settings->translate->options->toArray();
    $locale = Zend_Registry::get('Zend_Locale');
    Zend_Registry::set('Zend_Translate',
                        new Zend_Translate('gettext',
                                           $settings->translate->path ,
                                           $locale->toString() ,
                                           $options));
}

More >

Cache, database, Framework, gettext, plugins, registry, translate, xml, Zend
«1234»
    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • Barracks (2)
    • Mess Hall (4)
    • MIA (3)
    • Spec Ops (8)
    Acer Acl application Aspire Auth blog Cache client cms Config Controller database Db Dell embargo error expiry Form forum Framework Front gettext hardware htaccess Linpus locale Network newsletter One PC PHP plugin plugins Ramble registry sapphire Session silverstripe temlate Test translate ubuntu virtualbox xml Zend
    • July 2010 (1)
    • March 2010 (2)
    • November 2009 (2)
    • September 2009 (1)
    • June 2009 (2)
    • March 2009 (2)
    • February 2009 (2)
    • January 2009 (4)
    • Zend + TinyMCE (17)
    • Zend In- Doctrine -ation (3)
    • Basic Training (2)
    • Getting squeakly clean with Zend_Soap (2)
    • To Gwibber or not to Gwibber (2)
    • Sgt Zend (0)
    • Zend Lego (0)
    • Dell – ightfully Tedious (0)
    • Zend Lego – Initialise, Part 1 (0)
    • Virtually Possible in a Box (0)
    • Matt Cockayne: that makes me much happier than messing around in couch.. thanks for the info... Gwibber is now...
    • Ryan Paul: When you click an item in the sidebar, you can close it by selecting "Close Stream" from the...
    • matt.cockayne: Hi Jeremy. Yes I had to create my 0own task to allow table generation. The reason for this was...
    • Jeremy Hicks: I failed to mention that the latest 1.2 download of Doctrine includes a vendor folder with sfYaml...
    • Jeremy Hicks: Great post! I've been reading all the same articles that it looks like you've already been through....
    • krishna: I am just new to zend framework ,I want to know what are file to be created and where it is to be...
    • krishna: what should be the file name and getter and setter method and folder structure
    • matt.cockayne: Not quite... my problems were occuring because a .NET client was trying to consume a service...
  • Find Something

  • My latest tweets

    Loading tweets...
    Follow me on Twitter!
  • User Login






    • Register
    • Lost your password?
  • phpnw09 PHP Conference 10/10/2009
Cloud Computing & Cloud Hosting by Rackspace

Mystique theme by digitalnature | Powered by WordPress
RSS Feeds XHTML 1.1 Top