Re: [fw-general] Escape, stripslashes and html entities

2010-02-19 Thread Pádraic Brady
>I try to figure out what the best option is to escape my data. I have an UTF-8 >website so actually it's fine to work with the original characters (and no need for htmlentities() or >htmlspecialchars()). I'm going to assume you just worded that badly because otherwise there are red flags expl

Re: [fw-general] Dynamic Text Replacement

2010-02-19 Thread Hector Virgen
A plugin would be nice because it's one of those things that you just set up once and forget about. Another option would be to use a view helper, but you have to remember to call it for each one of your headers: headerTag('I am an H1', 1) ?> I use a plugin on my website that doesn't quite do wha

Re: [fw-general] Using SSL for certain controllers

2010-02-19 Thread Hector Virgen
Maybe you should go with an action controller helper that checks the request and, if not SSL, redirects the user to the same page but with HTTPS. You can then invoke your custom helper from within any controller that needs it, probably something like this: public function preDispatch() { $thi

Re: [fw-general] Escape, stripslashes and html entities

2010-02-19 Thread Hector Virgen
You shouldn't have to call stripslashes on data coming out of the database, unless you somehow double-escaped it when being inserted. To be sure, your SQL query should look something like this (in MySQL): INSERT INTO table SET lastname = 'O\'Reilly'; If you accidentally are double-escaping, your

[fw-general] Escape, stripslashes and html entities

2010-02-19 Thread Jurian Sluiman
Hi all, I try to figure out what the best option is to escape my data. I have an UTF-8 website so actually it's fine to work with the original characters (and no need for htmlentities() or htmlspecialchars()). Nevertheless all my data comes from a database and the data is inserted with all quotes e

Re: [fw-general] Continuing On SubDomains

2010-02-19 Thread Paul
Currently i have them setup like the following: project application public admin index.php www index.php blog index.php each index.php has its own bootstrapper which defines its own application bootstrap class, and possibly use

[fw-general] Using SSL for certain controllers

2010-02-19 Thread Stephan Stapel
Hi! I'm searching for a solution to implement SSL redirection within Zend Framework applications. I've already found this posting: http://www.mail-archive.com/fw-general@lists.zend.com/msg10878.html but wondered if someone has a solution for controlling the SSL enforcement on a per controll

[fw-general] Dynamic Text Replacement

2010-02-19 Thread notrub225
I would like to integrate dynamic text replacement into one of my web sites. Here is an article about it on A List Apart: http://www.alistapart.com/articles/dynatext/ Basically it will dynamically replace tags with an image in the font I have chosen. What do you readers suggest I encapsulate thi

Re: [fw-general] Custom view helper in Zend_Form

2010-02-19 Thread Shaun Farrell
jörg, You can create your own view helper. Check out this article http://devzone.zend.com/article/3412 Shaun On Fri, Feb 19, 2010 at 3:35 PM, pankraz wrote: > > hi, > > i (zf newbie) am trying to implement an own view helper for my radio > buttons. > > my problem: i am not able to integrat

[fw-general] Custom view helper in Zend_Form

2010-02-19 Thread pankraz
hi, i (zf newbie) am trying to implement an own view helper for my radio buttons. my problem: i am not able to integrate it in my form. my question: how/where do i overwrite the standard viewhelper ("FormRadio")? regards jörg -- View this message in context: http://n4.nabble.com/Custom-view

Re: [fw-general] Continuing On SubDomains

2010-02-19 Thread Mark Wright
They look like 3 distinctly different sites so why not use different public roots? I am currently working on a site with a .com and .com.au domain where aside from some locale and some translation between us/uk english (like color vs colour) the sites are the same so I use the same document root. I

Re: [fw-general] the reference guide is really getting on my nerves

2010-02-19 Thread Mark Wright
I am getting a 200 / empty page. In response to monkeboy, I get this at work and from home (2 different ISPs) so I don't think that it is a problem on my end. And neither my home nor office network has changed in the last few weeks just prior to this problem popping up. Mark On Fri, Feb 19, 201

[fw-general] Continuing On SubDomains

2010-02-19 Thread Paul
Similar to the question asked earlier to subdomains... does it always make sense to have all entries into an application be from within the public folder? An example of this would be a site with 3 subdomains - www.mydomain.com, admin.mydomain.com, and blog.mydomain.com. I think it make sense

Re: [fw-general] Zend_Locale overhead

2010-02-19 Thread Thomas Weidner
No, because Zend_Locale forces you to use a cache. You can select the overhead from loading locale infos by the time the cache is active. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "keith Pope" To: "Zend Framewo

Re: [fw-general] the reference guide is really getting on my nerves

2010-02-19 Thread Ralph Schindler
I will be adding some logging to the site to see what the problem could be, are you just getting a 200 / empty page? or is it a 404 or 500 error? -ralph Jason Austin wrote: I, too, am experiencing similar issues on ff3.6 on osx. It seems to have only happened since the commenting system was p

[fw-general] Zend_Locale overhead

2010-02-19 Thread keith Pope
Hi, I am working on an application that allows the user to input text in many languages, I was thinking of using Zend_Locale inside my Language objects so I could easily get left-to-right info etc, however would this be a large overhead having many locale objects instantiated all using different l

Re: [fw-general] Easy way to page generation times

2010-02-19 Thread Nicolas Grevet
By the way, some Apache configurations already include the REQUEST_MICROTIME parameter Errr... I mean, REQUEST_TIME. Regards, - Nicolas Nicolas Grevet wrote: [...] but a simple timer could be build as a Zend_Controller_Plugin where in the routeStartup() you set a parameter to the value of mi

Re: [fw-general] Easy way to page generation times

2010-02-19 Thread Nicolas Grevet
[...] but a simple timer could be build as a Zend_Controller_Plugin where in the routeStartup() you set a parameter to the value of microtime and then at the end of your layout, subtract the value from routeStartup() from the current value of microtime(). Yeah, except that the routeStartup() is

[fw-general] Zend_Log possible security issue

2010-02-19 Thread Nick Pack
Hi All, Wondering if anyone has seen this (I know the article itself is related to PHPIDS, but includes ZF): https://www.sektioneins.de/en/advisories/advisory-022009-phpids-unserialize- vulnerability/index.html It highlights some possible exploitable flaws in Zend_Log and Zend_Log_Writer_Mail ­ d

Re: [fw-general] Easy way to page generation times

2010-02-19 Thread Brad Griffith
If you're looking to detect slow database queries so that you know where to target further profiling efforts, you should probably start by looking Zend_Db_Profiler. It will allow you to time each query and optionally filter the results so you only display those that pass a specified time threshold

Re: [fw-general] Re: [fw-mvc] How can I run a single zf application on different subdomains?

2010-02-19 Thread Daniel Latter
You will also probably need to enable wild card sub-domains? no? Thanks Dan On 19 February 2010 14:23, Rob Keplin wrote: > I would look into Zend_Controller_Router_Route_Hostname for this: > http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostna

[fw-general] Re: [fw-mvc] How can I run a single zf application on different subdomains?

2010-02-19 Thread Rob Keplin
I would look into Zend_Controller_Router_Route_Hostname for this: http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname This way, you can route the page to a specific controller/action when a subdomain is present, and retrieve what language they

Re: [fw-general] How can I run a single zf application on different subdomains?

2010-02-19 Thread Aleksey Zapparov
Hello, Can you show your index.php? 2010/2/19 Laurens van Vliet : > I have a website that I made with ZF and it is running on a server. Because > I want this website to be multilanguage, I made some subdomains for the > different languages on the webserver. > Lets say the site is running now on

[fw-general] How can I run a single zf application on different subdomains?

2010-02-19 Thread Laurens van Vliet
I have a website that I made with ZF and it is running on a server. Because I want this website to be multilanguage, I made some subdomains for the different languages on the webserver. Lets say the site is running now on en.mywebsite.com. In this directory all the application code, data and lib

Re: [fw-general] PDO or Mysqli?

2010-02-19 Thread Nicolas Grevet
I guess this was the interesting part: In terms of the general use cases [...] you will see no discernible difference. Regards, - Nicolas Саша Стаменковић wrote: So, which one is better in terms of performances? Regards, Saša Stamenković On Thu, Feb 18, 2010 at 7:37 PM, Ralph Schindler