[fw-general] Zend AMF and Zend Guard Problems (solved)
Just something that I tripped on when upgrading my production server (running Zend Guard optimized version of the project). If Zend Guard is set to "remove PHPDoc Blocks" during the encoding you will get problems with the Zend AMF communication where RemoteObjects are not cast correctly to the correct AS class (and you end up with standard Objects instead). Sincerely, /Mattias -- View this message in context: http://www.nabble.com/Zend-AMF-and-Zend-Guard-Problems-%28solved%29-tp21123912p21123912.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] action calling
What is the "action" of your form (from the final HTML)? how are you setting it (in the PHP)? In my action I am setting $form->setAction(mailist/detail) , so in detail.phtml I can write action = $this->getAction(). Actually the problem lies here as on the previous page I set action for corresponding form as $form->setAction(mailist/list) and in this list action I write $form->setAction(mailist/detail). So final url becomes http://localhost/mobile_mail/admin/maillist/maillist/detail. Isnt it possible to set a new form and a new action in an action. Brenton Alker-3 wrote: > > Aniketto wrote: >> Hi all, >> >> I have a page displying databse table. One field is text box and can be >> edited. Now when I click on submit button, the same page should get >> displayed. But I get a 'Page not found error'. >> >> The url also contains controller name twice . >> It should be actually >> http://localhost/mobile_mail/admin/maillist/detail >> >> but it becomes >> http://localhost/mobile_mail/admin/maillist/maillist/detail >> >> what can be the problem? > > What is the "action" of your form (from the final HTML)? how are you > setting it (in the PHP)? > > Unless something at /mobile_mail/admin/maillist/detail is redirecting, > the incorrect url must be in the action of the form. If you want to > submit to the same page as the form is on, it is quite acceptable to use > an empty action (i.e action = "" - just don't leave out the attribute > all together) > >> Also I come to this detail page from another action where I set new form >> and its action as detail. >> >> Thanks in advance, >> Aniket > > > > > -- View this message in context: http://www.nabble.com/action-calling-tp21122496p21123902.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] action calling
Aniketto wrote: > Hi all, > > I have a page displying databse table. One field is text box and can be > edited. Now when I click on submit button, the same page should get > displayed. But I get a 'Page not found error'. > > The url also contains controller name twice . > It should be actually > http://localhost/mobile_mail/admin/maillist/detail > > but it becomes > http://localhost/mobile_mail/admin/maillist/maillist/detail > > what can be the problem? What is the "action" of your form (from the final HTML)? how are you setting it (in the PHP)? Unless something at /mobile_mail/admin/maillist/detail is redirecting, the incorrect url must be in the action of the form. If you want to submit to the same page as the form is on, it is quite acceptable to use an empty action (i.e action = "" - just don't leave out the attribute all together) > Also I come to this detail page from another action where I set new form > and its action as detail. > > Thanks in advance, > Aniket signature.asc Description: OpenPGP digital signature
[fw-general] action calling
Hi all, I have a page displying databse table. One field is text box and can be edited. Now when I click on submit button, the same page should get displayed. But I get a 'Page not found error'. The url also contains controller name twice . It should be actually http://localhost/mobile_mail/admin/maillist/detail but it becomes http://localhost/mobile_mail/admin/maillist/maillist/detail what can be the problem? Also I come to this detail page from another action where I set new form and its action as detail. Thanks in advance, Aniket -- View this message in context: http://www.nabble.com/action-calling-tp21122496p21122496.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Default value of a Zend_Dojo_Form_Element_DateTextBox in a Zend_Form
is the output of $zdate->getIso() correct? On Sat, Dec 20, 2008 at 7:36 AM, Barrett Conrad wrote: > I know this post if aging, but I'm still having some difficulty with it. > > I attempted using Zend_Date's getIso, with basically no change. > > class My_Zend_Form extends Zend_Form { > > public function init() { > > // ... GET $obj ROW FROM DATABASE > > $date = new Zend_Dojo_Form_Element_DateTextBox('date'); > $zdate = new Zend_Date(); > > // $obj->date is from MySQL and formatted as 'Y-m-d' > $zdate->set($obj->date, Zend_Date::ISO_8601); > > // METHOD 1 > $date->setValue($zdate->getIso()); > > // METHOD 2 > $this->populate(array('date' => $obj->date)); > > $this->addElements(array($date)); > > // I ATTEMPTED METHOD 2 HERE AFTER ADDING THE ELEMENTS JUST TO BE SURE > } > > The form still pops on the screen with the right date and then it > disappears from the form element once the JavaScript kicks in. > > Thanks again for the help. > > On Dec 14, 2008, at 9:01 PM, Cameron wrote: > > You need to pass the element an ISO date. Try something like this: > > $date = new Zend_Date(); > $date->set($row['date'], Zend_Date::ISO_8601); > $retarr['auction_date'] = $date->getIso(); > > > Interestingly enough, the Time picker accepts the full ISO date too, if > you're using them. Unfortunately you need to do this for every date/time > dojo field and datetime you pull out of a mysql DB, because mysql misses the > "T" in the middle - although it happily accepts an ISO date as an input, it > stores it without. Quite annoying, really. > > > On Mon, Dec 15, 2008 at 4:53 AM, Barrett Conrad > wrote: > >> Hello all. I am attempting to use a Zend_Dojo_Form_Element_DateTextBox in >> a Zend_Form and I am unable to set the default value for the date picker. >> The element works fine if the form/element validates, but the element does >> not retain its value when the validation fails or it has no value at all if >> I am populating it with existing data. I am currently trying to use >> ->setValue on the element within the Zend_Form, and that works up to the >> initial page load; once Dojo kicks in and turns the element into a date >> picker it appears to strip the value of the input. A simple example of what >> I am trying is: >> >> class My_Zend_Form extends Zend_Form { >> >>public function init() { >> >>$date = new Zend_Dojo_Form_Element_DateTextBox('date'); >> >>$date->setLabel('Date') >>->setValue(date('m/d/Y')); >> >>$this->addElements(array($date)); >>} >> >> } >> >> Just to be clear, all other elements of the form work just fine; only the >> Dojo date picker has problems. >> >> Thanks for the assistance, >> Barrett M. Conrad >> > > >
Re: [fw-general] What do you use to manage your ZF projects?
I'm using Project Locker - http://www.projectlocker.com - it's a hosted SVN + Trac system, supports unlimited projects, works really well, it's not terribly pretty, but it's basically everything you need all in one package. Now if only they could integrate some sort of billing system so I can have contractors log in, get their tickets, log their hours and have PL bill the client, well, then I'd hardly even have to do anything ever again :P
Re: [fw-general] Interact with zend_http request
You are welcome :) And good luck with your project! Giuliano jgillespie wrote: > > Success!! > > Thanks for all the help. I actually had a third request in there, but for > some unknown reason using resetParameters(); and setConfig(), I was still > getting an issue with cookies not being passed on, and a local redirect > issue even with maxredirects set to 0. After restarting Apache2, the issue > cleared up and has not happened again. Some where down the line with > extensive trial/error testing, it started ignoring my overrides. > > Again thanks! > > Junior > > Giuliano Riccio wrote: >> >> Probably you need to do a third Zend_Http request building the url as >> that js does. >> As said before, the only way is to emulate what that js does. >> >> Giuliano >> >> jgillespie wrote: >>> >>> I understand what your saying now, and have passed on the cookies to a >>> Zend_Http, and I get further, however using max redirects, I've found >>> that there are more than 1 redirect, and on the second redirect, it >>> attempts to use my local url. Any ideas? As always appreciate all the >>> help. >>> >>> Junior >>> >>> >>> >>> >>> Giuliano Riccio wrote: Yes, I'm sure… unless they will make a javascript engine in php :P A possible solution is to reproduce what that javascript does. If it simply makes a call to a new page maybe you can make the first request, get its cookies and send them to the page specified by the js doing another Zend_Http request. Giuliano jgillespie wrote: > > Are we sure there's no way to execute the javascript? The reason I > ask, is the authentication process implements javascript in order to > properly set session values, the redirect to the confirmation page, as > well as many other things, all of which I've been able to confirm is > happening in the background. > > I've added the cookie, with little success, however the confirmation > button onClick event still calls a window.location="/something_else". > For this to happen, the browser must interact with the button. > > Thanks > > Junior > > > > Giuliano Riccio wrote: >> >> Probably it's not possible since Zend_Http doesn't execute the >> javascript content of the page. >> >> Giuliano >> > > >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Interact-with-zend_http-request-tp21072511p21121310.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] CronMe; Free web cron service - Just another project with ZF
Thank you for the feedback. I never planned to charge even a penny about basic needs. Believe more in the "freemium" idea. But I "may be" consider to ask for some donate things for conjobs such need to work more frequently as you said. Like many of yours, i plan twice and code once. So the system is up and working like clockwork even for the webcrons that need to be launched every 5 minutes. At this point, i just want to ask has anyone experienced with donate like income model? Does it really work, do people donate? Consider that it is not a Wikipedia. And the last thing here you go the demo login for people who hestitate to register i've just added; http://cronme.org/account/login/email/demo%40cronme.org/password/demo By the way Till, i can see your email in unapproved user table standing alone. Any problem you had? Cheers, Serkan 2008/12/22 till > On Sun, Dec 21, 2008 at 1:29 PM, kirpit wrote: > > Hello people, > > > > I just managed to finish one another project purely developed with ZF. > > > > (copy/paste from the mainpage) Free web cron service is that enables you > to > > setup your own crontabs with web interface and lets you to execute any > URL > > on specified time/date. > > > > Take a look: > > http://cronme.org/ > > > > Feedbacks are welcome. > > Serkan. > > Not a bad idea! Well done! And I think you should stick a small price > tag on the service. > > Or maybe add more frequent calls and charge for it. But that also > suggests some sort of availability. ;-) > > Till >
Re: [fw-general] CronMe; Free web cron service - Just another project with ZF
On Sun, Dec 21, 2008 at 1:29 PM, kirpit wrote: > Hello people, > > I just managed to finish one another project purely developed with ZF. > > (copy/paste from the mainpage) Free web cron service is that enables you to > setup your own crontabs with web interface and lets you to execute any URL > on specified time/date. > > Take a look: > http://cronme.org/ > > Feedbacks are welcome. > Serkan. Not a bad idea! Well done! And I think you should stick a small price tag on the service. Or maybe add more frequent calls and charge for it. But that also suggests some sort of availability. ;-) Till
Re: [fw-general] Zend_Json and escaping...
On Sun, Dec 21, 2008 at 11:58 PM, dele454 wrote: > > Or does javascript ignore the backslash when parsed? > According to the spec you don't have to escape the backslash in JSON, but you can. PHP escapes it. Just put your json string through eval and see -- I think it's removed when you convert the string to an object in JavaScript. Till
Re: [fw-general] What do you use to manage your ZF projects?
On Sun, Dec 21, 2008 at 8:33 PM, Robert Castley wrote: > Hi, > > Just curious here. I/we currently use Bugzilla & CVS, no formal wiki but I > do have a MediaWiki used for somethings. > > I am looking for a solution that fits all, so the obvious choices are 'Trac' > like. > > My problem is that I need a solution that will support multiple projects. > (Trac doesn't score well in this area.) > > Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used only > by PHP developers the 'others' use VSS. > MediaWiki is used for 'sparse' documentation. > > > My gripes with the current setup: > > Bugzilla - v. slow and ugly but it fitted the bill at the time. > CVS - I like, no love, CVS but I know that there are better solutions out > there but am concerned about migration etc. > MediaWiki - Probably too much of an overkill for what we need and it is not > that easy to configured, extend etc. > > I now that the ZF team uses JIRA, Confluence etc but I have a budget of > £0/$0 :-) and don't qualify for the OS licenses. > > So ... I would be interested on the views of others of a 'one hat fits all' > solution that can handle multiple projects. > The solution needs to offer Issues/Bug tracking and Wiki at a minimum. > Integration with SCM not important but > if it does it great. > > I would prefer a PHP based solution but happy to consider others i.e. Ruby, > Perl, Java etc. > > - Robert We are all hosted/outsourced in this regard. For the SCM we use subversion (through a plan by cvsdude) on all projects. And then lighthouseapp[1] or Fogbugz[2] (primarily). This is just to track issues etc. and see the overall progress. I'm also using a slimed down trac as a svn browser (since it's included in the plan). Using a post-commit script, we can post to either Fogbugz or lighthouseapp to integrate ticket status, progress and what not. Fogbugz IMHO -- aside from the hefty price tag -- is like a dream come true. All my non-technical users understand it and feed it. It's just very convenient, e.g. you can feed in tickets via email and web interface. You can also answer on a ticket via email and so on. You can organize it all with priorities and into releases (aka milestones) and it works. Not saying that no other system does that, but the flow is more natural than in trac or Bugzilla. We also handle *all* issues in it -- as a rule of thumb, if it's not in the system it's not being done. All documentation is phpdoc and the details are kept in wiki on Google Sites. (We use Google Apps for your domain, etc..) If money is an issue, I'd stick with trac only. Issue tracking, milestones, wiki, etc.. There are also a ton of plugins which can add to the feature set, but I'm not in the know with those. You can customize the hell out of trac, that I know, but I'm not an expert. If I needed to recommend a wiki, I'd say dokuwiki. I use it with a couple clients who are not too well equipped on the tech side. They just needed basic knowledge management and it works perfectly. Till [1]: http://lighthouseapp.com [2]: http://fogbugz.com
Re: [fw-general] Zend_Http_Client vs cURL
On Mon, Dec 22, 2008 at 12:23 AM, Luiz A Brandao Jr wrote: > Hello, > > What's the reason to use Zend_Http_Client over the cURL extension? > Do you know how Zend_Http_Client performs comparatively to curl? > > Thank you, > > Luiz If performance is your #1 priority over maintainable code then it's probably cURL. Just benchmark it. However the advantage you gain by using the Zend class is a very easy API, easy customization (through options and by extending the API), etc. pp.. You can't really compare the two. Point taken, you can use both to get the job done, but Zend_Http_Client provides a lot of convenience which you don't get with pure PHP/cURL -- as usually when you turn to a framework. Also, by default Zend_Http_Client uses sockets -- which are omnipresent in 99% of all PHP installs, whereas cURL is not always around. Till
[fw-general] Zend_Http_Client vs cURL
Hello, What's the reason to use Zend_Http_Client over the cURL extension? Do you know how Zend_Http_Client performs comparatively to curl? Thank you, Luiz
Re: [fw-general] Zend_Json and escaping...
Or does javascript ignore the backslash when parsed? - dee -- View this message in context: http://www.nabble.com/Zend_Json-and-escaping...-tp21119364p21120263.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] What do you use to manage your ZF projects?
Everything is raised as tickets, there are different types like bug, task, proposal etc. You can organise them using milestones, components and versions. I used milestones for projects because they have special meaning in Roadmap view, but you can chose any of them and create appropriate reports using sql syntax. Anyway I feel your pain, I couldn't find anything meeting my requirements either. I even considered building it myself, using ZF of course :) Karol rcastley wrote: > > Hi Karol, > > How do you handle issue/bug tracking? > > In Bugzilla I can choose the Product and then the component etc. > > More research tonight has unveiled the following projects: > > 1) Redmine (seems to be like Trac but written in Ruby). Not used Ruby or > Rails so not comfortable with this from a systems managament POV. See > Item > 3! > 2) I used Gforge on the Mambo project, they now over an Advanced Version: > http://gforgegroup.com/es/download.php > 3) Retrospectiva - but look at the 'Quick' Install guide: > http://retrospectiva.org/wiki/Quick%20install. Now I know why I love PHP > ;-) > > I think I am now getting myself down to Gforge AS or Trac. > > Why is nothing ever easy, eh? > > - Robert > > -Original Message- > From: Karol Grecki [mailto:kgre...@gmail.com] > Sent: 21 December 2008 21:46 > To: fw-general@lists.zend.com > Subject: Re: [fw-general] What do you use to manage your ZF projects? > > > Robert > > I had the same problem over a year ago and settled for Trac. It doesn't > support multiple projects but we use milestones for it e.g. "project A > sprint 1" It integrates really well with Subversion and there's a lot > of > plugins extending its functionality. It may still be your best bet if you > don't find anything matching all your requirements. > > Karol > > > rcastley wrote: >> >> Hi, >> >> Just curious here. I/we currently use Bugzilla & CVS, no formal wiki >> but I do have a MediaWiki used for somethings. >> >> I am looking for a solution that fits all, so the obvious choices are >> 'Trac' >> like. >> >> My problem is that I need a solution that will support multiple projects. >> (Trac doesn't score well in this area.) >> >> Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used >> only by PHP developers the 'others' use VSS. >> MediaWiki is used for 'sparse' documentation. >> >> >> My gripes with the current setup: >> >> Bugzilla - v. slow and ugly but it fitted the bill at the time. >> CVS - I like, no love, CVS but I know that there are better solutions >> out there but am concerned about migration etc. >> MediaWiki - Probably too much of an overkill for what we need and it >> is not that easy to configured, extend etc. >> >> I now that the ZF team uses JIRA, Confluence etc but I have a budget >> of £0/$0 :-) and don't qualify for the OS licenses. >> >> So ... I would be interested on the views of others of a 'one hat fits >> all' >> solution that can handle multiple projects. >> The solution needs to offer Issues/Bug tracking and Wiki at a minimum. >> Integration with SCM not important but if it does it great. >> >> I would prefer a PHP based solution but happy to consider others i.e. >> Ruby, >> Perl, Java etc. >> >> - Robert >> > > -- View this message in context: http://www.nabble.com/What-do-you-use-to-manage-your-ZF-projects--tp21118310p21120113.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] What do you use to manage your ZF projects?
Hi Karol, How do you handle issue/bug tracking? In Bugzilla I can choose the Product and then the component etc. More research tonight has unveiled the following projects: 1) Redmine (seems to be like Trac but written in Ruby). Not used Ruby or Rails so not comfortable with this from a systems managament POV. See Item 3! 2) I used Gforge on the Mambo project, they now over an Advanced Version: http://gforgegroup.com/es/download.php 3) Retrospectiva - but look at the 'Quick' Install guide: http://retrospectiva.org/wiki/Quick%20install. Now I know why I love PHP ;-) I think I am now getting myself down to Gforge AS or Trac. Why is nothing ever easy, eh? - Robert -Original Message- From: Karol Grecki [mailto:kgre...@gmail.com] Sent: 21 December 2008 21:46 To: fw-general@lists.zend.com Subject: Re: [fw-general] What do you use to manage your ZF projects? Robert I had the same problem over a year ago and settled for Trac. It doesn't support multiple projects but we use milestones for it e.g. "project A sprint 1" It integrates really well with Subversion and there's a lot of plugins extending its functionality. It may still be your best bet if you don't find anything matching all your requirements. Karol rcastley wrote: > > Hi, > > Just curious here. I/we currently use Bugzilla & CVS, no formal wiki > but I do have a MediaWiki used for somethings. > > I am looking for a solution that fits all, so the obvious choices are > 'Trac' > like. > > My problem is that I need a solution that will support multiple projects. > (Trac doesn't score well in this area.) > > Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used > only by PHP developers the 'others' use VSS. > MediaWiki is used for 'sparse' documentation. > > > My gripes with the current setup: > > Bugzilla - v. slow and ugly but it fitted the bill at the time. > CVS - I like, no love, CVS but I know that there are better solutions > out there but am concerned about migration etc. > MediaWiki - Probably too much of an overkill for what we need and it > is not that easy to configured, extend etc. > > I now that the ZF team uses JIRA, Confluence etc but I have a budget > of £0/$0 :-) and don't qualify for the OS licenses. > > So ... I would be interested on the views of others of a 'one hat fits > all' > solution that can handle multiple projects. > The solution needs to offer Issues/Bug tracking and Wiki at a minimum. > Integration with SCM not important but if it does it great. > > I would prefer a PHP based solution but happy to consider others i.e. > Ruby, > Perl, Java etc. > > - Robert > > > > __ > __ This email has been scanned for all known viruses by the > MessageLabs Email Security Service and the Macro 4 plc internal virus > protection system. > __ > __ > -- View this message in context: http://www.nabble.com/What-do-you-use-to-manage-your-ZF-projects--tp21118310 p21119561.html Sent from the Zend Framework mailing list archive at Nabble.com. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
Re: [fw-general] Returning the request URI
Steven Szymczak wrote: > Is there a simple method for obtaining the request URI for any given > page? Or does it have to pieced together using getBaseUrl(), > getControllerName(), getActionName(), and so forth (or just taken from > $_SERVER['REQUEST_URI'])? > > I've searched the manual and nothing I've come across really seems to do > the trick. > > Cheers, > -- Steven You should be able to get this from the request object (http://framework.zend.com/apidoc/core/Zend_Controller/Request/Zend_Controller_Request_Http.html#getRequestUri) So, from an action controller: $this->getRequest()->getRequestUri(); signature.asc Description: OpenPGP digital signature
RE: [fw-general] Build a conditional Query
Thanks a bunch, you saved me for the week. I will try it now. Thanks again Gina-Marie Rollock wrote: > > This is easily done. > > Within each of your if statements, simply call the access the select > variable and add your conditions, like so: > > if(!(empty($this->getPost('customer_name') > { > $select->where('customer_name = ?', $this->getPost('customer_name'); > } > > You can add as many pieces to your $select before executing the > statement. > > Hope that helps! > > > > > -Original Message- > From: SalamFall [mailto:sa...@seneweb.com] > Sent: Sunday, December 21, 2008 6:18 AM > To: fw-general@lists.zend.com > Subject: [fw-general] Build a conditional Query > > > Thanks in advance for any help on this. > I want to build a Conditional query for example. > > $package = new Package() > > $select = $package->select()->from('packages')->join('customers', > 'customers.id = packages.pid) >->where('packages.id = ?', 347)->order('recdate DESC'); > > I want to be able to add to this query based on conditions, for example > if > customer name is filled in the search form add search customer name to > this > query as in > > if(!(empty($this->getPost('customer_name') > { > // if customer name is provided in the search form then add that > search to > the query > } > > Basically I am trying to reproduce a conditional query like it is done > when > u are not using a framework like this > > $query = 'Select username, first_name, last_name From table '; > if(!(empty($_POST["date_of_birth"])) > { >$query .= ' WHERE date_of_birth=\'$_POST["date_of_birth"] \' '; > } > if(!(empty($_POST["email"])) > { >$query .= ' WHERE email=\'$_POST["email"] \' '; > > } > and so on, but with the zend framework. > > I hoe it's not confusing. > > Thanks in advance > -- > View this message in context: > http://www.nabble.com/Build-a-conditional-Query-tp21114184p21114184.html > Sent from the Zend Framework mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/How-Build-a-conditional-Query-with-Zend_Db_Table-tp21114184p21119671.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] What do you use to manage your ZF projects?
Robert I had the same problem over a year ago and settled for Trac. It doesn't support multiple projects but we use milestones for it e.g. "project A sprint 1" It integrates really well with Subversion and there's a lot of plugins extending its functionality. It may still be your best bet if you don't find anything matching all your requirements. Karol rcastley wrote: > > Hi, > > Just curious here. I/we currently use Bugzilla & CVS, no formal wiki but > I > do have a MediaWiki used for somethings. > > I am looking for a solution that fits all, so the obvious choices are > 'Trac' > like. > > My problem is that I need a solution that will support multiple projects. > (Trac doesn't score well in this area.) > > Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used only > by PHP developers the 'others' use VSS. > MediaWiki is used for 'sparse' documentation. > > > My gripes with the current setup: > > Bugzilla - v. slow and ugly but it fitted the bill at the time. > CVS - I like, no love, CVS but I know that there are better solutions out > there but am concerned about migration etc. > MediaWiki - Probably too much of an overkill for what we need and it is > not > that easy to configured, extend etc. > > I now that the ZF team uses JIRA, Confluence etc but I have a budget of > £0/$0 :-) and don't qualify for the OS licenses. > > So ... I would be interested on the views of others of a 'one hat fits > all' > solution that can handle multiple projects. > The solution needs to offer Issues/Bug tracking and Wiki at a minimum. > Integration with SCM not important but > if it does it great. > > I would prefer a PHP based solution but happy to consider others i.e. > Ruby, > Perl, Java etc. > > - Robert > > > > > This email has been scanned for all known viruses by the MessageLabs Email > Security Service and the Macro 4 plc internal virus protection system. > > -- View this message in context: http://www.nabble.com/What-do-you-use-to-manage-your-ZF-projects--tp21118310p21119561.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Json and escaping...
Hi, I used the Zend_Json::encode function to convert a php array to a Json object. But what i realised is that Json seems to be escaping the '/' in the items/properties. I file mappings saved in the db and for each record returned by my model, Json escapes the paths specified: [{"EventID":"144","EventName":"Wordpress 2009","VenueName":"Nose Restaurant and Wine Bar ","VenueID":"567","MainThumbnail":"event1440914\/main_thumbnail\/thumb_event1440914.jpg","Area":"Durbanville","City":"Cape Town","FromDate":"2008-02-03","IsFeatured":"0","DateAdded":"2008-09-14 21:03:28","ToDate":"2009-03-03","RSVP":"George Micheal","RSVPContact":"0219531253"}] Is there any property that turns this escaping off? Thanks and will be looking forward to your responses :) - dee -- View this message in context: http://www.nabble.com/Zend_Json-and-escaping...-tp21119364p21119364.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Returning the request URI
Is there a simple method for obtaining the request URI for any given page? Or does it have to pieced together using getBaseUrl(), getControllerName(), getActionName(), and so forth (or just taken from $_SERVER['REQUEST_URI'])? I've searched the manual and nothing I've come across really seems to do the trick. Cheers, -- Steven
Re: [fw-general] What do you use to manage your ZF projects?
My company uses: Mantis + SVN + svk (for branching) Mantis has a really nice plugin for commits that catches "bug " and appends the commit to the bug status. - jake On Sun, Dec 21, 2008 at 2:33 PM, Robert Castley wrote: > Hi, > > Just curious here. I/we currently use Bugzilla & CVS, no formal wiki but I > do have a MediaWiki used for somethings. > > I am looking for a solution that fits all, so the obvious choices are 'Trac' > like. > > My problem is that I need a solution that will support multiple projects. > (Trac doesn't score well in this area.) > > Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used only > by PHP developers the 'others' use VSS. > MediaWiki is used for 'sparse' documentation. > > > My gripes with the current setup: > > Bugzilla - v. slow and ugly but it fitted the bill at the time. > CVS - I like, no love, CVS but I know that there are better solutions out > there but am concerned about migration etc. > MediaWiki - Probably too much of an overkill for what we need and it is not > that easy to configured, extend etc. > > I now that the ZF team uses JIRA, Confluence etc but I have a budget of > £0/$0 :-) and don't qualify for the OS licenses. > > So ... I would be interested on the views of others of a 'one hat fits all' > solution that can handle multiple projects. > The solution needs to offer Issues/Bug tracking and Wiki at a minimum. > Integration with SCM not important but > if it does it great. > > I would prefer a PHP based solution but happy to consider others i.e. Ruby, > Perl, Java etc. > > - Robert > > > > This email has been scanned for all known viruses by the MessageLabs Email > Security Service and the Macro 4 plc internal virus protection system. > >
[fw-general] What do you use to manage your ZF projects?
Hi, Just curious here. I/we currently use Bugzilla & CVS, no formal wiki but I do have a MediaWiki used for somethings. I am looking for a solution that fits all, so the obvious choices are 'Trac' like. My problem is that I need a solution that will support multiple projects. (Trac doesn't score well in this area.) Bugzilla is used by multiple PHP, Java & C/C++ products. CVS is used only by PHP developers the 'others' use VSS. MediaWiki is used for 'sparse' documentation. My gripes with the current setup: Bugzilla - v. slow and ugly but it fitted the bill at the time. CVS - I like, no love, CVS but I know that there are better solutions out there but am concerned about migration etc. MediaWiki - Probably too much of an overkill for what we need and it is not that easy to configured, extend etc. I now that the ZF team uses JIRA, Confluence etc but I have a budget of £0/$0 :-) and don't qualify for the OS licenses. So ... I would be interested on the views of others of a 'one hat fits all' solution that can handle multiple projects. The solution needs to offer Issues/Bug tracking and Wiki at a minimum. Integration with SCM not important but if it does it great. I would prefer a PHP based solution but happy to consider others i.e. Ruby, Perl, Java etc. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
Re: [fw-general] Interact with zend_http request
Success!! Thanks for all the help. I actually had a third request in there, but for some unknown reason using resetParameters(); and setConfig(), I was still getting an issue with cookies not being passed on, and a local redirect issue even with maxredirects set to 0. After restarting Apache2, the issue cleared up and has not happened again. Some where down the line with extensive trial/error testing, it started ignoring my overrides. Again thanks! Junior Giuliano Riccio wrote: > > Probably you need to do a third Zend_Http request building the url as that > js does. > As said before, the only way is to emulate what that js does. > > Giuliano > > jgillespie wrote: >> >> I understand what your saying now, and have passed on the cookies to a >> Zend_Http, and I get further, however using max redirects, I've found >> that there are more than 1 redirect, and on the second redirect, it >> attempts to use my local url. Any ideas? As always appreciate all the >> help. >> >> Junior >> >> >> >> >> Giuliano Riccio wrote: >>> >>> Yes, I'm sure… unless they will make a javascript engine in php :P >>> A possible solution is to reproduce what that javascript does. >>> If it simply makes a call to a new page maybe you can make the first >>> request, get its cookies and >>> send them to the page specified by the js doing another Zend_Http >>> request. >>> >>> Giuliano >>> >>> >>> jgillespie wrote: Are we sure there's no way to execute the javascript? The reason I ask, is the authentication process implements javascript in order to properly set session values, the redirect to the confirmation page, as well as many other things, all of which I've been able to confirm is happening in the background. I've added the cookie, with little success, however the confirmation button onClick event still calls a window.location="/something_else". For this to happen, the browser must interact with the button. Thanks Junior Giuliano Riccio wrote: > > Probably it's not possible since Zend_Http doesn't execute the > javascript content of the page. > > Giuliano > >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Interact-with-zend_http-request-tp21072511p21118183.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] Build a conditional Query
This is easily done. Within each of your if statements, simply call the access the select variable and add your conditions, like so: if(!(empty($this->getPost('customer_name') { $select->where('customer_name = ?', $this->getPost('customer_name'); } You can add as many pieces to your $select before executing the statement. Hope that helps! -Original Message- From: SalamFall [mailto:sa...@seneweb.com] Sent: Sunday, December 21, 2008 6:18 AM To: fw-general@lists.zend.com Subject: [fw-general] Build a conditional Query Thanks in advance for any help on this. I want to build a Conditional query for example. $package = new Package() $select = $package->select()->from('packages')->join('customers', 'customers.id = packages.pid) ->where('packages.id = ?', 347)->order('recdate DESC'); I want to be able to add to this query based on conditions, for example if customer name is filled in the search form add search customer name to this query as in if(!(empty($this->getPost('customer_name') { // if customer name is provided in the search form then add that search to the query } Basically I am trying to reproduce a conditional query like it is done when u are not using a framework like this $query = 'Select username, first_name, last_name From table '; if(!(empty($_POST["date_of_birth"])) { $query .= ' WHERE date_of_birth=\'$_POST["date_of_birth"] \' '; } if(!(empty($_POST["email"])) { $query .= ' WHERE email=\'$_POST["email"] \' '; } and so on, but with the zend framework. I hoe it's not confusing. Thanks in advance -- View this message in context: http://www.nabble.com/Build-a-conditional-Query-tp21114184p21114184.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Interact with zend_http request
Probably you need to do a third Zend_Http request building the url as that js does. As said before, the only way is to emulate what that js does. Giuliano jgillespie wrote: > > I understand what your saying now, and have passed on the cookies to a > Zend_Http, and I get further, however using max redirects, I've found that > there are more than 1 redirect, and on the second redirect, it attempts to > use my local url. Any ideas? As always appreciate all the help. > > Junior > > > > > Giuliano Riccio wrote: >> >> Yes, I'm sure… unless they will make a javascript engine in php :P >> A possible solution is to reproduce what that javascript does. >> If it simply makes a call to a new page maybe you can make the first >> request, get its cookies and >> send them to the page specified by the js doing another Zend_Http >> request. >> >> Giuliano >> >> >> jgillespie wrote: >>> >>> Are we sure there's no way to execute the javascript? The reason I ask, >>> is the authentication process implements javascript in order to properly >>> set session values, the redirect to the confirmation page, as well as >>> many other things, all of which I've been able to confirm is happening >>> in the background. >>> >>> I've added the cookie, with little success, however the confirmation >>> button onClick event still calls a window.location="/something_else". >>> For this to happen, the browser must interact with the button. >>> >>> Thanks >>> >>> Junior >>> >>> >>> >>> Giuliano Riccio wrote: Probably it's not possible since Zend_Http doesn't execute the javascript content of the page. Giuliano >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Interact-with-zend_http-request-tp21072511p21117510.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Problem by creating a custom router with "fall back" to a "CMS database module"
Is this preferred way to solve such problem? -- View this message in context: http://www.nabble.com/Problem-by-creating-a-custom-router-with-%22fall-back%22-to-a-%22CMS-database-module%22-tp19646242p21116555.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] Zend PDT 2.0 RC1 available
Actually there now seems to be a RC2 release available from the PDT project on eclipse.org. Downloading now and I will see if this has fixed/improved the niggles I found in the 1st beta. - Robert -Original Message- From: Robert Castley Sent: Sun 12/21/2008 1:53 PM To: fw-general@lists.zend.com Subject: [fw-general] Zend PDT 2.0 RC1 available The new Zend PDT (built on Eclipse Ganymede) is now available as a Release Candiate: http://downloads.zend.com/pdt/all-in-one/ Also, it looks like there will be a 1.0.5 release to fix issues in 1.0.3. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
[fw-general] Zend PDT 2.0 RC1 available
The new Zend PDT (built on Eclipse Ganymede) is now available as a Release Candiate: http://downloads.zend.com/pdt/all-in-one/ Also, it looks like there will be a 1.0.5 release to fix issues in 1.0.3. - Robert This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system.
[fw-general] CronMe; Free web cron service - Just another project with ZF
Hello people, I just managed to finish one another project purely developed with ZF. (copy/paste from the mainpage) Free web cron service is that enables you to setup your own crontabs with web interface and lets you to execute any URL on specified time/date. Take a look: http://cronme.org/ Feedbacks are welcome. Serkan.
[fw-general] Build a conditional Query
Thanks in advance for any help on this. I want to build a Conditional query for example. $package = new Package() $select = $package->select()->from('packages')->join('customers', 'customers.id = packages.pid) ->where('packages.id = ?', 347)->order('recdate DESC'); I want to be able to add to this query based on conditions, for example if customer name is filled in the search form add search customer name to this query as in if(!(empty($this->getPost('customer_name') { // if customer name is provided in the search form then add that search to the query } Basically I am trying to reproduce a conditional query like it is done when u are not using a framework like this $query = 'Select username, first_name, last_name From table '; if(!(empty($_POST["date_of_birth"])) { $query .= ' WHERE date_of_birth=\'$_POST["date_of_birth"] \' '; } if(!(empty($_POST["email"])) { $query .= ' WHERE email=\'$_POST["email"] \' '; } and so on, but with the zend framework. I hoe it's not confusing. Thanks in advance -- View this message in context: http://www.nabble.com/Build-a-conditional-Query-tp21114184p21114184.html Sent from the Zend Framework mailing list archive at Nabble.com.