Re: [fw-general] Twitter timeout

2010-12-17 Thread José de Menezes Soares Neto
Caught exception: Unable to Connect to tcp://search.twitter.com:80. Error
#110: Connection timed out

Is there, maybe, a block to my site?

2010/12/12 Bartosz Maciaszek bartosz.macias...@gmail.com

 2010/12/11 José de Menezes Soares Neto z...@detetive.net:
  *Fatal error*: Uncaught exception 'Zend_Http_Client_Adapter_Exception'
 with
  message 'Unable to Connect to tcp://search.twitter.com:80. Error #110:
  Connection timed out'
 
  Does anyone knows how to solve it?

 Using try..catch? ;)

 B.

 --
 Great fleas have little fleas upon their backs to bite 'em,
 And little fleas have lesser fleas, and so ad infinitum.
 And the great fleas themselves, in turn, have greater fleas to go on,
 While these again have greater still, and greater still, and so on.




-- 
José de Menezes
Learncafe.com ) www.learncafe.com
Um lugar para aprender e ensinar


[fw-general] Twitter timeout

2010-12-11 Thread José de Menezes Soares Neto
*Fatal error*: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with
message 'Unable to Connect to tcp://search.twitter.com:80. Error #110:
Connection timed out'

Does anyone knows how to solve it?

Regards,

-- 
José de Menezes


[fw-general] Zend Search Lucene Wildcard Problem

2010-09-05 Thread José de Menezes Soares Neto
Hi people, I am getting problem with Lucene:

1. Search for best of gives me error, ''At least 3 non-wildcard characters
are required at the beginning of pattern

2. Search for *write* gives me the same error (but 'write*' searchs well)

Anyone got solution?

Regards

-- 
José de Menezes
Detetive.net ltda. ) www.detetive.net


[fw-general] New York PHP

2010-07-28 Thread José de Menezes Soares Neto
Hello friends,

I am going to stay 15 days at New York on October.

I would like to know companies there that are working with PHP.

I would like to visit them and see how stuff works inside USA, and make some
php friends.

Please send me the website of all companies based there you know!

Regards,

-- 
José de Menezes
Detetive.net ltda. ) www.detetive.net


[fw-general] Zend Feed Quotes problem

2009-12-04 Thread José de Menezes Soares Neto
Hello,

When I am retrieving data from a feed rss xml, the quotes are turning on
interrogation.

Like Hello become ?Hello?

Anybody knows what could I do?

Regards,

José


[fw-general] Zend_Mail: Sent or Error?

2009-09-02 Thread José de Menezes Soares Neto
Hello,

Anybody know how to test if one mail was sent or not?

I am using SMTP...

Regards,

José


Re: [fw-general] Problem attaching Zend_Mail

2009-08-20 Thread José de Menezes Soares Neto
Hi, thanks for your help...

Using Zend_Mail is easy, but I got some error trying to send attachments...
the warning is:

*Warning*: base64_encode() expects parameter 1 to be string, object given in
*C:\www\was\lib\Zend\Mime.php* on line *173

*What it could be?

My code is:

// FILE TO BE ATTACHED

$file   = myfile.xml;
$filepath   = files/ . $file;
$file_size  = filesize($file);
$handle = fopen($file, r);
$content= fread($handle, $file_size); fclose($handle);
$content= chunk_split(base64_encode($content));

// SUBJECT

$subject = The file is . $file;

// MESSAGE BODY

$message  = Hello,\n\n;
$message .= Your file is attached!\n\n;
$message .= Filename: $file\n\n;

// SMTP CONNECTION + SENDING EMAIL

$config = array (
'auth' = 'login',
'username' = jose...@gmail.com,
'password' = mypassword,
'ssl' = ssl,
'port' = 465
);

$mailTransport = new Zend_Mail_Transport_Smtp(smtp.gmail.com, $config);

$mail = new Zend_Mail();
$mail-setFrom(jose...@gmail.com);
$mail-addTo(z...@detetive.net);
$mail-setBodyText($message);
$mail-setSubject($subject);

$at = new Zend_Mime_Part($content); // HERE IS THE LINE WHERE WARNING COMES
FROM.
$at-type= Zend_Mime::TYPE_OCTETSTREAM;
$at-disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$at-encoding= Zend_Mime::ENCODING_BASE64;
$at-filename= $filename;
$mail-addAttachment($at);

$mail-send($mailTransport);



2009/8/19 mbneto mbn...@gmail.com

 Hi,

 from the manual

 $mail = new Zend_Mail();
 // build message...
 $mail-createAttachment($someBinaryString);

 Where this $somebinaryString can set using 
 *file_get_contents('path-to-real-file')

 *


 2009/8/19 José de Menezes Soares Neto z...@detetive.net

 Hello,

 Anyone knows how to attach a file??

 Regards,

 José





[fw-general] Attachment problem (Zend_Mail + Zend_Mime)

2009-08-19 Thread José de Menezes Soares Neto
Hello my friends,

Using Zend_Mail is easy, but I got some error trying to send attachments...
the warning is:

*Warning*: base64_encode() expects parameter 1 to be string, object given in
*C:\www\was\lib\Zend\Mime.php* on line *173

*Could some one help me?

My code is:

// FILE TO BE ATTACHED

$file   = myfile.xml;
$filepath   = files/ . $file;
$file_size  = filesize($file);
$handle = fopen($file, r);
$content= fread($handle, $file_size); fclose($handle);
$content= chunk_split(base64_encode($content));

// SUBJECT

$subject = The file is . $file;

// MESSAGE BODY

$message  = Hello,\n\n;
$message .= Your file is attached!\n\n;
$message .= Filename: $file\n\n;

// SMTP CONNECTION + SENDING EMAIL

$config = array (
'auth' = 'login',
'username' = jose...@gmail.com,
'password' = mypassword,
'ssl' = ssl,
'port' = 465
);

$mailTransport = new Zend_Mail_Transport_Smtp(smtp.gmail.com, $config);

$mail = new Zend_Mail();
$mail-setFrom(jose...@gmail.com);
$mail-addTo(z...@detetive.net);
$mail-setBodyText($message);
$mail-setSubject($subject);

$at = new Zend_Mime_Part($content); // HERE IS THE LINE WHERE WARNING COMES
FROM.
$at-type= Zend_Mime::TYPE_OCTETSTREAM;
$at-disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$at-encoding= Zend_Mime::ENCODING_BASE64;
$at-filename= $filename;
$mail-addAttachment($at);

$mail-send($mailTransport);


[fw-general] Attachment problem (Zend_Mail + Zend_Mime)

2009-08-19 Thread José de Menezes Soares Neto
Hello,
Using Zend_Mail is easy, but I got some error trying to send attachments...
the warning is:

*Warning*: base64_encode() expects parameter 1 to be string, object given in
*C:\www\was\lib\Zend\Mime.php* on line *173

*Anyone know why this is happening?

My code is:

// FILE TO BE ATTACHED

$file   = myfile.xml;
$filepath   = files/ . $file;
$file_size  = filesize($file);
$handle = fopen($file, r);
$content= fread($handle, $file_size); fclose($handle);
$content= chunk_split(base64_encode($content));

// SUBJECT

$subject = The file is . $file;

// MESSAGE BODY

$message  = Hello,\n\n;
$message .= Your file is attached!\n\n;
$message .= Filename: $file\n\n;

// SMTP CONNECTION + SENDING EMAIL

$config = array (
'auth' = 'login',
'username' = jose...@gmail.com,
'password' = mypassword,
'ssl' = ssl,
'port' = 465
);

$mailTransport = new Zend_Mail_Transport_Smtp(smtp.gmail.com, $config);

$mail = new Zend_Mail();
$mail-setFrom(jose...@gmail.com);
$mail-addTo(z...@detetive.net);
$mail-setBodyText($message);
$mail-setSubject($subject);

$at = new Zend_Mime_Part($content); // HERE IS THE LINE WHERE WARNING COMES
FROM.
$at-type= Zend_Mime::TYPE_OCTETSTREAM;
$at-disposition = Zend_Mime::DISPOSITION_ATTACHMENT;
$at-encoding= Zend_Mime::ENCODING_BASE64;
$at-filename= $filename;
$mail-addAttachment($at);

$mail-send($mailTransport);


[fw-general] Problem attaching Zend_Mail

2009-08-19 Thread José de Menezes Soares Neto
Hello,

Anyone knows how to attach a file??

Regards,

José


[fw-general] Zend_feed + Twitter Search Atom

2009-06-12 Thread José de Menezes Soares Neto
Hello,

I tried to fetch

http://search.twitter.com/search.atom?q=lang=allrpp=100show_user=true

But I can´t get the content of link tag inside the entry tags.

Anyone knows how to get it?

The full code is:

$feed = Zend_Feed::import('
http://search.twitter.com/search.atom?q=lang=allrpp=100show_user=true');

foreach ($feed as $entry) {

 $results[] = array(
'id'= $entry-id(),
'content'   = $entry-content(),
'published' = $entry-published(),
'link'  = $entry-link() // but this is an
array with Dom elements...
);

}

Regards,

José


[fw-general] ZF + Twitter?

2009-05-01 Thread José de Menezes Soares Neto
Is there something for using ZF + API Twitter?


[fw-general] Little route problem

2009-04-24 Thread José de Menezes Soares Neto
Hello my friends.

I have a little problem with zend route, but I am sure you will help me, let
me explain...

*My application without route:*

http://www.mydomain.com/onemodule/onecontroller/oneaction/variable1/value1
/variable2/value2

Works fine!

*My application with route:*

http://www.value1.mydomain.com/value2

Gives me an error (see below).

*The route code I used:*

// Host routes

$hostUrl = new Zend_Controller_Router_Route_Hostname(
'www.:variable1.mydomain.com/:variable2',
array('module'= 'onemodule'),
array('variable1' = '([a-z0-9]+)'),
array('variable2' = '([a-z0-9]+)')
);

// Module routes


$router-addRoute('hostUrl', $hostUrl-chain(
new Zend_Controller_Router_Route_Static(
'',
array(
'controller' = 'onecontroller',
'action' = 'oneaction'
)
)
));

*Error message I am getting:*

Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception' with
message 'Invalid controller specified (value2)'

Regards,

José


Re: [fw-general] Little route problem

2009-04-24 Thread José de Menezes Soares Neto
Thanks very much, you were right!

A new question based on the first one.

   - I would like that www.john.mydomain.com/all list all pages of john´s
   profile.
   - I would like that www.john.mydomain.com/1 list page one of john´s
   profile.

www.john.mydomain.com/1 (or 2, 3, 4...) is done and working, but
www.john.mydomain.com/all is not going to the right action... it is going
for the action view instead of allpages action.

*I have two routes, route4 and route5 below:*

$route4 =   new Zend_Controller_Router_Route_Hostname(
':username.mydomain.com',
array('module' = 'default'),
array('username'   = '([a-z0-9]+)')
);

$route4action = new Zend_Controller_Router_Route(
':page',
array(
'controller' = 'profile',
'action' = 'view',
'page'  = '([a-z0-9]+)'
)
);

//

$route5 =   new Zend_Controller_Router_Route_Hostname(
':username.mydomain.com',
array('module' = 'default'),
array('username'   = '([a-z0-9]+)')
);

$route5action = new Zend_Controller_Router_Route(
'/all',
array(
'controller' = 'profile',
'action' = 'allpages'
)
);

// Add routes

$router-addRoute('route5', $route5-chain($route5action));
$router-addRoute('route4', $route4-chain($route4action));


Regards!

2009/4/24 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 A hostname route is just there to match a hostname, not a path. See the
 (1.8) documentation about the ChainRoute.
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  Hello my friends.
 
  I have a little problem with zend route, but I am sure you will help me,
  let me explain...
 
  *My application without route:*
 
 
 http://www.mydomain.com/onemodule/onecontroller/oneaction/variable1/value1/variable2/value2
 
  Works fine!
 
  *My application with route:*
 
  http://www.value1.mydomain.com/ http://mydomain.com/value2
 
  Gives me an error (see below).
 
  *The route code I used:*
 
  // Host routes
 
  $hostUrl = new Zend_Controller_Router_Route_Hostname(
  'www.:variable1.mydomain.com/ http://mydomain.com/:variable2',
  array('module'= 'onemodule'),
  array('variable1' = '([a-z0-9]+)'),
  array('variable2' = '([a-z0-9]+)')
  );
 
  // Module routes
 
 
  $router-addRoute('hostUrl', $hostUrl-chain(
  new Zend_Controller_Router_Route_Static(
  '',
  array(
  'controller' = 'onecontroller',
  'action' = 'oneaction'
  )
  )
  ));
 
  *Error message I am getting:*
 
  Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
  with message 'Invalid controller specified (value2)'
 
  Regards,
 
  José
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAknyCRcACgkQ0HfT5Ws789DsfwCgpQaH8PgOp5na0rrcXoCns2E/
 pZkAoLs4YyW/EQ7PwooQed3v1W5dKnVU
 =fIAk
 -END PGP SIGNATURE-



Re: [fw-general] Little route problem

2009-04-24 Thread José de Menezes Soares Neto
I fixed the last problem...

But now, I can not access www.mydomain.com, it is thinking that www is the
username!

Anyone know how to fix it??



2009/4/24 José de Menezes Soares Neto z...@detetive.net

 Thanks very much, you were right!

 A new question based on the first one.

- I would like that www.john.mydomain.com/all list all pages of john´s
profile.
- I would like that www.john.mydomain.com/1 list page one of john´s
profile.

 www.john.mydomain.com/1 (or 2, 3, 4...) is done and working, but
 www.john.mydomain.com/all is not going to the right action... it is going
 for the action view instead of allpages action.

 *I have two routes, route4 and route5 below:*

 $route4 =   new Zend_Controller_Router_Route_Hostname(
 ':username.mydomain.com',
 array('module' = 'default'),
 array('username'   = '([a-z0-9]+)')
 );

 $route4action = new Zend_Controller_Router_Route(
 ':page',
 array(
 'controller' = 'profile',
 'action' = 'view',
 'page'  = '([a-z0-9]+)'
 )
 );

 //

 $route5 =   new Zend_Controller_Router_Route_Hostname(
 ':username.mydomain.com',
 array('module' = 'default'),
 array('username'   = '([a-z0-9]+)')
 );

 $route5action = new Zend_Controller_Router_Route(
 '/all',
 array(
 'controller' = 'profile',
 'action' = 'allpages'
 )
 );

 // Add routes

 $router-addRoute('route5', $route5-chain($route5action));
 $router-addRoute('route4', $route4-chain($route4action));


 Regards!

 2009/4/24 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 A hostname route is just there to match a hostname, not a path. See the
 (1.8) documentation about the ChainRoute.
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  Hello my friends.
 
  I have a little problem with zend route, but I am sure you will help me,
  let me explain...
 
  *My application without route:*
 
 
 http://www.mydomain.com/onemodule/onecontroller/oneaction/variable1/value1/variable2/value2
 
  Works fine!
 
  *My application with route:*
 
  http://www.value1.mydomain.com/ http://mydomain.com/value2
 
  Gives me an error (see below).
 
  *The route code I used:*
 
  // Host routes
 
  $hostUrl = new Zend_Controller_Router_Route_Hostname(
  'www.:variable1.mydomain.com/ http://mydomain.com/:variable2',
  array('module'= 'onemodule'),
  array('variable1' = '([a-z0-9]+)'),
  array('variable2' = '([a-z0-9]+)')
  );
 
  // Module routes
 
 
  $router-addRoute('hostUrl', $hostUrl-chain(
  new Zend_Controller_Router_Route_Static(
  '',
  array(
  'controller' = 'onecontroller',
  'action' = 'oneaction'
  )
  )
  ));
 
  *Error message I am getting:*
 
  Fatal error: Uncaught exception 'Zend_Controller_Dispatcher_Exception'
  with message 'Invalid controller specified (value2)'
 
  Regards,
 
  José
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAknyCRcACgkQ0HfT5Ws789DsfwCgpQaH8PgOp5na0rrcXoCns2E/
 pZkAoLs4YyW/EQ7PwooQed3v1W5dKnVU
 =fIAk
 -END PGP SIGNATURE-





Re: [fw-general] Session + fopen problem

2009-04-20 Thread José de Menezes Soares Neto
yes, the content is the html output.

I tried with curl but pure, without any adaptation with zend, and the result
was the same as file_get_contents

Have you an example, or something that could guide me through this?

Thanks very much!

2009/4/20 Vadim Gabriel vadim...@gmail.com

 Hey,

 Did you try using the Curl Adapter within the Zend_Http_Client component? I
 would try using a Curl to get the website content. By content you mean the
 source code, Right?

 Vince.

 2009/4/20 José de Menezes Soares Neto z...@detetive.net

 Hello,
 I am trying to download an url content, but it is set with session (or
 cookie) (i could see it using a browser).

 When I did file_get_contents('url'); it only returns a blank page...

 There is a way to get the content of a page setup with session or cookie?

 I think the problem is the server is trying to download the content, not
 the user...

 Regards,

 José




 --
 Vincent Gabriel.
 Lead Developer, Senior Support.
 Zend Certified Engineer.
 Zend Framework Certified Engineer.







Re: [fw-general] Session + fopen problem

2009-04-20 Thread José de Menezes Soares Neto
Hi Till,

But, there will be examples for how to use it to get session/cookie
protected data?

2009/4/20 till klimp...@gmail.com

 2009/4/20 José de Menezes Soares Neto z...@detetive.net:
  yes, the content is the html output.
 
  I tried with curl but pure, without any adaptation with zend, and the
 result
  was the same as file_get_contents
 
  Have you an example, or something that could guide me through this?
 
  Thanks very much!

 You need Zend_Cookie_Jar and the Zend_Http_Client.

 Check the manual, there should be an example! :)

 Till



Re: [fw-general] Session + fopen problem

2009-04-20 Thread José de Menezes Soares Neto
I don't know if my question is well defined, look this:

domain-a.com/set.php (user need to come here and start session or save
cookie)
domain-a.com/show.php  (it prints some data if session or cookie is set)
domain-b.com/get.php (user access this page and it shows him the session or
cookie data retrieved from domain-a/show.php)

the suggestions are for this? without using post, get...?


2009/4/20 José de Menezes Soares Neto z...@detetive.net

 Hi Till,

 But, there will be examples for how to use it to get session/cookie
 protected data?

 2009/4/20 till klimp...@gmail.com

 2009/4/20 José de Menezes Soares Neto z...@detetive.net:
  yes, the content is the html output.
 
  I tried with curl but pure, without any adaptation with zend, and the
 result
  was the same as file_get_contents
 
  Have you an example, or something that could guide me through this?
 
  Thanks very much!

 You need Zend_Cookie_Jar and the Zend_Http_Client.

 Check the manual, there should be an example! :)

 Till





Re: [fw-general] Session + fopen problem

2009-04-20 Thread José de Menezes Soares Neto
The solution offered by Zend_Cookie_Jar seems to be different from what I
need.

There, you know user password and username.

I don't know, I only what to go where the user is already authenticated and
get its content.


2009/4/20 José de Menezes Soares Neto z...@detetive.net

 I don't know if my question is well defined, look this:

 domain-a.com/set.php (user need to come here and start session or save
 cookie)
 domain-a.com/show.php  (it prints some data if session or cookie is set)
 domain-b.com/get.php (user access this page and it shows him the session
 or cookie data retrieved from domain-a/show.php)

 the suggestions are for this? without using post, get...?



 2009/4/20 José de Menezes Soares Neto z...@detetive.net

 Hi Till,

 But, there will be examples for how to use it to get session/cookie
 protected data?

 2009/4/20 till klimp...@gmail.com

 2009/4/20 José de Menezes Soares Neto z...@detetive.net:
  yes, the content is the html output.
 
  I tried with curl but pure, without any adaptation with zend, and the
 result
  was the same as file_get_contents
 
  Have you an example, or something that could guide me through this?
 
  Thanks very much!

 You need Zend_Cookie_Jar and the Zend_Http_Client.

 Check the manual, there should be an example! :)

 Till






[fw-general] Session + fopen problem

2009-04-19 Thread José de Menezes Soares Neto
Hello,
I am trying to download an url content, but it is set with session (or
cookie) (i could see it using a browser).

When I did file_get_contents('url'); it only returns a blank page...

There is a way to get the content of a page setup with session or cookie?

I think the problem is the server is trying to download the content, not the
user...

Regards,

José


Re: [fw-general] Re: routes like username.domain.com

2009-02-12 Thread José de Menezes Soares Neto
I´ve already read this, but it is not using config.ini...

Could someone give me a little help using config.ini?


2009/2/10 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  I forgot, I am using config.ini with another routes like:
 
  [production]
  routes.userexist.route= api/userexists/:username/*
  routes.userexist.defaults.module  = account
  routes.userexist.defaults.controller  = api
  routes.userexist.defaults.action  = userexists
  routes.userexist.defaults.username= 0
 
  Regards
 
  2009/2/10 José de Menezes Soares Neto z...@detetive.net
  mailto:z...@detetive.net
 
  Hello friends,
 
  I am using Modules and Zend_Config, how could I call an action from
  somename.mydomain.com http://somename.mydomain.com?
 
  I did not found any example for how to use Zend_Config for this this
  kind of route...
 
  Regards,
 
  José
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmSCgwACgkQ0HfT5Ws789BsuACaAxkns2ITz6U0Ih4OeXqhRXXQ
 7KcAn07jQy8SAmwccYimnil6lMQ3W9WU
 =qlhz
 -END PGP SIGNATURE-



Re: [fw-general] Re: routes like username.domain.com

2009-02-12 Thread José de Menezes Soares Neto
Hello?

I put this:

routes.subdomains.type =
Zend_Controller_Router_Route_Hostname
routes.subdomains.route= :username.detetive.net
routes.subdomains.defaults.module  = default
routes.subdomains.defaults.controller  = index
routes.subdomains.defaults.action  = history
routes.subdomains.defaults.username= 

routes.index.type = Zend_Controller_Router_Route_Hostname
routes.index.route= www.detetive.net
routes.index.defaults.module  = default
routes.index.defaults.controller  = index
routes.index.defaults.action  = index


If I put the subdomains only, all will go to some user... with index
www.detetive.net is going to index but with this I couldn´t access
anything more!



2009/2/12 José de Menezes Soares Neto z...@detetive.net

 I´ve already read this, but it is not using config.ini...

 Could someone give me a little help using config.ini?


 2009/2/10 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  I forgot, I am using config.ini with another routes like:
 
  [production]
  routes.userexist.route= api/userexists/:username/*
  routes.userexist.defaults.module  = account
  routes.userexist.defaults.controller  = api
  routes.userexist.defaults.action  = userexists
  routes.userexist.defaults.username= 0
 
  Regards
 
  2009/2/10 José de Menezes Soares Neto z...@detetive.net
  mailto:z...@detetive.net
 
  Hello friends,
 
  I am using Modules and Zend_Config, how could I call an action from
  somename.mydomain.com http://somename.mydomain.com?
 
  I did not found any example for how to use Zend_Config for this this
  kind of route...
 
  Regards,
 
  José
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmSCgwACgkQ0HfT5Ws789BsuACaAxkns2ITz6U0Ih4OeXqhRXXQ
 7KcAn07jQy8SAmwccYimnil6lMQ3W9WU
 =qlhz
 -END PGP SIGNATURE-





Re: [fw-general] Re: routes like username.domain.com

2009-02-12 Thread José de Menezes Soares Neto
Just the both controllers and they actions


2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Hello?

 I put this:

 routes.subdomains.type =
 Zend_Controller_Router_Route_Hostname
 routes.subdomains.route= :username.detetive.net
 routes.subdomains.defaults.module  = default
 routes.subdomains.defaults.controller  = index
 routes.subdomains.defaults.action  = history
 routes.subdomains.defaults.username= 

 routes.index.type = Zend_Controller_Router_Route_Hostname
 routes.index.route= www.detetive.net
 routes.index.defaults.module  = default
 routes.index.defaults.controller  = index
 routes.index.defaults.action  = index


 If I put the subdomains only, all will go to some user... with index
 www.detetive.net is going to index but with this I couldn´t access
 anything more!



 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 I´ve already read this, but it is not using config.ini...

 Could someone give me a little help using config.ini?


 2009/2/10 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  I forgot, I am using config.ini with another routes like:
 
  [production]
  routes.userexist.route= api/userexists/:username/*
  routes.userexist.defaults.module  = account
  routes.userexist.defaults.controller  = api
  routes.userexist.defaults.action  = userexists
  routes.userexist.defaults.username= 0
 
  Regards
 
  2009/2/10 José de Menezes Soares Neto z...@detetive.net
  mailto:z...@detetive.net
 
  Hello friends,
 
  I am using Modules and Zend_Config, how could I call an action from
  somename.mydomain.com http://somename.mydomain.com?
 
  I did not found any example for how to use Zend_Config for this
 this
  kind of route...
 
  Regards,
 
  José
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmSCgwACgkQ0HfT5Ws789BsuACaAxkns2ITz6U0Ih4OeXqhRXXQ
 7KcAn07jQy8SAmwccYimnil6lMQ3W9WU
 =qlhz
 -END PGP SIGNATURE-






[fw-general] Zend_Controller_Router_Route_Hostname question...

2009-02-12 Thread José de Menezes Soares Neto
routes.dashboard.type =
Zend_Controller_Router_Route_Hostname
routes.dashboard.route= :username.mydomain.com
routes.dashboard.defaults.module  = account
routes.dashboard.defaults.controller  = index
routes.subdomains.defaults.action  = dashboard
routes.dashboard.defaults.username= 

Hello, with this code inside my *config.ini*, I send all my users to the
right place, but it is getting ALL the subdomains, including  www.

How could I exclude the subdomains I don´t want to do that?

Regards,

José


[fw-general] Zend_Controller_Router_Route_Hostname question NUMBER TWO...

2009-02-12 Thread José de Menezes Soares Neto
Hello,

I would like to know how to use CHAINS into config.ini notation...

Regards,

José


Re: [fw-general] Re: routes like username.domain.com

2009-02-12 Thread José de Menezes Soares Neto
Maybe there is something to chain into config.ini OR something I could put
exceptions (!www !admin... etc)

2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Just the both controllers and they actions



 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Hello?

 I put this:

 routes.subdomains.type =
 Zend_Controller_Router_Route_Hostname
 routes.subdomains.route= :username.detetive.net
 routes.subdomains.defaults.module  = default
 routes.subdomains.defaults.controller  = index
 routes.subdomains.defaults.action  = history
 routes.subdomains.defaults.username= 

 routes.index.type =
 Zend_Controller_Router_Route_Hostname
 routes.index.route= www.detetive.net
 routes.index.defaults.module  = default
 routes.index.defaults.controller  = index
 routes.index.defaults.action  = index


 If I put the subdomains only, all will go to some user... with index
 www.detetive.net is going to index but with this I couldn´t access
 anything more!



 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 I´ve already read this, but it is not using config.ini...

 Could someone give me a little help using config.ini?


 2009/2/10 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  I forgot, I am using config.ini with another routes like:
 
  [production]
  routes.userexist.route= api/userexists/:username/*
  routes.userexist.defaults.module  = account
  routes.userexist.defaults.controller  = api
  routes.userexist.defaults.action  = userexists
  routes.userexist.defaults.username= 0
 
  Regards
 
  2009/2/10 José de Menezes Soares Neto z...@detetive.net
  mailto:z...@detetive.net
 
  Hello friends,
 
  I am using Modules and Zend_Config, how could I call an action
 from
  somename.mydomain.com http://somename.mydomain.com?
 
  I did not found any example for how to use Zend_Config for this
 this
  kind of route...
 
  Regards,
 
  José
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmSCgwACgkQ0HfT5Ws789BsuACaAxkns2ITz6U0Ih4OeXqhRXXQ
 7KcAn07jQy8SAmwccYimnil6lMQ3W9WU
 =qlhz
 -END PGP SIGNATURE-







Re: [fw-general] Re: routes like username.domain.com

2009-02-12 Thread José de Menezes Soares Neto
http://www.noginn.com/2009/02/04/revisiting-hostname-routing-with-the-zend-framework/

this answered all my questions...

just link to use http://username.mydomain.com AND
http://www.username.mydomain.com

Is that possible?

2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Maybe there is something to chain into config.ini OR something I could put
 exceptions (!www !admin... etc)


 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Just the both controllers and they actions



 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 Hello?

 I put this:

 routes.subdomains.type =
 Zend_Controller_Router_Route_Hostname
 routes.subdomains.route= :username.detetive.net
 routes.subdomains.defaults.module  = default
 routes.subdomains.defaults.controller  = index
 routes.subdomains.defaults.action  = history
 routes.subdomains.defaults.username= 

 routes.index.type =
 Zend_Controller_Router_Route_Hostname
 routes.index.route= www.detetive.net
 routes.index.defaults.module  = default
 routes.index.defaults.controller  = index
 routes.index.defaults.action  = index


 If I put the subdomains only, all will go to some user... with index
 www.detetive.net is going to index but with this I couldn´t access
 anything more!



 2009/2/12 José de Menezes Soares Neto z...@detetive.net

 I´ve already read this, but it is not using config.ini...

 Could someone give me a little help using config.ini?


 2009/2/10 Ben Scholzen 'DASPRiD' m...@dasprids.de

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.hostname
 ...
 :  ___   _   ___ ___ ___ _ ___:
 : |   \ /_\ / __| _ \ _ (_)   \   :
 : | |) / _ \\__ \  _/   / | |) |  :
 : |___/_/:\_\___/_| |_|_\_|___/   :
 :::
 : Web: http://www.dasprids.de :
 : E-mail : m...@dasprids.de   :
 : Jabber : jab...@dasprids.de :
 : ICQ: 105677955  :
 :::


 José de Menezes Soares Neto schrieb:
  I forgot, I am using config.ini with another routes like:
 
  [production]
  routes.userexist.route= api/userexists/:username/*
  routes.userexist.defaults.module  = account
  routes.userexist.defaults.controller  = api
  routes.userexist.defaults.action  = userexists
  routes.userexist.defaults.username= 0
 
  Regards
 
  2009/2/10 José de Menezes Soares Neto z...@detetive.net
  mailto:z...@detetive.net
 
  Hello friends,
 
  I am using Modules and Zend_Config, how could I call an action
 from
  somename.mydomain.com http://somename.mydomain.com?
 
  I did not found any example for how to use Zend_Config for this
 this
  kind of route...
 
  Regards,
 
  José
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkmSCgwACgkQ0HfT5Ws789BsuACaAxkns2ITz6U0Ih4OeXqhRXXQ
 7KcAn07jQy8SAmwccYimnil6lMQ3W9WU
 =qlhz
 -END PGP SIGNATURE-








[fw-general] routes like username.domain.com

2009-02-10 Thread José de Menezes Soares Neto
Hello friends,

I am using Modules and Zend_Config, how could I call an action from
somename.mydomain.com?

I did not found any example for how to use Zend_Config for this this kind of
route...

Regards,

José


[fw-general] Re: routes like username.domain.com

2009-02-10 Thread José de Menezes Soares Neto
I forgot, I am using config.ini with another routes like:

[production]
routes.userexist.route= api/userexists/:username/*
routes.userexist.defaults.module  = account
routes.userexist.defaults.controller  = api
routes.userexist.defaults.action  = userexists
routes.userexist.defaults.username= 0

Regards

2009/2/10 José de Menezes Soares Neto z...@detetive.net

 Hello friends,

 I am using Modules and Zend_Config, how could I call an action from
 somename.mydomain.com?

 I did not found any example for how to use Zend_Config for this this kind
 of route...

 Regards,

 José



[fw-general] Remote authentication

2008-10-02 Thread José de Menezes Soares Neto
Hello my friends,

I have two sites:

*www.sitea.com*
*www.siteb.com*

I would like to authenticate the user only at *www.sitea.com* and he will
have access to *www.siteb.com*.

At *sitea*, if user is not logged in, it showns sign up form, otherwise it
shows logged with success just for sinalization.

At *siteb*, if user is not logged in, it redirects to sitea, otherwise it
shows hello, welcom back.

It is like Google Accounts... which is the best way to do that?

Regards,

José


[fw-general] Cronjobs with ZF

2008-09-25 Thread José de Menezes Soares Neto
I am using Zend Framework to develop a web system.
It has a function (let's call it funcA) required to run periodically.
Thus, I would like to use crontab (Linux command) to run funcA every 15 m.

Unfortunately, it seems that there are some configurations on the bootstrap
file, I need to access funcA through HTTP

i.e.

**/15 * * * * wget -O /dev/null http://127.0.0.1/test/html/cron/pageA*


Is it possible to create a cron job to run funcA by using Zend Framework
without HTTP request (use the absolute path, e.g:

**/15 * * * * 
/opt/lampp/htdocs/test/html/application/controllers/CronController.php*

)

Regards,

José

P.S: This is the same question someone did on the internet, but without
answers...


Re: [fw-general] Cronjobs with ZF

2008-09-25 Thread José de Menezes Soares Neto
Hi Till,

Could you explain your solution a little bit more?

Regards,

José

2008/9/25 till [EMAIL PROTECTED]

 On Thu, Sep 25, 2008 at 1:02 PM, José de Menezes Soares Neto
 [EMAIL PROTECTED] wrote:
  I am using Zend Framework to develop a web system.
  It has a function (let's call it funcA) required to run periodically.
  Thus, I would like to use crontab (Linux command) to run funcA every 15
 m.
 
  Unfortunately, it seems that there are some configurations on the
 bootstrap
  file, I need to access funcA through HTTP
 
  i.e.
 
  */15 * * * * wget -O /dev/null http://127.0.0.1/test/html/cron/pageA
 
  Is it possible to create a cron job to run funcA by using Zend
 Framework
  without HTTP request (use the absolute path, e.g:
 
  */15 * * * *
  /opt/lampp/htdocs/test/html/application/controllers/CronController.php
 
  )
 
  Regards,
 
  José
 
  P.S: This is the same question someone did on the internet, but without
  answers...
 

 I don't think you can bypass the entire framework with a simple call. :-)

 For starters, we run our webs all on public and private (10.x.x.x) IPs
 and what we do with cron-related calls is use the private IP. The
 lag is 0, and we still understand what we build in 6-12 months. ;-)

 There has been a similar discussion on this mailinglist about MVC on
 the shell, I think someone mentioned Zend_Console_Getopt in the
 process so search nabble [archive] for that and maybe that gives you a
 couple ideas on how to go forward.

 Till



[fw-general] Action to single php

2008-09-25 Thread José de Menezes Soares Neto
Hi friends,

I would like to convert an action into a single file .php

I would like to keep using ZF functions, but I want to access this file .php
alone, not using bootstrap.

i.e.
http://www.mysite.com/myfile.php

It is because this resolves my problem with cronjob creations!

Any help?

Regards,

José


Re: [fw-general] Soundex

2008-09-23 Thread José de Menezes Soares Neto
Sorry, I am from Brasil... but I think yes, its what I need

2008/9/22 Matthew Ratzloff [EMAIL PROTECTED]

 No.  It would be nice to have a locale-aware version, however.  I assume
 that's what you're getting at?
 -Matt


 On Mon, Sep 22, 2008 at 6:52 PM, José de Menezes Soares Neto 
 [EMAIL PROTECTED] wrote:

 I know that.

 But ZF have anything to help like this?

 2008/9/22 Bill Karwin [EMAIL PROTECTED]




 José de Menezes Soares Neto wrote:
 
  There is a way to find similar queries?
 

 http://php.net/soundex

 Regards,
 Bill Karwin
 --
 View this message in context:
 http://www.nabble.com/Soundex-tp19619868p19619905.html
 Sent from the Zend Framework mailing list archive at Nabble.com.






[fw-general] charset little problem

2008-09-23 Thread José de Menezes Soares Neto
Hi friends,

When I try:
*
print $this-_request-getParam('query');*

The browser prints:

*programação*

The correct need to be:

*programação*

And when I try:

*print programação;*

It prints correctly!

What it would be?


Re: [fw-general] charset little problem

2008-09-23 Thread José de Menezes Soares Neto
the problem is inside getParam. Because when i print the char inside the
html, or inside the php, it shows fine

any ideas?

2008/9/23 till [EMAIL PROTECTED]

 On Tue, Sep 23, 2008 at 12:46 PM, José de Menezes Soares Neto
 [EMAIL PROTECTED] wrote:
  Hi friends,
 
  When I try:
 
  print $this-_request-getParam('query');
 
  The browser prints:
 
  programação
 
  The correct need to be:
 
  programação
 
  And when I try:
 
  print programação;
 
  It prints correctly!
 
  What it would be?
 

 This should be encoding related.

 Make sure you send the correct encoding in Content-Type and also in
 the browser (meta tag, etc.).

 Till



Re: [fw-general] charset little problem

2008-09-23 Thread José de Menezes Soares Neto
i am using utf8_encode(); for this problem.
thanks everybody!

2008/9/23 José de Menezes Soares Neto [EMAIL PROTECTED]

 the problem is inside getParam. Because when i print the char inside the
 html, or inside the php, it shows fine

 any ideas?

 2008/9/23 till [EMAIL PROTECTED]

 On Tue, Sep 23, 2008 at 12:46 PM, José de Menezes Soares Neto
 [EMAIL PROTECTED] wrote:
  Hi friends,
 
  When I try:
 
  print $this-_request-getParam('query');
 
  The browser prints:
 
  programação
 
  The correct need to be:
 
  programação
 
  And when I try:
 
  print programação;
 
  It prints correctly!
 
  What it would be?
 

 This should be encoding related.

 Make sure you send the correct encoding in Content-Type and also in
 the browser (meta tag, etc.).

 Till





[fw-general] [off-topic] meaning of a contemporaneous word

2008-09-23 Thread José de Menezes Soares Neto
People, what blogoscoped means? What that owner wants to pass?


[fw-general] Feed Application

2008-09-22 Thread José de Menezes Soares Neto
Hi friends,

I am creating a feed application (like technorati) and it is storing the
feed items (posts) into a database (mysql).

My question is, its better to store it as files and search with Lucene?

I ask that because I will probably have lots of posts indexed...

Regards,

José


Re: [fw-general] Parameters

2008-09-22 Thread José de Menezes Soares Neto
Hello,

Thanks very much, it solves my problem very well...

But I am getting difficulties to implement it.

Could you please send me a like with clear explanation? A tutorial may be?

Regards,
José

2008/9/22 Svetlin Tsvetanov [EMAIL PROTECTED]

 Hi José,
 The first possible solution that came up to my mind is to use Route in
 order to specify that tag/ipod should be redirected to
 tagController/tagAction/tag/ipod.

 I hope it helps,

 Regards,
 Svetlin Tsvetanov


 On Mon, Sep 22, 2008 at 2:20 AM, José de Menezes Soares Neto 
 [EMAIL PROTECTED] wrote:

 Hi friends,

 I would like to do this:

 http://www.mysite.com/tag/ipod

 And list all my content with word ipod.

 But I can't, because tag must be a controller and ipod must be an
 action...

 Any suggestions?

 Regards,

 José




 --
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This message contains confidential information and is intended only for the
 individual named. Please notify the sender immediately by e-mail if you have
 received this e-mail by mistake and delete this e-mail from your system. If
 you are not the intended recipient you are notified that disclosing,
 copying, distributing or taking any action in reliance on the contents of
 this information is strictly prohibited. Any views or opinions presented in
 this email are solely those of the author and do not necessarily represent
 those of the company.

 http://www.spetrov.com



Re: [fw-general] Parameters

2008-09-22 Thread José de Menezes Soares Neto
its ok!! it works!

2008/9/22 José de Menezes Soares Neto [EMAIL PROTECTED]

 Hi Till,

 I read it, but I still messing up the things... look above what I've done,
 thanks!*

 What I wish:
 *
 http://localhost/myzfapp/testing/word

 instead of

 http://localhost/myzfapp/tag/view/query/word

 *
 I've put it at my bootstrap (immediately **before dispatching):
 *
 Zend_Loader::loadClass('Zend_Controller_Router_Route');

 // Route
 // Route
 // Route

 $route = new Zend_Controller_Router_Route(
 'testing/:word'
   , array(
 'controller'  = 'tag'
   , 'action'  = 'view'
 )
 );*

 When I type the url, it gives me the error:
 *
 br /
 bFatal error/b:  Uncaught exception
 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller
 specified (testing)' in
 C:\www\onmasters\lib\Zend\Controller\Dispatcher\Standard.php:249
 Stack trace:
 #0 C:\www\onmasters\lib\Zend\Controller\Front.php(946):
 Zend_Controller_Dispatcher_Standard-gt;dispatch(Object(Zend_Controller_Request_Http),
 Object(Zend_Controller_Response_Http))
 #1 C:\www\onmasters\index.php(82): Zend_Controller_Front-gt;dispatch()
 #2 {main}
   thrown in
 bC:\www\onmasters\lib\Zend\Controller\Dispatcher\Standard.php/b on line
 b249/bbr /

 *
 *
 2008/9/22 till [EMAIL PROTECTED]

 On Mon, Sep 22, 2008 at 1:49 PM, José de Menezes Soares Neto
 [EMAIL PROTECTED] wrote:
  Hello,
 
  Thanks very much, it solves my problem very well...
 
  But I am getting difficulties to implement it.
 
  Could you please send me a like with clear explanation? A tutorial may
 be?

 http://framework.zend.com/manual/en/zend.controller.router.html

 This links explains it really well.

 Till





[fw-general] Smarty little problem

2008-09-22 Thread José de Menezes Soares Neto
Hi friends,

I use ZF with Smarty for my apps.

But, now, I would like to use modules too.

My problem is that my compilation dir and template dir are fixed at
Smarty...and I would like to set it for each module I create, like:

application

-admin
--controllers
--models
--templates
--templates_c
-default
--controllers
--models
--templates
--templates_c

But I don't know how to change these two lines dynamically:

$this-_smarty-template_dir = $path.'application/views/';
$this-_smarty-compile_dir = $path.'application/views_c/';

The correct would be:

$this-_smarty-template_dir = $path.'application/module/views/';
$this-_smarty-compile_dir = $path.'application/module/views_c/';

Suggestions?


[fw-general] Detecting a module

2008-09-22 Thread José de Menezes Soares Neto
How to detect a module inside the bootstrap index.php?

And if I am using an router?

Regards,

José


Re: [fw-general] Detecting a module

2008-09-22 Thread José de Menezes Soares Neto
So, I can't print You are at the module XYZ' for example?


2008/9/22 Tobias Gies [EMAIL PROTECTED]

 Hi José,

 you can't detect which module was called in the bootstrap. The earliest
 point where you can get that information is in the routeShutdown() hook of a
 controller plugin.

 Best regards
 Tobias

 2008/9/22 José de Menezes Soares Neto [EMAIL PROTECTED]

 How to detect a module inside the bootstrap index.php?

 And if I am using an router?

 Regards,

 José





[fw-general] Table problem

2008-09-22 Thread José de Menezes Soares Neto
Friends,

I have three tables:

page
page2tag
tag

page2tag just have page_id and tag_id relationship...

how to build a query looking inside page, but merging the three tables?

regards,

josé


[fw-general] Soundex

2008-09-22 Thread José de Menezes Soares Neto
There is a way to find similar queries?

Like did you mean... from most search engines.

Regards,

José


[fw-general] Parameters

2008-09-21 Thread José de Menezes Soares Neto
Hi friends,

I would like to do this:

http://www.mysite.com/tag/ipod

And list all my content with word ipod.

But I can't, because tag must be a controller and ipod must be an
action...

Any suggestions?

Regards,

José


[fw-general] Using subdomains

2008-07-19 Thread José de Menezes Soares Neto
Hi friends,

I would like to create a script with ZF that:

1. Access www.username.site.com
2. Prints username profile

I think I need to create an controller USER with action profile (
http://www.site.com/user/profile/username), and, somehow link it to
www.username.site.com by .htaccess...

But I don´t know how... any suggestions?

Regards,

José


Re: [fw-general] Number Format

2008-07-12 Thread José de Menezes Soares Neto
I've read it, but I could not found :(

2008/7/12 Thomas Weidner [EMAIL PROTECTED]:

 Look into the manual for Zend_Locale_Format.
 This is the component you are searching for.

 Greetings
 Thomas Weidner, I18N Team Leader, Zend Framework
 http://www.thomasweidner.com

 - Original Message - From: José de Menezes Soares Neto 
 [EMAIL PROTECTED]
 To: Zend Framework - General fw-general@lists.zend.com
 Sent: Friday, July 11, 2008 3:40 PM
 Subject: [fw-general] Number Format



 Hi friends,

 I am using the number format like 1,000.00

 But I would like to use 1.000,00

 How to do that? With Zend Locale? But how?

 Regards,

 José

 P.S: Could I change this at DB too?




[fw-general] Number Format

2008-07-11 Thread José de Menezes Soares Neto
Hi friends,

I am using the number format like 1,000.00

But I would like to use 1.000,00

How to do that? With Zend Locale? But how?

Regards,

José

P.S: Could I change this at DB too?


[fw-general] Re: Number Format

2008-07-11 Thread José de Menezes Soares Neto
 Hi friends,

 I am using the number format like 1,000.00

 But I would like to use 1.000,00

 How to do that? With Zend Locale? But how?

 Regards,

 José



[fw-general] Various Joins

2008-06-26 Thread José de Menezes Soares Neto
Hi friends,

I did this join and it works well:

$db = Zend_Registry::get('db');
$select = $db-select()
 -from('user')
 -join(array('pro' = 'profile'), 'user.usr_id =
pro.pro_usrid')
 -where($w_query);

$stmt   = $select-query();
$estoques = $stmt-fetchAll();

But I really don't know what to do when I need more than one join...

table 1 - user (pk: usr_id)
table 2 - profile (pk: pro_id fk: pro_usrid)
table 3 - address (pk add_id fk: add_usrid)

I need to join table 1 with table 2 and table 1 with table 3

any suggestions?

Regards,

José


Re: [fw-general] New Wiki Application under development (ZFWiki) using ZendFramework 1.5.0

2008-06-26 Thread José de Menezes Soares Neto
Could I get a copy of ZFWiki?


2008/6/24 Robert Castley [EMAIL PROTECTED]:

  LOL,

 My secret is Wi-Fi and shed in the garden :-)

  --
 *From:* Federico Cargnelutti [mailto:[EMAIL PROTECTED]
 *Sent:* 24 June 2008 21:03
 *To:* Robert Castley
 *Cc:* Zend Framework - General
 *Subject:* Re: [fw-general] New Wiki Application under development
 (ZFWiki) using ZendFramework 1.5.0

  I am a family man with a wife, 4yr old and a 19 month year old.

 What's the secret, where do you find the time? Tell me please!! I started
 developing a visual form builder using jQuery and Zend_Form and I had to put
 everything on hold, as I ran out of excuses :)

 Great stuff, keep up the good work!


 On Tue, Jun 24, 2008 at 4:35 PM, Robert Castley [EMAIL PROTECTED]
 wrote:

  Hi,

 I wasn't aware of this proposal, but if it makes core then I would
 consider using it.

 I have written my own custom parser for the time being, but am also
 working on converting
 PHP Markdown to a ZF component i.e. Zend_Markdown with the added ability
 to convert CamelCase to links.

 Cheers,
 - Robert

 -Original Message-
 From: Juan Felipe Alvarez Saldarriaga [mailto:[EMAIL PROTECTED][EMAIL 
 PROTECTED]]

 Sent: 24 June 2008 15:29
 To: Robert Castley
 Cc: [EMAIL PROTECTED]; Zend Framework - General
 Subject: Re: [fw-general] New Wiki Application under development (ZFWiki)
 using ZendFramework 1.5.0

 Wow!, great news, are you using the Zend_TextParser (
 http://framework.zend.com/wiki/display/ZFPROP/Zend_TextParser+-+Pieter+Kokx)
 for the wiki markup ?

 Great work! :)

 - Original Message -
 From: Robert Castley [EMAIL PROTECTED]
 To: Zend Framework - General fw-general@lists.zend.com
 Cc: [EMAIL PROTECTED]
 Sent: Monday, June 23, 2008 4:40:19 PM GMT -05:00 Columbia
 Subject: RE: [fw-general] New Wiki Application under development (ZFWiki)
 using ZendFramework 1.5.0

 Just quick update!

 Firstly, big thanks to Bradley Holt for some much needed initial project
 guidance.

 ZFWiki now has the following features:

 Zend_Auth - Supporting a Dummy (only username required!) and LDAP adapter.
 Successfully tested against MS ADS Zend_Search_Lucene - Full indexing and
 site search capabilities Zend_Layout - This is thanks to Bradley
 recommending this approach Zend_Translate - English only supported at the
 moment domPDF - PDF generation is working although you need to apply a patch
 to ZF - http://framework.zend.com/issues/browse/ZF-2996

 Wiki markup is Confluence compatible-ish although I am not sure whether to
 pursue Markdown route (suggestions?)

 Still to come is the integration of Zend_Acl

 If you are interested in this project then please use the Google Group
 Mailing List - http://groups.google.com/group/zfwiki/

 Source code is available from http://zfwiki.googlecode.com

 I would like to point out that I started this project on Thursday last
 week. I am a family man with a wife, 4yr old and a 19 month year old.

 And in this short time, thanks to the Zend Framework, I have been able to
 create a pretty functional web app in a matter of a couple of days!

 Big cudos to the Zend Framework team!!! Thank you!

 All the best,
 - Robert

 From: Robert Castley
 Sent: 19 June 2008 21:42
 To: Zend Framework - General
 Subject: [fw-general] New Wiki Application under development (ZFWiki)
 using ZendFramewo rk 1.5.0


 Hi All,

 I am re-instated my interest in developing a Wiki using Zend Framework.
 The fruits of the last twenty-four hours are now available.

 I am hosting the project over at GoogleCode:
 http://code.google.com/p/zfwiki/

 The Wiki uses the same wiki syntax (almost) as Confluence. The content is
 called and displayed using AJAX via. ProtoType.

 This project is NOT stable and should NOT be used for production. It is
 VERY experimental and is probably full of holes, bugs and XSS.

 Please download, have a play, feedback, suggest etc. even better if you
 fancy joining in and helping out then drop me line.

 Over the next week or so I plan to add/integrate:

 - Zend_Auth
 - Zend_Acl
 - Zend_Search
 - domPDF

 All the best,

 - 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.

 

Re: [fw-general] Various Joins

2008-06-26 Thread José de Menezes Soares Neto
Yes... I did that, but I've already sent you these stupid question!

Sorry!


2008/6/26 Matthew Weier O'Phinney [EMAIL PROTECTED]:

 -- José de Menezes Soares Neto [EMAIL PROTECTED] wrote
 (on Thursday, 26 June 2008, 01:36 PM -0300):
  Hi friends,
 
  I did this join and it works well:
 
  $db = Zend_Registry::get('db');
  $select = $db-select()
   -from('user')
   -join(array('pro' = 'profile'), 'user.usr_id =
  pro.pro_usrid')
   -where($w_query);
 
  $stmt   = $select-query();
  $estoques = $stmt-fetchAll();
 
  But I really don't know what to do when I need more than one join...
 
  table 1 - user (pk: usr_id)
  table 2 - profile (pk: pro_id fk: pro_usrid)
  table 3 - address (pk add_id fk: add_usrid)
 
  I need to join table 1 with table 2 and table 1 with table 3
 
  any suggestions?

 Execute multiple join statements:

$select-from('user')
-join(array('pro' = 'profile'), 'user.usr_id = pro.pro_usrid')
-join(array('a' = 'address'), 'user.usr_id = a.add_usrid')
   -where($w_query);

 Many of the methods in a select object can be executed multiple times,
 with the result that they are aggregated (try it with where(), order(),
 group(), and having() as well).

 --
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/



[fw-general] Unique Login and Password, All Applications

2008-05-07 Thread José de Menezes Soares Neto
Hi Friends!

I would like to construct all my applications base on one single account
administration, like GOOGLE and YAHOO... at these sites, you can login into
a service and use other services as well with a single account...

I would like very much to discuss this with you guys!

Suggestions?

Regards,

José


Re: [fw-general] About Zend_Pdf tables

2008-05-05 Thread José de Menezes Soares Neto
I think this is one very needed feature!


2008/4/1 Logan Buesching [EMAIL PROTECTED]:

 By default, no, Zend_Pdf does not support this feature.  It is something
 that is being planned for the next Major release.  I have done some
 simple
 text formatting which can be seen by the proposal:

 http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf_Cell+-+Logan+Bueschin
 g?focusedCommentId=43457http://framework.zend.com/wiki/display/ZFPROP/Zend_Pdf_Cell+-+Logan+Buesching?focusedCommentId=43457
 Also, in the comments, someone notes that they have implemented tables:

 http://gorilla3d.com/blog/entry/2008-03-28/zend-pdf-text-wrapping-and-tables

 --
 Logan
 http://agoln.net


 -Original Message-
 From: mysticav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2008 12:48 AM
 To: fw-general@lists.zend.com
 Subject: Re: [fw-general] About Zend_Pdf tables


 ...to know if Zend_Table
 I mean, Zend_Pdf


 mysticav wrote:
 
  I would like to know if Zend_Table has the functionality to create
  tabulated data in a simple way, or import html tables.
 
  Thanks.
 

 --
 View this message in context:
 http://www.nabble.com/About-Zend_Pdf-tables-tp16412842p16412843.html
 Sent from the Zend Framework mailing list archive at Nabble.com.





-- 
Atenciosamente,

José de Menezes Soares Neto
(11) 3881-1981 - [EMAIL PROTECTED]
Detetive.net ltda. - www.detetive.net

Conheça outros projetos:
www.ofertas.com.br
www.geraboleto.com.br
www.vai.la


Re: [fw-general] db question

2008-04-01 Thread José de Menezes Soares Neto
Hi friends, but how to call this function??? this is my problem


2008/1/21, Romeo-Adrian Cioaba [EMAIL PROTECTED]:

 You are right about the fact that metadata is the same for all rows in a
 given table :).

 info() works just fine for me as at this point i don't need collation and
 extra.

 thanks a lot for your help!

 On Jan 21, 2008 5:30 AM, Bill Karwin [EMAIL PROTECTED] wrote:

 
  Metadata attributes are the same for all rows in a given table.  It
  doesn't
  matter what row you ask for.
 
  You can use the Adapter object's describeTable() method to get metadata
  information about a table.
 
  The Table object's info() method also gives this information.
 
  However, of the metadata attributes you mention, collation and extra are
  not
  returned in the information set.
 
  Regards,
  Bill Karwin
 
 
  Romeo-Adrian Cioaba wrote:
  
   is there a way to find out the field, type, collation, attributes,
  null,
   default and extra for a specific row returned by
  $object-fetchRow('$id =
   1')?
  
 
  --
  View this message in context: 
  http://www.nabble.com/db-question-tp14990411s16154p14990649.html
 
  Sent from the Zend Framework mailing list archive at Nabble.com.
 
 


 --
 Romeo-Adrian Cioaba
 email: [EMAIL PROTECTED]

 Disclaimer
 The information in this e-mail is confidential and may be legally
 privileged. It is intended solely for the addressee.  Access to this e-mail
 by anyone else is unauthorised.  If you are not the intended recipient
 please do not read, print, re-transmit, store, disclose, copy, distribute or
 act in reliance on it or any attachments.  Instead please e-mail it back to
 the sender and then immediately permanently delete it.  By opening any
 attachment to this e-mail you are expressly acknowledging that the
 attachment is subject to copyright, and you thereby undertake not to alter,
 copy, disseminate, re-transmit, rely upon or use the attachment except as
 expressly authorised by the sender.
 pimg width=25 height=22 src=?attid=
 0.1.2disp=embview=attth=113de1968126e5f3/
 font size=1 color=#008000 Please consider your environmental
 responsibility before printing this e-mail/font/p




-- 
Atenciosamente,

José de Menezes Soares Neto
(11) 3881-1981 - [EMAIL PROTECTED]
Detetive.net ltda. - www.detetive.net

Conheça outros projetos:
www.ofertas.com.br
www.geraboleto.com.br
www.vai.la


[fw-general] Examples

2008-03-30 Thread José de Menezes Soares Neto
I think we should have a bank of application examples for download at
framework.zend.com, like:

blog example
album example
site example
etc...


Re: [fw-general] CakePHP vs. ZendFramework

2008-02-26 Thread José de Menezes Soares Neto
Thanks every one.

I use ZF for my projects, but a friend comes to me talking a lot about
Cake...

So, now I am starting a new (big) project, I think about changing...

But I don't know... I think I will keep with ZF...

2008/2/22, Renan Gonçalves [EMAIL PROTECTED]:

 I use CakePHP in some projects and I sure that is a best PHP MVC Framework
 for a rapid development.

 Of course that is not comparable to Zend Framework. But let's compare the
 MVC them, it is more sensible.

 On Fri, Feb 22, 2008 at 12:14 AM, Eric Coleman [EMAIL PROTECTED]
 wrote:

  Pretty cool to link to an unavailable product ;)
 
  On Feb 21, 2008, at 4:11 PM, Andi Gutmans wrote:
 
   That's an obvious answer.
  
   We have much cooler merchandise:
  
  
  http://www.zend.com/en/store/php-extras/framework-shirt#Additional-Information
 



 --
 Renan Gonçalves - Software Engineer
 Cell Phone: +55 (11) 8633-6018
 MSN: [EMAIL PROTECTED]
 Web Site: renangoncalves.com
 São Paulo - SP/Brazil


[fw-general] CakePHP vs. ZendFramework

2008-02-21 Thread José de Menezes Soares Neto
Hi friends,

Why use ZendFramework and not CakePHP?

Regards,

José


[fw-general] .htaccess problem

2007-12-27 Thread José de Menezes Soares Neto
Hi friends,

My .htaccess is:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off

But everything I try to access by typing the real URL doesnt work... the
specification I put at .htaccess aways go to index.php (bootstrap) and try
to find a controller.

What I want is, if I try to access www.url.com/controller/action, works
fine, but if I try to access www.url.com/htmls/about.html, works fine too!

Is that possible?

Best regards,

José


[fw-general] .htaccess problem

2007-12-27 Thread José de Menezes Soares Neto
Hi friends,

My .htaccess is:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php
php_flag magic_quotes_gpc off
php_flag register_globals off

But everything I try to access by typing the real URL doesnt work... the
specification I put at .htaccess aways go to index.php (bootstrap) and try
to find a controller.

What I want is, if I try to access www.url.com/controller/action, works
fine, but if I try to access www.url.com/htmls/about.html, works fine too!

Is that possible?

Best regards,

José


[fw-general] Zend_Mime and Zend_Mail with Smarty

2007-11-09 Thread José de Menezes Soares Neto
Hi friends,

I would like to use SMARTY to build my email messages. Can I?
Could someone give me an example of code?

Best regards,

José de Menezes


[fw-general] Difficulties with searching

2007-08-10 Thread José de Menezes Soares Neto
I have two tables:

Product (name, description, quantity).
Store (name, description, category).

I did a search to find products by name and description, that is ok.
But, how to search by store name too??

Best regards,

José de Menezes


[fw-general] The best way to consult various tables

2007-08-07 Thread José de Menezes Soares Neto
Hi friends,

Which is the best way to make a consult in more than one table??

The question is based on these two tables:

tbUser and tbProfile

I would like to return the users that are female, but, how?

best regards,

José


[fw-general] FetchRow() problem

2007-07-23 Thread José de Menezes Soares Neto

Hi friends,

I tried to retrieve information from two tables with this:

$employees = new Employees();
$employees = $employees-fetchRow('emp_id='.$id);
$employees = $employees-toArray();
$employees = extract($employees);

$users = new Users();
$users = $users-fetchRow('use_id='.$id);
$users = $users-toArray(); // --- Line 685
$users = extract($users);

Where $id is the ID from the employee. But I get the following message:

*Fatal error*: Call to a member function toArray() on a non-object in *
C:\www\was\application\controllers\EmployeesController.php* on line *685

*I used it a while ago and it worked nice, but now it stop working!!!
You could see that toArray(); works for employees but not for users...

Could somebody help me please?

best regards,

José de Menezes


[fw-general] print a value from another table (Zend_Db)

2007-07-19 Thread José de Menezes Soares Neto

Hi friends

i have two tables:

tb_employees (id, emp_name, fk_sector)
tb_sectors (id, sec_name)

I need to make a sql query in the tb_employees, and then, print emp_name and
sec_name...
But I don't know how to retrieve this using Zend_DB

I need help here...

Best regards,

José de Meenzes


Re: [fw-general] Searching database

2007-07-12 Thread José de Menezes Soares Neto

i want matching...

but i try to get $query = $_GET[query]

and there appears a message:

*Notice*: Undefined index: query in *
C:\www\was\application\controllers\FuncionariosController.php* on line *81



*
2007/7/11, ViShap [EMAIL PROTECTED]:


Hi josé!

What kind of search should this be?  Full-Text or matching  (LIKE
%$string% ) ?

For Like execute a simple Query  select . from . LIKE %$string%  limit ...

for full text i strongly recommend google-searching - many good articles
about it  =)
(i think also zend has sth in their tutorials-section ...

It was when I viewed it in  Beginner Tutorials - Using MySQL Full-text-
...  (26.01.06 ^^)

I hope i helped ya out!

regards

2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:

 Hi friends,

 I would like to make a search for search user details in my database,
 how do I start with it?

 Best regards,

 José de Menezes





Re: [fw-general] Searching database

2007-07-12 Thread José de Menezes Soares Neto

if a type http://localhost/search?query=123, its ok

but if I type http://localhost/search it shows a notice undefined index



2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:


i want matching...

but i try to get $query = $_GET[query]

and there appears a message:

*Notice*: Undefined index: query in 
*C:\www\was\application\controllers\FuncionariosController.php
* on line *81



*
2007/7/11, ViShap [EMAIL PROTECTED]:

 Hi josé!

 What kind of search should this be?  Full-Text or matching  (LIKE
 %$string% ) ?

 For Like execute a simple Query  select . from . LIKE %$string%  limit
 ...

 for full text i strongly recommend google-searching - many good articles
 about it  =)
 (i think also zend has sth in their tutorials-section ...

 It was when I viewed it in  Beginner Tutorials - Using MySQL Full-text-
 ...  (26.01.06 ^^)

 I hope i helped ya out!

 regards

 2007/7/11, José de Menezes Soares Neto [EMAIL PROTECTED]:
 
  Hi friends,
 
  I would like to make a search for search user details in my database,
  how do I start with it?
 
  Best regards,
 
  José de Menezes
 





Re: [fw-general] Searching database

2007-07-12 Thread José de Menezes Soares Neto

Thanks!

I have checked, but I am not good enough to see...

2007/7/12, [EMAIL PROTECTED] [EMAIL PROTECTED]:



Hi José,

Have you checked the manual for Zend_Db_Table?

?php
$table = new Bugs();
$where  = $table-getAdapter()-quoteInto('bug_status = ?', 'NEW');
$order  = 'bug_id';
// Return the 21st through 30th rows
$count  = 10;
$offset = 20;
$rows = $table-fetchAll($where, $order, $count, $offset);
?

This is outlined further at
http://framework.zend.com/manual/en/zend.db.table.html

-Ryan

On Thu, 12 Jul 2007 12:54:09 -0300, José de Menezes Soares Neto 
[EMAIL PROTECTED] wrote:
 everyone forget things :P

 can I limit the numbers of results of a query using fetchAll()?




 2007/7/11, ViShap [EMAIL PROTECTED]:

 ACK

 josé, look for tutorials and books to get the basics of php  =)

 good ressources are google, o´reilleys and of corse ZEND (articles and
 tutorials)!

 regards

 2007/7/12, till  [EMAIL PROTECTED]:
 
  On 7/11/07, ViShap  [EMAIL PROTECTED] wrote:
   (...)
   2007/7/11, José de Menezes Soares Neto  [EMAIL PROTECTED]:
(...)
 
  Guys,
 
  not to be mean - well forget that! ;-) But maybe a PHP primer is
  necessary here and this should be discussed off list?
 
  Regards,
  Till
 








[fw-general] Question about table querying

2007-07-12 Thread José de Menezes Soares Neto

Friends,

I have two tables:

Users ( Id, Name, Type_Id, Username, Password )

Types ( Id, TypeName )

And Type_Id refereer to field Id from table Users.

My query for retrieve information is

$users = new Users();
$users = $users-fetchAll( Name LIKE '$query' );
$users = $users-toArray();

But I need to show all fields from Users but with TypeName instead of
Type_Id.

What can I do?

Best Regards,

José


Re: [fw-general] Next StepForms

2007-07-10 Thread José de Menezes Soares Neto

Thanks to all of you!! I will take a look!

best regards,

José

2007/7/5, frederic wolf [EMAIL PROTECTED]:


Hello,

Did you check the PEAR's package named HTML_QuickForm_Controller ?

http://pear.php.net/package/HTML_QuickForm_Controller

I've used it for years, its features cover what you need. Maybe you
could have a look to take some ideas ?

Regards

fred

Sebastian Poręba a écrit :


 2007/7/3, José de Menezes Soares Neto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 Hi friends,

 I would like to parse a form into four steps (like desktop
 installations). But I don't know the best way to do it with zend
 framework...

 Does anybody could help me please?

 Best regards,

 José de Menezes



 Hi José,
 I'm writing a complete class for form development. My solution for
 steps was using Zend_Session. I create one namespace for each for on
 website. Then, every page of form is array in its namespace. It's
 especially useful when You want to provide jump back to page 2
 functionality - You can simply get previously added values from
 session data. I'll finish my class soon and post it here. Maybe it's
 not good enough to become Zend_Form, but may be useful.

 --
 Greetings,
 Sebastian Poreba




[fw-general] Forms

2007-07-10 Thread José de Menezes Soares Neto

Hi again friends,

I did a form, but when I submit it, if there is an error, ok, it shows me
the errors, but if success, the form goes back to a page (indicated by me),
but I would like to show a message of success, but I dont wanna create a
page for this, only a div or something like that (like alert(success!!),
but its too ugly).

Any suggestions for this?

best regards,

José de Menezes


[fw-general] Next StepForms

2007-07-03 Thread José de Menezes Soares Neto

Hi friends,

I would like to parse a form into four steps (like desktop installations).
But I don't know the best way to do it with zend framework...

Does anybody could help me please?

Best regards,

José de Menezes


[fw-general] Warning using fetchRow

2007-06-29 Thread José de Menezes Soares Neto

code:
$usuarios = $usuarios-fetchRow('usu_id='.$id);

warnings:
*Warning*: array_fill()
[function.array-fillhttp://localhost/was/funcionarios/editar/id/function.array-fill]:
Number of elements must be positive in *
C:\www\was\lib\Zend\Db\Table\Abstract.php* on line *678*
*Warning*: array_combine() expects parameter 2 to be array, boolean given in
*C:\www\was\lib\Zend\Db\Table\Abstract.php* on line *679

*what it could be?*
*


Re: [fw-general] Warning using fetchRow

2007-06-29 Thread José de Menezes Soares Neto

yes, it was it hahahaha!!!
nice, thanks!!



2007/6/29, Kevin Jordan [EMAIL PROTECTED]:


Seems like you don't have a primary key set up.

José de Menezes Soares Neto wrote:
 code:
 $usuarios = $usuarios-fetchRow('usu_id='.$id);

 warnings:
 *Warning*: array_fill() [function.array-fill
 http://localhost/was/funcionarios/editar/id/function.array-fill]:
 Number of elements must be positive in
 *C:\www\was\lib\Zend\Db\Table\Abstract.php* on line *678*
 *Warning*: array_combine() expects parameter 2 to be array, boolean
 given in *C:\www\was\lib\Zend\Db\Table\Abstract.php* on line *679

 *what it could be?*
 *





[fw-general] recovering and editing from two tables.

2007-06-12 Thread José de Menezes Soares Neto

Hi friends,

I have two tables users and clients. But users and clients have the
same form (but some fields for one and some for the other).

When I add, its ok. But when I edit some, the information cames only from
the table clients (and fills it fields) but the information from the table
users doesn't came and don't fill its fields...

Here is the code I use to recovery:

   $id = (int)$this-_request-getParam('id', 0);

   // Recupera os dados do cliente
   $clientes = $clientes-fetchRow('clie_id='.$id);
   $clientes = $clientes-toArray();
   extract($funcionarios);

   $smarty-assign('clientes', $clientes);

   // Recupera os dados de usuario (here is the problem)
   $usuarios = $usuarios-fetchRow('usu_id='.$id);
   $usuarios = $usuarios-toArray();
   extract($usuarios);

   $smarty-assign('usuarios', $usuarios);

Best regards,

José de Menezes


Re: [fw-general] Working with two or more tables

2007-05-07 Thread José de Menezes Soares Neto

Nice, but I have one more question:

If you have three tables, Users, UserAssociationWithJobs, Jobs... there is a
way to simple connect this tables for add, edit and delete actions?

Cause a User could have one or more jobs, and we have a table with the
possible jobs... and if you would like to add, edit and delete using SQL and
some php you could, but with ZF there is easier or similar ways??

best regards,

José de Menezes

2007/5/4, Bill Karwin [EMAIL PROTECTED]:


Actually, all you need for the table relationships to work is the
$_referenceMap in the dependent table's class definition.

The $_dependentTables variable is optional.  This is needed only if you
want to perform cascading UPDATE and DELETE operations in PHP code.  This is
not needed if you use constraints in your database to perform referential
integrity.  I recommend utilizing database constraints, it's safer and gives
better performance.

Regards,
Bill Karwin

 -Original Message-
 From: Maurice Fonk [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 04, 2007 5:23 PM
 To: José de Menezes Soares Neto
 Cc: fw-general@lists.zend.com
 Subject: Re: [fw-general] Working with two or more tables

 Hi again!

 Have a look at
 http://framework.zend.com/manual/en/zend.db.table.relationship
 s.html . I know it seems complicated at first, but you'll
 learn to appreciate it quickly. For your example, I could
 imagine that the table userinfo depends on the table user, so
 you'd put:

 protected $_dependentTables = array('Userinfo');

 in the class definition for User. Then you could use the
 magic function:

 $user-findUserinfo()

 on a User Row.

 MF

 José de Menezes Soares Neto wrote:
  Hi again my friends!
 
  Now, I need to work with two or more tables, each table has some
  information I need.
  For example, table USERS has the users, but I need too
 table USERINFO,
  which have the user information...
 
  I created a class that extends Zend_Db_Table_Abstract:
 
  class Users extends Zend_Db_Table_Abstract {
  protected $_name = 'users';
  }
 
  But, I would like to manage more tables, and get flexibility to
  combine then... these kind of things...
 
  Best regards,
 
  José


 --
 Maurice Fonk

 [EMAIL PROTECTED]
 http://naneau.nl/

 Scio me nihil scire





[fw-general] Retrieve ID Number

2007-05-04 Thread José de Menezes Soares Neto

Hi friends,

I am inserting a new record in a DB, but, I would like to retrieve the ID of
the new record...

How can I do that?

   $data = array(
   'fun_nome'= $fun_nome,
   'fun_cpf' = $fun_cpf,
   'fun_cep' = $fun_cep,
   'fun_observacoes' = $fun_observacoes,
   'fun_data'= date(Y-m-d h:i:s),
   );

   $funcionarios = new Funcionarios();
   $funcionarios-insert($data);
--- here!

best regards,

José de Menezes


[fw-general] Working with two or more tables

2007-05-04 Thread José de Menezes Soares Neto

Hi again my friends!

Now, I need to work with two or more tables, each table has some information
I need.
For example, table USERS has the users, but I need too table USERINFO, which
have the user information...

I created a class that extends Zend_Db_Table_Abstract:

class Users extends Zend_Db_Table_Abstract
{
   protected $_name = 'users';
}

But, I would like to manage more tables, and get flexibility to combine
then... these kind of things...

Best regards,

José


[fw-general] Form validation and error/success messages

2007-05-03 Thread José de Menezes Soares Neto

Hi friends,

1) I would like to make form validations using Zend Framework (not
Javascript), how to do this in the best way?

2) Other thing is, how to display errors and success messagens?

Thanks!

José de Menezes


[fw-general] New proposals

2007-04-27 Thread José de Menezes Soares Neto

Zend_Layout - A style defined by zend. Like windows, buttons, navigation...
everything preconfigurated for us! This is a way to increase produtivity
too, cause we expend a lot of time with layouts... I thought something like
http://mooglets.freewebsfarms.com :)

Zend_Ajax - A collection of ajax resources


Re: [fw-general] persistent ACL data

2007-04-26 Thread José de Menezes Soares Neto

Hi Raul,

I am using SESSION for the user type (member, guest, admin...etc)
But you can user Zend_Register too!

Best Regards,

José de Menezes

2007/4/26, Raul Gomez [EMAIL PROTECTED]:


hello, i am new to zend framework. I am doing an autenthication system
with zend auth and acl, following this tutorial
http://devzone.zend.com/node/view/id/1665
its working with databases, but how can i keep the acl data persistent
without calling database for it again, like auth does it with some
auth::getInstance in the bootstrap so you just fill that only once in
the authentication so you dont have to carry again the auth info
everytime, right now i am calling the database for acl info everytime i
enter a page.
if someone working applying databases in an auth/acl excenario and can
show me would be nice.

thank you.





[fw-general] my own classes

2007-04-25 Thread José de Menezes Soares Neto

1) where in the project is the best place to put my on classes??

2) where in the project is the best place to call the classes??

3) some classes I will use a lot, there is a place to put them only once and
use it in all files created?


[fw-general] how to assign username for smarty, from login?

2007-04-23 Thread José de Menezes Soares Neto

hi,

i am trying to assign username for use it in templates, like header.tpl and
footer.tpl
but, i don't know how to assign it only one time (in logon proccess) and use
it in all templates that i want.

i tried to use session, but didnt work...

does someone could help me?

best regards,

José de Menezes


[fw-general] Re: how to assign username for smarty, from login?

2007-04-23 Thread José de Menezes Soares Neto

well, I was thinking, If I could get username from zend_auth, then i only
have to print it using assign from smarty.

but i dont know how to get it...

2007/4/21, José de Menezes Soares Neto [EMAIL PROTECTED]:


hi,

i am trying to assign username for use it in templates, like header.tpland
footer.tpl
but, i don't know how to assign it only one time (in logon proccess) and
use it in all templates that i want.

i tried to use session, but didnt work...

does someone could help me?

best regards,

José de Menezes



[fw-general] something about zend_acl

2007-04-23 Thread José de Menezes Soares Neto

hi,

zend framework uses controllers, each controller has a lot of actions, each
action is acessible by groups...
so, with zend_acl, what i do is allow / deny access to these actions??

best regards,

José


[fw-general] how to implement?

2007-04-23 Thread José de Menezes Soares Neto

Hi friends,

I would like to implement zend_acl in the zend_auth tutorial...
But I really dont know how to!

I was thinking of tree roles (guest, member and admin)

guest - only see the albums
member - can add albums but can't delete them.
admin - can do everything

The resources are the actions builded by the Akra's tutorial?
http://akrabat.com/zend-auth-tutorial/

Could someone give me a light? Or a source code? Or a book? :P

Best regards,

José de Menezes


[fw-general] zend_auth error

2007-04-20 Thread José de Menezes Soares Neto

hi friends,
does anybody knows what is happening here? (I am following the zend_auth
tutorial, but with smarty modifications)

*Fatal error*: Uncaught exception 'Zend_Session_Exception' with message
'Unwritable session.save_path: ' in C:\www\projeto\lib\Zend\Session.php:212
Stack trace: #0 C:\www\projeto\lib\Zend\Session.php(355):
Zend_Session::setOptions(Array) #1
C:\www\projeto\lib\Zend\Session\Namespace.php(92): Zend_Session::start(true)
#2 C:\www\projeto\lib\Zend\Auth\Storage\Session.php(85):
Zend_Session_Namespace-__construct('Zend_Auth') #3
C:\www\projeto\lib\Zend\Auth.php(92):
Zend_Auth_Storage_Session-__construct() #4
C:\www\projeto\lib\Zend\Auth.php(121): Zend_Auth-getStorage() #5
C:\www\projeto\application\controllers\AuthController.php(46):
Zend_Auth-authenticate(Object(Zend_Auth_Adapter_DbTable)) #6
C:\www\projeto\lib\Zend\Controller\Action.php(488):
AuthController-loginAction() #7
C:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(214):
Zend_Controller_Action-dispatch('loginAction') #8
C:\www\projeto\lib\Zend\Controller\Front.php(753):
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
Obj in *C:\www\projeto\lib\Zend\Session.php* on line *212
*
best regards,

José de Menezes*
*


Re: [fw-general] zend_auth error

2007-04-20 Thread José de Menezes Soares Neto

i didnt find this. here could i look?

the tutorial link:
http://akrabat.com/wp-content/uploads/getting-started-with-zend-auth_104.pdf

2007/4/20, Matthew Weier O'Phinney [EMAIL PROTECTED]:


-- José de Menezes Soares Neto [EMAIL PROTECTED] wrote
(on Friday, 20 April 2007, 01:09 PM -0300):
 does anybody knows what is happening here? (I am following the zend_auth
 tutorial, but with smarty modifications)

 Fatal error: Uncaught exception 'Zend_Session_Exception' with message
 'Unwritable session.save_path: ' in
C:\www\projeto\lib\Zend\Session.php:212

There's the error right there. Check where your session.save_path INI
setting points to, and make sure the directory is writable by your web
server user.

--
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/



Re: [fw-general] zend_auth error

2007-04-20 Thread José de Menezes Soares Neto

I can't find this please, someone could help me?? where can I fix this??


2007/4/20, José de Menezes Soares Neto [EMAIL PROTECTED]:


i didnt find this. here could i look?

the tutorial link:
http://akrabat.com/wp-content/uploads/getting-started-with-zend-auth_104.pdf


2007/4/20, Matthew Weier O'Phinney [EMAIL PROTECTED]:

 -- José de Menezes Soares Neto [EMAIL PROTECTED] wrote
 (on Friday, 20 April 2007, 01:09 PM -0300):
  does anybody knows what is happening here? (I am following the
 zend_auth
  tutorial, but with smarty modifications)
 
  Fatal error: Uncaught exception 'Zend_Session_Exception' with message
  'Unwritable session.save_path: ' in
 C:\www\projeto\lib\Zend\Session.php:212

 There's the error right there. Check where your session.save_path INI
 setting points to, and make sure the directory is writable by your web
 server user.

 --
 Matthew Weier O'Phinney
 PHP Developer| [EMAIL PROTECTED]
 Zend - The PHP Company   | http://www.zend.com/





Re: [fw-general] zend_auth error

2007-04-20 Thread José de Menezes Soares Neto

thanks, it works!!
i didint know that sessions was saved at disc...

2007/4/20, Darby Felton [EMAIL PROTECTED]:


Hi José,

Ensure that in your php.ini the session.save_path directory is writable.
If you do not have session.save_path in your php.ini, then set it to
some directory (e.g., /tmp) and make sure the directory is writable.

Best regards,
Darby

José de Menezes Soares Neto wrote:
 I can't find this please, someone could help me?? where can I fix
this??


 2007/4/20, José de Menezes Soares Neto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 i didnt find this. here could i look?

 the tutorial link:

http://akrabat.com/wp-content/uploads/getting-started-with-zend-auth_104.pdf
 
http://akrabat.com/wp-content/uploads/getting-started-with-zend-auth_104.pdf


 2007/4/20, Matthew Weier O'Phinney [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:

 -- José de Menezes Soares Neto [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote
 (on Friday, 20 April 2007, 01:09 PM -0300):
  does anybody knows what is happening here? (I am following the
 zend_auth
  tutorial, but with smarty modifications)
 
  Fatal error: Uncaught exception 'Zend_Session_Exception' with
 message
  'Unwritable session.save_path: ' in
 C:\www\projeto\lib\Zend\Session.php:212

 There's the error right there. Check where your
 session.save_path INI
 setting points to, and make sure the directory is writable by
 your web
 server user.

 --
 Matthew Weier O'Phinney
 PHP Developer| [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 Zend - The PHP Company   | http://www.zend.com/






Re: [fw-general] question about zend_db

2007-04-10 Thread José de Menezes Soares Neto

Nice!! Thanks for all!!

2007/4/9, Alexander Netkachev [EMAIL PROTECTED]:


Hi,

For me it looks like:
1. Portability. The SQL generation depends on the data adapter used. So,
when you change database of your app from MySQL to MS SQL you probably will
not change anything in your selects.
2. Manageability. Just what Bill has wrote about. I've used such technique
for building complex SQL's and it works great.
3. Security. What Ed has wrote about. Using parameters of Zend_Db classes
makes your code more secured and readable.
4. Standardization. This technique brings standard to SQL building and
instead of string concatenation, which each developer does in his own way,
we have how the nice OOP API for SQL building.

Sincerely,

On 4/8/07, José de Menezes Soares Neto [EMAIL PROTECTED] wrote:

 WHY USE:

 $select = $db-select()


 -from(array('p' = 'products'), array('product_id', 'product_name'))

 -limit(10, 20);


 INSTEAD OF:

 SELECT p.product_id, p.product_name
 FROM products AS p
 LIMIT 10, 20



 This is a question, cause for me look much more easier to use the sql 
command...




--
Alexander
http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and
Ajax.


[fw-general] Problem with caracters ã, é, õ...

2007-04-08 Thread José de Menezes Soares Neto

Hi friends,

When I insert some words like falcão, furacão, José, crachá... etc.
in BD, the system inserts it like:

falcão, furacão, JosÃ(c) and crachá... for me its wrong...

And in the search engine, when I type the words, the system gives me the
error:

*Fatal error* : Uncaught exception 'Zend_Controller_Exception' with message
'SearchController::furace3oAction() does not exist and was not trapped in
__call()' in C:\www\projeto\lib\Zend\Controller\Action.php:474 Stack trace:
#0 [internal function]: Zend_Controller_Action-__call('furace3oAction',
Array) #1 C:\www\projeto\lib\Zend\Controller\Action.php(488):
SearchController-furace3oAction() #2
C:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(214):
Zend_Controller_Action-dispatch('furace3oAction') #3
C:\www\projeto\lib\Zend\Controller\Front.php(753):
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http)) #4 C:\www\projeto\index.php(61):
Zend_Controller_Front-dispatch() #5 {main} thrown in *
C:\www\projeto\lib\Zend\Controller\Action.php* on line * 474
*
Does anybody know how to correct these two errors?

Best regards,

José


[fw-general] Best way to make DB consults

2007-04-05 Thread José de Menezes Soares Neto
Does anybody know how to make the best DB consults using Zend_Db?

To extract only the necessary information and to save computer sources?

Re: [fw-general] search friendly

2007-04-04 Thread José de Menezes Soares Neto
Hi Matthew,

I could not resolve this problem alone... I used the code for /search/test/ and 
the error:

Fatal error: Uncaught exception 'Zend_Controller_Exception' with message 
'SearchController::okAction() does not exist and was not trapped in __call()' 
in D:\www\projeto\lib\Zend\Controller\Action.php:474 Stack trace: #0 [internal 
function]: Zend_Controller_Action-__call('okAction', Array) #1 
D:\www\projeto\lib\Zend\Controller\Action.php(488): 
SearchController-okAction() #2 
D:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(214): 
Zend_Controller_Action-dispatch('okAction') #3 
D:\www\projeto\lib\Zend\Controller\Front.php(753): 
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
 Object(Zend_Controller_Response_Http)) #4 D:\www\projeto\index.php(61): 
Zend_Controller_Front-dispatch() #5 {main} thrown in 
D:\www\projeto\lib\Zend\Controller\Action.php on line 474

The code is:

$router = $front-getRouter();
$searchRoute = new Zend_Controller_Router_Route_Static(
'search/:query',
array('controller' = 'search', 'action' = 'index')
);
$router-addRoute('search', $searchRoute);


Could you help me saying what is wrong?? I sent you my index.php in the other 
email...

  - Original Message - 
  From: Matthew Weier O'Phinney 
  To: fw-general@lists.zend.com 
  Sent: Tuesday, April 03, 2007 11:55 AM
  Subject: Re: [fw-general] search friendly


  -- José de Menezes Soares Neto [EMAIL PROTECTED] wrote
  (on Tuesday, 03 April 2007, 10:33 AM -0300):
   I've made a searchAction in IndexController. But, when I do a search, the 
url
   shown is:

   http://localhost/project/index/search?query=test

   And I was wondering if it could be:

   http://localhost/project/search?query=test

   Cause it is more beautiful. 

  So either create a new route for this:

  $router = $front-getRouter();
  $searchRoute = new Zend_Controller_Router_Route_Static(
  'search',
  array('controller' = 'index', 'action' = 'search')
  );
  $router-addRoute('search', $searchRoute);

  OR create a new controller, SearchController, with indexAction() that
  performs the search.

   In other way, the best way I think, the url could be:

   http://localhost/project/search/test

   And it calls the search engine and lists all the results for the word test

  Easy: create a custom route:

  $router = $front-getRouter();
  $searchRoute = new Zend_Controller_Router_Route_Static(
  'search/:query',
  array('controller' = 'search', 'action' = 'index')
  );
  $router-addRoute('search', $searchRoute);

   The problem for this last url is the form submission, cause it constructs
   search?test and not search/test

  You're not going to be able to get a form submission to append to the
  url path unless you use javascript; forms either populate the query
  string ($_GET in PHP) or POST content ($_POST in PHP). I'd suggest *not*
  using javascript, and instead doing something like:

  form action=/search method=get
  input type=text name=query value= size=15 maxlength=256 /
  input type=submit name=search value=Search /
  /form

  This will work with either of the routes listed above, and will work
  with javascript as well.

   Maybe using a javascript... does anybody knows where I can found about it?

  There are plenty of tutorials on javascript out there -- google is your
  friend. :-)


   - Original Message -
   From: José de Menezes Soares Neto
   To: Alexander Veremyev
   Cc: fw-general@lists.zend.com
   Sent: Tuesday, April 03, 2007 9:50 AM
   Subject: Re: [fw-general] search engine
   
   Nice! And it increases the performance??


   
   - Original Message -
   From: Alexander Veremyev
   To: José de Menezes Soares Neto
   Cc: fw-general@lists.zend.com
   Sent: Tuesday, April 03, 2007 9:47 AM
   Subject: Re: [fw-general] search engine
   
   Hi José,
   
   There are two possibilities:
   1) As it already was mentioned by Joshua, it's possible to use your
   database capabilities for full-text searching or use any other tool.
   
   2) Use Zend_Search_Lucene as full-text index in addition to you
   relational database.
   It's not data duplication. You can store only index information 
without
   storing field values.
   Data from your relational database can be indexed absolutely the 
same
   way you can index filesystem data.
   
   Just use 'SELECT * ...' instead of fread() :)
   
   
   With best regards,
   Alexander Veremyev.
   
   
   José de Menezes Soares Neto wrote:
I am trying to explain what I want in a simple way...

I want to create a search engine not for files, but for a database

Re: [fw-general] search friendly

2007-04-03 Thread José de Menezes Soares Neto
Very nice answers, but I am getting a little problem cause I am newbie in ZF.

I will try your suggestion for urls like

http://localhost/project/search/test

But I dont know where in the project I have to put the code above (index.php? 
SearchController.php?):

$router = $front-getRouter();
$searchRoute = new Zend_Controller_Router_Route_Static(
'search/:query',
array('controller' = 'search', 'action' = 'index')
);
$router-addRoute('search', $searchRoute);

So, I tried to put at index.php and I got this error:

Fatal error: Uncaught exception 'Zend_Controller_Exception' with message 
'SearchController::okAction() does not exist and was not trapped in __call()' 
in D:\www\projeto\lib\Zend\Controller\Action.php:474 Stack trace: #0 [internal 
function]: Zend_Controller_Action-__call('okAction', Array) #1 
D:\www\projeto\lib\Zend\Controller\Action.php(488): 
SearchController-okAction() #2 
D:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(214): 
Zend_Controller_Action-dispatch('okAction') #3 
D:\www\projeto\lib\Zend\Controller\Front.php(753): 
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
 Object(Zend_Controller_Response_Http)) #4 D:\www\projeto\index.php(61): 
Zend_Controller_Front-dispatch() #5 {main} thrown in 
D:\www\projeto\lib\Zend\Controller\Action.php on line 474

I don´t know what to do exactly... My index.php is attached...

Thanks very much again



  - Original Message - 
  From: Matthew Weier O'Phinney 
  To: fw-general@lists.zend.com 
  Sent: Tuesday, April 03, 2007 11:55 AM
  Subject: Re: [fw-general] search friendly


  -- José de Menezes Soares Neto [EMAIL PROTECTED] wrote
  (on Tuesday, 03 April 2007, 10:33 AM -0300):
   I've made a searchAction in IndexController. But, when I do a search, the 
url
   shown is:

   http://localhost/project/index/search?query=test

   And I was wondering if it could be:

   http://localhost/project/search?query=test

   Cause it is more beautiful. 

  So either create a new route for this:

  $router = $front-getRouter();
  $searchRoute = new Zend_Controller_Router_Route_Static(
  'search',
  array('controller' = 'index', 'action' = 'search')
  );
  $router-addRoute('search', $searchRoute);

  OR create a new controller, SearchController, with indexAction() that
  performs the search.

   In other way, the best way I think, the url could be:

   http://localhost/project/search/test

   And it calls the search engine and lists all the results for the word test

  Easy: create a custom route:

  $router = $front-getRouter();
  $searchRoute = new Zend_Controller_Router_Route_Static(
  'search/:query',
  array('controller' = 'search', 'action' = 'index')
  );
  $router-addRoute('search', $searchRoute);

   The problem for this last url is the form submission, cause it constructs
   search?test and not search/test

  You're not going to be able to get a form submission to append to the
  url path unless you use javascript; forms either populate the query
  string ($_GET in PHP) or POST content ($_POST in PHP). I'd suggest *not*
  using javascript, and instead doing something like:

  form action=/search method=get
  input type=text name=query value= size=15 maxlength=256 /
  input type=submit name=search value=Search /
  /form

  This will work with either of the routes listed above, and will work
  with javascript as well.

   Maybe using a javascript... does anybody knows where I can found about it?

  There are plenty of tutorials on javascript out there -- google is your
  friend. :-)


   - Original Message -
   From: José de Menezes Soares Neto
   To: Alexander Veremyev
   Cc: fw-general@lists.zend.com
   Sent: Tuesday, April 03, 2007 9:50 AM
   Subject: Re: [fw-general] search engine
   
   Nice! And it increases the performance??


   
   - Original Message -
   From: Alexander Veremyev
   To: José de Menezes Soares Neto
   Cc: fw-general@lists.zend.com
   Sent: Tuesday, April 03, 2007 9:47 AM
   Subject: Re: [fw-general] search engine
   
   Hi José,
   
   There are two possibilities:
   1) As it already was mentioned by Joshua, it's possible to use your
   database capabilities for full-text searching or use any other tool.
   
   2) Use Zend_Search_Lucene as full-text index in addition to you
   relational database.
   It's not data duplication. You can store only index information 
without
   storing field values.
   Data from your relational database can be indexed absolutely the 
same
   way you can index filesystem data.
   
   Just use 'SELECT * ...' instead of fread() :)
   
   
   With best regards,
   Alexander Veremyev

[fw-general] search engine

2007-04-02 Thread José de Menezes Soares Neto
hi friends,
how to create a search engine using zend framework?? 

i have a database with a lot of products, and when someone type notebook for 
example, it searchs title and description fields.

best regards,

José de Menezes

Re: [fw-general] search engine

2007-04-02 Thread José de Menezes Soares Neto
Hi,

But I already have a database, and this article shows how to search an index 
created by zend_search_lucene

So, I need to create a index from my database, and this is not what they 
explain...

Thanks!

  - Original Message - 
  From: Alexander Veremyev 
  To: José de Menezes Soares Neto 
  Cc: fw-general@lists.zend.com 
  Sent: Monday, April 02, 2007 1:33 PM
  Subject: Re: [fw-general] search engine


  Hi,

  It looks like you need Zend_Search_Lucene component to be used 
  (http://framework.zend.com/manual/en/zend.search.html).

  Some number of Zend Search Lucene tutorials can be found here - 
  http://www.zftutorials.com/zend-search/


  With best regards,
  Alexander Veremyev.


  José de Menezes Soares Neto wrote:
   hi friends,
   how to create a search engine using zend framework??

   i have a database with a lot of products, and when someone type 
   notebook for example, it searchs title and description fields.

   best regards,

   José de Menezes


[fw-general] problem with tutorial 0.9.1

2007-03-26 Thread José de Menezes Soares Neto
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 
'index\index.phtml' not found in path' in 
D:\www\projeto\lib\Zend\View\Abstract.php:595 Stack trace: #0 
D:\www\projeto\lib\Zend\View\Abstract.php(525): 
Zend_View_Abstract-_script('index\index.pht...') #1 
D:\www\projeto\lib\Zend\Controller\Action.php(218): 
Zend_View_Abstract-render('index\index.pht...') #2 
D:\www\projeto\application\controllers\IndexController.php(16): 
Zend_Controller_Action-render() #3 
D:\www\projeto\lib\Zend\Controller\Action.php(488): 
IndexController-indexAction() #4 
D:\www\projeto\lib\Zend\Controller\Dispatcher\Standard.php(214): 
Zend_Controller_Action-dispatch('indexAction') #5 
D:\www\projeto\lib\Zend\Controller\Front.php(753): 
Zend_Controller_Dispatcher_Standard-dispatch(Object(Zend_Controller_Request_Http),
 Object(Zend_Controller_Response_Http)) #6 D:\www\projeto\index.php(35): 
Zend_Controller_Front-dispatch() #7 {main} thrown in 
D:\www\projeto\lib\Zend\View\Abstract.php on line 595





Look, the Zend_View try to find index\index.phtml and not index.phtml...

  1   2   >