Search found 104 matches
- Thu May 26, 2011 4:54 pm
- Forum: PHP - Frameworks
- Topic: Populating Zend_Form_Element_Select options, best practise
- Replies: 1
- Views: 3168
Populating Zend_Form_Element_Select options, best practise
Hey, Up until about 5 minutes ago I have always populated Zend_Form_Element_Select objects (addMultiOption) in the init() method of the class that extends Zend_Form. All of a sudden it feels a bit wrong and I think I should do that in the controller as it's a better separation of concerns. However t...
- Mon Nov 15, 2010 4:40 am
- Forum: PHP - Frameworks
- Topic: Annoyed with Zend
- Replies: 5
- Views: 6669
Re: Annoyed with Zend
Thanks matthijs, I was starting to think that everyone else just got it and I was missing something! It's nice to hear that other people have had a similar experience. I started my learning using a book that was 2 years out of date, and I think that caused me a lot of problems. Not only was I trying...
- Thu Nov 11, 2010 7:13 am
- Forum: PHP - Frameworks
- Topic: Annoyed with Zend
- Replies: 5
- Views: 6669
Re: Annoyed with Zend
Thanks Josh, I get the individual components, I think I'm looking for a structured way of laying out the application as a whole. The code examples are fine, I'm just not sure where these would be written. A lack of experience in web application development makes picking the Zend Framework up a littl...
- Mon Nov 01, 2010 4:53 pm
- Forum: PHP - Frameworks
- Topic: Annoyed with Zend
- Replies: 5
- Views: 6669
Annoyed with Zend
I've been trying to get my head round Zend Framework for some time now and I'm finding the massive ambiguity and total lack of answers really frustrating now. I completed the quickstart tutorial a while ago, and using that as a basis for how things should be done I've tried to start doing my own pro...
- Tue May 04, 2010 7:49 am
- Forum: PHP - Code
- Topic: My first web service Client
- Replies: 10
- Views: 1039
Re: My first web service Client
I'm currently moving to Philadelphia, so I won't be around too much this week to help, but I'll try to check back and give you a hand if possible. Thanks again mate, and good luck with the move! I have been told that the service was written in Java, and judging by some of the errors I have been get...
- Fri Apr 30, 2010 9:46 am
- Forum: PHP - Code
- Topic: My first web service Client
- Replies: 10
- Views: 1039
Re: My first web service Client
Hi all. OK, the next hurdle. The web service I have to work with has now been created. I have written a script to use the thing but I'm getting some very odd results. I have spoken to the people who wrote it and they have tested it in .NET and Java and say it works fine. When I try to use it in PHP ...
- Fri Apr 30, 2010 5:59 am
- Forum: Job Hunt
- Topic: PHP Developer required - Maldon Essex, UK
- Replies: 0
- Views: 762
PHP Developer required - Maldon Essex, UK
PHP Applications Developer. We are looking for a excellent, self starting, forward thinking PHP developer to join our small development team and to be involved in the development of our new core product. The ideal candidate will have 2 years commercial experience with PHP 5, and have a good understa...
- Tue Apr 27, 2010 6:36 am
- Forum: General Discussion
- Topic: Need some careea advice
- Replies: 4
- Views: 739
Re: Need some careea advice
Point taken, I have no problems learning advanced topics, and have already studied OOP using Java in the past. I have been applying these skills to PHP and re-acquainting myself with design patterns in my spare time without any problems. The main problem is, in this case, the sheer quantity on stuff...
- Tue Apr 20, 2010 4:05 am
- Forum: PHP - Code
- Topic: Generating Objects help!
- Replies: 0
- Views: 67
Generating Objects help!
I'm building a simple database exporter that can export data from a given database to either XML or CSV format. I have separated the logic of the encoding into separate classes (XMLEncoder and CSVEncoder), that implements a common interface, so that more methods can be added later. I then have a mai...
- Mon Apr 19, 2010 7:50 am
- Forum: PHP - Code
- Topic: Reusing Variables
- Replies: 5
- Views: 288
Re: Reusing Variables
You get less overhead by re-using variables, but it is minimal so do what ever is easier for you and other people to understand.
- Mon Apr 19, 2010 7:31 am
- Forum: PHP - Code
- Topic: Select more then 1 table
- Replies: 1
- Views: 96
Re: Select more then 1 table
You need to look into SQL JOINs I think what you need is this, but do some reading to check, I haven't used them for a while. $query = "SELECT package.name AS packageName, plan.name AS planName, plan.duration, plan.amount FROM package INNER JOIN plan ON (package.id = plan.package_id)";
- Mon Apr 12, 2010 5:21 am
- Forum: PHP - Code
- Topic: PHP code not executing, but shown in HTML source code
- Replies: 16
- Views: 650
Re: PHP code not executing, but shown in HTML source code
To be honest, your example is not very clear, at least not to me. You are trying to include a HTML file that contains PHP? Basically, if you want to include a PHP file (that can of course hold HTML)into your page, do this: <?php //location of files and default page define('FILE_LOCATION', 'html/'); ...
- Mon Apr 12, 2010 4:59 am
- Forum: PHP - Code
- Topic: How to user PHP cUrl to login to a Twitter oAuth site?
- Replies: 4
- Views: 488
Re: How to user PHP cUrl to login to a Twitter oAuth site?
I'm not massively hot on this, but have been reading a bit about cURL recently. The auth information may be returned in the header of the return value after using cURL on the twitter URL. In order to use this, you have to set cURL to use modified headers. Check in the manual for info on how. Whilst ...
- Mon Apr 12, 2010 4:52 am
- Forum: PHP - Code
- Topic: Link of a pic ontop of another
- Replies: 4
- Views: 121
Re: Link of a pic ontop of another
Not a PHP problem mate. Would be best in the CSS section.
Read this
http://www.w3schools.com/css/css_positioning.asp
Read this
http://www.w3schools.com/css/css_positioning.asp
- Mon Apr 12, 2010 4:47 am
- Forum: PHP - Code
- Topic: echo when a link is clicked
- Replies: 1
- Views: 70
Re: echo when a link is clicked
Always post the page to itself, that way you can display what ever you like based on any conditions you set. AJAX is just another way of doing that, but it calls a page that only has the condition, returning the results that can be used in the current page without re-posting the whole thing.