Re: [fw-general] Detect which button is clicked

2009-11-29 Thread Саша Стаменковић
Thanks Matthew. Two things: 1. I need to set value and label to have same value: )->addElement( 'button', 'trash', array( 'label' => ' Trash', 'value' => ' Trash' ) ); 2. isChecked returns false when button

[fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread W Itch
Hi, has anyone ported ZF project from Windows Vista to Linux Debian before? The ZF project which I worked on was fully functional on Vista but when I moved it to my Debian machine then nothing works anymore. Can you tell me what the most common things I should take care is about in general, when p

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
Hello, I am about to port all my stuff from win xp to ubuntu. So I am also interested in info about this. On Sun, Nov 29, 2009 at 5:50 PM, W Itch < im.allergic.2.mailing.li...@gmail.com> wrote: > Hi, has anyone ported ZF project from Windows Vista to Linux Debian before? > The ZF project which

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
If you can provide more detail about what doesn't work (error messages, etc.) then you will probably be more likely to get some helpful responses. ZF applications (like PHP applications in general) are usually portable between platforms with little or no work. It's possible that you're taking advan

Re: [fw-general] Zend_Queue streaming messages

2009-11-29 Thread George Miroshnikov
AFAIR, the first parameter of Zend_Queue::receive() is $maxMessages - the maximum number of messages to receive from queue. Also, you can use do count() on messages to tell if there's any messages available to process and exit if there isn't. On Thu, Nov 26, 2009 at 12:15 PM, wrote: > Hi, > > I

[fw-general] weird problem

2009-11-29 Thread Apostol Victor
this is the code $flickr = new Zend_Service_Flickr('xxx'); $results = $flickr->userSearch($email); foreach ($results as $result) { echo $result->title . ''; } and this is the error Fatal error: Cannot run code from this file in conjunction with non encoded

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
Well, my first problem is that it gets to my webroot but when I click on a link, it doesn't follow my controller and action. I rather get an error: The requested URL /authentication/login was not found on this server. the whole structure is exactly coppied to my project on ubuntu. can it be som

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
>From what you described, it sounds like you're just missing your rewrite rules. See: http://framework.zend.com/manual/en/project-structure.rewrite.html On Sun, Nov 29, 2009 at 4:10 PM, Jigal sanders wrote: > Well, > > my first problem is that it gets to my webroot but when I click on a link, >

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Sudheer Satyanarayana
On Monday 30 November 2009 02:40 AM, Jigal sanders wrote: Well, my first problem is that it gets to my webroot but when I click on a link, it doesn't follow my controller and action. I rather get an error: The requested URL /authentication/login was not found on this server. the whole struct

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
No I have this: ServerAdmin jigalroe...@gmail.com DocumentRoot /var/www/nrka/public/ ServerName nrka Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all ##ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
What do your rewrite rules look like? On Sun, Nov 29, 2009 at 4:29 PM, Jigal sanders wrote: > No I have this: > > >     ServerAdmin jigalroe...@gmail.com > >     DocumentRoot /var/www/nrka/public/ >     ServerName nrka >     >         Options Indexes FollowSymLinks MultiViews >         AllowOve

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
this is what i have in my .htaccess file on the public directory SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] On S

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
Have you restarted Apache since changing your virtual host configuration? Are you still getting a 404 or a different error now? On Sun, Nov 29, 2009 at 4:34 PM, Jigal sanders wrote: > this is what i have in my .htaccess file on the public directory > > SetEnv APPLICATION_ENV development > > Rewri

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
yes i have restarted. now i get a apache 500 On Sun, Nov 29, 2009 at 10:36 PM, Bradley Holt wrote: > Have you restarted Apache since changing your virtual host > configuration? Are you still getting a 404 or a different error now? > > On Sun, Nov 29, 2009 at 4:34 PM, Jigal sanders > wrote: > > t

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Daniel Latter
Do you need to add your vhost to a hosts file for linux, like windows? On 29 Nov 2009, at 21:34, Jigal sanders wrote: this is what i have in my .htaccess file on the public directory SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{RE

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
well it's in the sites enabled list On Sun, Nov 29, 2009 at 10:37 PM, Daniel Latter wrote: > Do you need to add your vhost to a hosts file for linux, like windows? > > > On 29 Nov 2009, at 21:34, Jigal sanders wrote: > > this is what i have in my .htaccess file on the public directory > > SetEnv

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
OK, that's a step in the right direction then :-) Try adding this line right after RewriteEngine On (assuming your ZF application isn't in a subdirectory of your document root): RewriteBase / On Sun, Nov 29, 2009 at 4:37 PM, Jigal sanders wrote: > yes i have restarted. > now i get a apache 500

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
it doesn't work. i have in my docroot: nrka/ application library public tests On Sun, Nov 29, 2009 at 10:40 PM, Bradley Holt wrote: > OK, that's a step in the right direction then :-) > > Try adding this line right after RewriteEngine On (assuming your ZF > application isn't in a subdirectory of

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
Those should not all be in your document root -- "public" should become your document root (or renamed to match your document root if you prefer) and all the other directories (application, library, etc.) should all be at the same level as your document root. See: http://framework.zend.com/manual/

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
sorry the nrka/pulic is my docroot i created this project on windows using zend tool On Sun, Nov 29, 2009 at 10:50 PM, Bradley Holt wrote: > Those should not all be in your document root -- "public" should > become your document root (or renamed to match your document root if > you prefer) and a

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Bradley Holt
Can you look at your web server logs and see what the error is? If it's giving a 500 error, it should be logged. On Sun, Nov 29, 2009 at 4:52 PM, Jigal sanders wrote: > sorry the nrka/pulic is my docroot > i created this project on windows  using zend tool > > On Sun, Nov 29, 2009 at 10:50 PM, Br

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
[Sun Nov 29 22:37:37 2009] [alert] [client 127.0.0.1] /var/www/nrka/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration [Sun Nov 29 22:41:51 2009] [alert] [client 127.0.0.1] /var/www/nrka/public/.htaccess: Invalid com

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jurian Sluiman
You don't have the rewrite module enabled. Try "a2enmod rewrite" to enable the rewrite module for apache (and of course reload the server). Regards, Jurian -- Jurian Sluiman CTO Soflomo V.O.F. http://soflomo.com On Sunday 29 Nov 2009 23:00:29 Jigal sanders wrote: > [Sun Nov 29 22:37:37 2009] [

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
where and how should i do this? On Sun, Nov 29, 2009 at 11:02 PM, Jurian Sluiman wrote: > You don't have the rewrite module enabled. Try "a2enmod rewrite" to enable > the > rewrite module for apache (and of course reload the server). > > Regards, Jurian > > -- > Jurian Sluiman > CTO Soflomo V.O.

Re: [fw-general] Has anyone ported ZF project from Windows to Linux before?

2009-11-29 Thread Jigal sanders
is sudo-ed it and it works now thanks all for the greathelp On Sun, Nov 29, 2009 at 11:03 PM, Jigal sanders wrote: > where and how should i do this? > > > On Sun, Nov 29, 2009 at 11:02 PM, Jurian Sluiman < > subscr...@juriansluiman.nl> wrote: > >> You don't have the rewrite module enabled. Try "

[fw-general] Applying Zend_Acl to Zend_Form_Element

2009-11-29 Thread Cameron
Hi guys, this is pretty pie in the sky, but I was wondering if anyone had seen it done / had a good trick for it. What I'd like to do is come up with a really clean way of controlling which users can see which form fields. Example being a "role" field in the "user" form - admins can set the user's