[fw-general] quickstart tutorial create layout help

2009-01-07 Thread Deepak Shrestha
Hi, I am completely new to ZF and following the quickstart guide. It was doing OK until I reached the part Create Layout section (http://framework.zend.com/docs/quickstart/create-a-layout) my page start to show something unusual. I cannot understand this yet. Things that might help:

Re: [fw-general] quickstart tutorial create layout help

2009-01-07 Thread keith Pope
Looks like you dont have short tags enabled for your php install. In your .htaccess use php_value short_open_tag on 2009/1/7 Deepak Shrestha d88...@gmail.com: Hi, I am completely new to ZF and following the quickstart guide. It was doing OK until I reached the part Create Layout section

Re: [fw-general] quickstart tutorial create layout help

2009-01-07 Thread Deepak Shrestha
On Wed, Jan 7, 2009 at 4:48 PM, keith Pope mute.p...@googlemail.com wrote: Looks like you dont have short tags enabled for your php install. In your .htaccess use php_value short_open_tag on It works now. Can move on with tutorials Thanks -- === Registered Linux User

Re: [fw-general] Date format problem

2009-01-07 Thread Bertil Wergelius
Yes, that was the problem. Changed back to ZF 1.6.2 and there, it worked! What a bummer that RH can't have a ready for update php 5.2. Thanks for the answer anyway. ZF is really fun to work with thow. My Best Bertil W. 2009/1/2 Thomas Weidner thomas.weid...@gmx.at: You should note that the

[fw-general] Proposal Submit

2009-01-07 Thread Benjamin.Gonzales
Hi I have a proposal but I get the following message Who can post a proposal? You must submit a signed CLA to be granted access to post proposals. I already have my CLA, how can I have access? -- View this message in context:

Re: [fw-general] Using DB Functions in Zend_DB

2009-01-07 Thread Remy Damour
Hi Nayana, Nayana Hettiarachchi - GMI wrote: I'd like to know if there is a way to use NOW() or any other function for that matter in an update or insert method call without having to use a direct query method. Solution to call sql functions in Zend_Db queries seems to create Zend_Db_Expr

[fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Philip G
I'm trying to figure out the best way to validate a name, using Zend_Validate, while maintaining UTF8 compliance. Zend_Validate_Alpha() will check for alphabetic characters. However, while it allows Николь to go through, O'Reilly fails because of the apostrophe. Is there some way to add

Re: [fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Jake McGraw
Philip: Names (especially if you're handling international characters) tend to have a huge sub set of possible characters and users tend to get very pissed off if you develop a pattern that blocks their legal name. My advice to you, check if it's blank, make sure it isn't too long for your

Re: [fw-general] PHP version requirement -- ZF 1.6.2 not compatible with php 5.1.6

2009-01-07 Thread Bradley Holt
This looks like it is related to ZF-5030: http://framework.zend.com/issues/browse/ZF-5030 I ran into this while trying to install on a client's RHEL5 box. We had to downgrade to ZF 1.6 and all seemed to work fine. Thanks, Bradley On Wed, Jan 7, 2009 at 1:01 AM, ardx ovg...@rogers.com wrote:

Re: [fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Philip G
2009/1/7 Jake McGraw jmcgr...@gmail.com Philip: Names (especially if you're handling international characters) tend to have a huge sub set of possible characters and users tend to get very pissed off if you develop a pattern that blocks their legal name. My advice to you, check if it's

Re: [fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Jake McGraw
Philip: Well, if you've got no choice, I suppose it's time to read up on PHP regex, when using Unicode character classes (see http://us.php.net/manual/en/regexp.reference.php Unicode character properties) you can scoop up all of the meaningful letters of a given code set. Also, why don't you

RE: [fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Michael Tramontano
Well if you're using ucwords() or ucfirst() for the o'reilly issue, perhaps you should just uppercase the first letter and ignore the other characters. That way you get Beth AND O'Reilly. As for the validator, perhaps you just want to look for certain characters like $ % * etc.? If your client

Re: [fw-general] Validating a person's name with Zend Validate

2009-01-07 Thread Philip G
On Wed, Jan 7, 2009 at 3:57 PM, Michael Tramontano mtramont...@efashionsolutions.com wrote: Well if you're using ucwords() or ucfirst() for the o'reilly issue, perhaps you should just uppercase the first letter and ignore the other characters. That way you get Beth AND O'Reilly. McCain.

[fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
I am having trouble understanding how to change my routing. I have read through the documentation and the excellent tutorial at http://www.noginn.com/2008/09/03/using-subdomains-as-account-keys/ but still am failing to understand. I am trying accomplish something like the following:

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
I have added the routing from the bootstrap file and it doesn't work there either (rather than from the preDispatch plugin). $fc = Zend_Controller_Front::getInstance(); $router = $fc-getRouter(); [ code from the preDispatch() function of the plugin ] $fc-dispatch(); And it is still not

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread Rolando Espinoza La Fuente
On Thu, Jan 8, 2009 at 3:30 AM, netlynx ajmurra...@gmail.com wrote: I have added the routing from the bootstrap file and it doesn't work there either (rather than from the preDispatch plugin). $fc = Zend_Controller_Front::getInstance(); $router = $fc-getRouter(); [ code from the

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
Alright, problem solved (I think) First, I failed to add the controller directory for the module to the front controller: $fc-addControllerDirectory ( APP_PATH . '/admin/controllers', 'admin' ); * NOTE * If the controller directory is not defined for the module, the router will fall back to

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
Rolando Espinoza La Fuente wrote: On Thu, Jan 8, 2009 at 3:30 AM, netlynx ajmurra...@gmail.com wrote: I have added the routing from the bootstrap file and it doesn't work there either (rather than from the preDispatch plugin). $fc = Zend_Controller_Front::getInstance(); $router =

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
[repost - update with addControllerDirectory lines (that are important haha) ] -[ bootstrap.php ]--

Re: [fw-general] Zend_Controller_Router_Route_Hostname

2009-01-07 Thread netlynx
On a side note, this setup will break if you are calling your server via an IP address rather than a domain name. http://admin.myfirstdomain.com/magazine/writearticle/ results in: $requestParams = array ( 'module' = 'admin', 'controller' = 'magazine', 'action' = 'writearticle',