Re: [fw-general] Problem about running the quick start sample.

2009-06-22 Thread Martin Martinov
2009/6/23 kun niu : > > > > Sudheer Satyanarayana wrote: >> >> Niu Kun wrote: >>> Dear all, >>> I'm new to Zend Framework. >>> First of all, I followed the quick start sample. But I change the >>> database to mysql. >>> And I change the pdo configuration. >>> But when I browse to http://localhost/g

Re: [fw-general] Zend joined tables query

2009-06-22 Thread Brenton Alker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 awesome wrote: > I am new in Zend and relational database design. > > I have two tables that I would like to join in one so that certain values > from 1st table are replaced with associated values from another table. > > This query works: > SELECT a

[fw-general] Zend Form Error Decorators

2009-06-22 Thread kwylez
I have my current form setup to use a table layout without any issues except for when I try to apply my Error decorators. Before the form is submitted the form should look like: 1. Your Email Address* We guarantee we won't spam you . if an error needs to be displ

[fw-general] Zend joined tables query

2009-06-22 Thread awesome
I am new in Zend and relational database design. I have two tables that I would like to join in one so that certain values from 1st table are replaced with associated values from another table. This query works: SELECT a.iditems, a.model, (SELECT name FROM headings WHERE idheadings = a.heading

Re: [fw-general] Problem about running the quick start sample.

2009-06-22 Thread kun niu
Sudheer Satyanarayana wrote: > > Niu Kun wrote: >> Dear all, >> I'm new to Zend Framework. >> First of all, I followed the quick start sample. But I change the >> database to mysql. >> And I change the pdo configuration. >> But when I browse to http://localhost/guestbook, I always get a 404 >

[fw-general] Zend Feed, looping through specific items

2009-06-22 Thread soulfury
Hi, i have a problem looping through items, as the manual says: with foreach ($channel->items as $item) { ...} we can loop through items.. as $item, and get link(), description... etc but if u want to loop through specific items, for example with a FOR for ($i=1;$i <= ($channel->count());$i++)

Re: [fw-general] How to disable website during maintainance

2009-06-22 Thread David Mintz
On Mon, Jun 22, 2009 at 12:03 PM, vinodp wrote: > > thanks.. > got it :) > ip based access to admins only, 503 for rest > > .htaccess > RewriteEngine On > RewriteCond %{REMOTE_ADDR} !^201\.203\.149\.149$ > RewriteRule !down.php$ down.php [L] > > down.php > header("HTTP/1.1 503 Service Unavailabl

Re: [fw-general] Problem about running the quick start sample.

2009-06-22 Thread Sudheer Satyanarayana
Niu Kun wrote: Dear all, I'm new to Zend Framework. First of all, I followed the quick start sample. But I change the database to mysql. And I change the pdo configuration. But when I browse to http://localhost/guestbook, I always get a 404 error. So I downloaded the sample code from the zend

Re: [fw-general] Generate menu with variables with Zend Navigation

2009-06-22 Thread Josh Team
xxx after and before On Mon, Jun 22, 2009 at 11:34 AM, Joakim Gerth wrote: > Hi all, > I would like to render a menu from xml config using Zend Navigation. My > problem is to include action specific variables in the url. > > I.e. in my xml file > >     Home >     index >     index > > > In

[fw-general] Generate menu with variables with Zend Navigation

2009-06-22 Thread Joakim Gerth
Hi all, I would like to render a menu from xml config using Zend Navigation. My problem is to include action specific variables in the url. I.e. in my xml file Home index index In my menu i would like the url pointing to /index/index/?id=xxx Is that possible? If yes, how, if no are

Re: [fw-general] Strange Zend_Form cache problem, please URGENT

2009-06-22 Thread umpirsky
It works without int validator, you point at Zend_Locale which I don't use on this site, right? So, what would be the fix if I want to keep this validator? Regards, Sasa Stamenkovic. Matthew Weier O'Phinney-3 wrote: > > -- umpirsky wrote > (on Monday, 22 June 2009, 08:36 AM -0700): >> This is

Re: [fw-general] Strange Zend_Form cache problem, please URGENT

2009-06-22 Thread Matthew Weier O'Phinney
-- umpirsky wrote (on Monday, 22 June 2009, 08:36 AM -0700): > This is my form: What happens if you remove the "Int" validator from that element? If it works, I think I know what the issue might be. > class Umpirsky_Form_Encryption extends Zend_Form { > /** > * Initialize form, add e

Re: [fw-general] How to disable website during maintainance

2009-06-22 Thread vinodp
thanks.. got it :) ip based access to admins only, 503 for rest .htaccess RewriteEngine On RewriteCond %{REMOTE_ADDR} !^201\.203\.149\.149$ RewriteRule !down.php$ down.php [L] down.php -- View this message in context: http://www.nabble.com/How-to-disable-website-during-maintainance-tp241489

Re: [fw-general] How to disable website during maintainance

2009-06-22 Thread Martin Martinov
2009/6/22 vinodp : > > hi all, > in a zend framework based website, what should be approach to disable > website during maintainance. during this visitor will only see, down for > maintaince notice. > > should it be to have a flag in application.ini file, like website.disabled > and in Bootstrap.ph

Re: [fw-general] Strange Zend_Form cache problem, please URGENT

2009-06-22 Thread umpirsky
This is my form: class Umpirsky_Form_Encryption extends Zend_Form { /** * Initialize form, add elements. */ public function initialize($suffix, $textName, $textValue, $encryptionSize, $hiddenName, $hiddenValue, $submitName, $delete) { $this->setDecorator

[fw-general] Problem about running the quick start sample.

2009-06-22 Thread Niu Kun
Dear all, I'm new to Zend Framework. First of all, I followed the quick start sample. But I change the database to mysql. And I change the pdo configuration. But when I browse to http://localhost/guestbook, I always get a 404 error. So I downloaded the sample code from the zend framework website

Re: [fw-general] Strange Zend_Form cache problem, please URGENT

2009-06-22 Thread Matthew Weier O'Phinney
-- umpirsky wrote (on Monday, 22 June 2009, 08:21 AM -0700): > Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. > File(/tmp/) is not within the allowed path(s): > (/var/www/ct1097024.nnes.de/htdocs:/var/www/ct1097024.nnes.de/include:/usr/share/pear:/var/www/ct1097024.nnes.d

[fw-general] How to disable website during maintainance

2009-06-22 Thread vinodp
hi all, in a zend framework based website, what should be approach to disable website during maintainance. during this visitor will only see, down for maintaince notice. should it be to have a flag in application.ini file, like website.disabled and in Bootstrap.php redirect all request to 503 se

[fw-general] Strange Zend_Form cache problem, please URGENT

2009-06-22 Thread umpirsky
Hi. I get this error: Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp/) is not within the allowed path(s): (/var/www/ct1097024.nnes.de/htdocs:/var/www/ct1097024.nnes.de/include:/usr/share/pear:/var/www/ct1097024.nnes.de/tmp) in /var/www/ct1097024.nnes.de/includ

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread neozf
Thanks this worked. Matthew Weier O'Phinney-3 wrote: > > -- neozf wrote > (on Monday, 22 June 2009, 03:07 AM -0700): >> I am new to zend I have downloaded the community server with the >> framework >> ... I have created a new project for the quick start on my C drive >> >> c:\ZendProject

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread neozf
further to my last post i tried httpd -TD DUMP_MODULES and i got the output below so it means rewrite is running Loaded Modules: core_module (static) win32_module (static) mpm_winnt_module (static) http_module (static) so_module (static) actions_module (shared) alias_module (shared) as

[fw-general] Fw: Getting rid of Index.php in urls

2009-06-22 Thread Waseem Aslam
Hi Sorry i posted this in the "core" section by mistake so im not cross posting just putting it in the most relevant section I am new to zend I have downloaded the community server with the framework ... I have created a new project for the quick start on my C drive c:\ZendProject\quickstart

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread Matthew Weier O'Phinney
-- neozf wrote (on Monday, 22 June 2009, 03:07 AM -0700): > I am new to zend I have downloaded the community server with the framework > ... I have created a new project for the quick start on my C drive > > c:\ZendProject\quickstart > > I have added the reference to the zend framework library f

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread Vadim Gabriel
run apache_get_modules() in any php script and see if it's there. On Mon, Jun 22, 2009 at 2:31 PM, neozf wrote: > > I had the .so file in the modules dir > > and I have this in my httpd.conf.. file > > LoadModule rewrite_module modules/mod_rewrite.so > > its not commented out by the way so it is

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread neozf
I had the .so file in the modules dir and I have this in my httpd.conf.. file LoadModule rewrite_module modules/mod_rewrite.so its not commented out by the way so it is being used... however a httpd -l , doesnt show it in the list but i did some digging and it seems to say that it only shows p

Re: [fw-general] ZFW OO coding guideline

2009-06-22 Thread Karol Grecki
Yes that's exactly what I was doing as the original post had no details or actual requirements. I read his question as follows: "I need to call this global function somewhere inside ZF code, how to do it in a ZF way?" That functionality most likely belongs somewhere, maybe in a view helper or acti

Re: [fw-general] Getting rid of Index.php in urls

2009-06-22 Thread Vadim Gabriel
Make sure the apache module mod_rewrite is installed and turned on. On Mon, Jun 22, 2009 at 1:07 PM, neozf wrote: > > Hi > > I am new to zend I have downloaded the community server with the framework > ... I have created a new project for the quick start on my C drive > > c:\ZendProject\quicksta

[fw-general] Getting rid of Index.php in urls

2009-06-22 Thread neozf
Hi I am new to zend I have downloaded the community server with the framework ... I have created a new project for the quick start on my C drive c:\ZendProject\quickstart I have added the reference to the zend framework library folder to my winodws path in my httpd.conf I have added the follo

Re: [fw-general] Zend_Navigation questions

2009-06-22 Thread Jurian Sluiman
Op Monday 22 June 2009 08:02:26 schreef Marko Korhonen: > Hi, > > I tried the Zend_Navigation in my project and I bumped into following > challenges: > > 1. How can I add subpages dynamically so I don't have to declare all my > pages in ini, xml or array? > > Example: > > I have main level: home, p