Re: [fw-general] Re: Forwarding - Redirecting

2007-04-03 Thread Stephan Stapel
Hi! I asked myself why _forward() and _redirect() haven't the same footprint. As they are relatives without doubt, this would make the interface more consistent. Why not simply make the function look like this: _redirect($action, $controller = null, $module = null, $params = null); ? I guess

[fw-general] Zend_Db pdo_mssql error

2007-04-03 Thread Roman1975
php 5.2.1 Mistake at use Zend_Db pdo_mssql // conect ok $db = $model-getDb(); $select = $db-select(); $select-from('Firms'); $db-fetchAll($select); Error: Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'SQLSTATE[HY000]:

Re: [fw-general] Zend_Parser

2007-04-03 Thread padraic . brady
Theoretically, if there were something like Zend_String, it could implement Zend_Parser_DataSource_Interface and Zend_String_Parser could implement Zend_Parser_Interface. For say, Zend_String, the interfaces and abstracts are around what one would expect. Main difference though which might cloud

[fw-general] Zend_Db mysqli

2007-04-03 Thread Vladas Dirzys
Hi! where is not possible to change mysql port using mysqli adapter. i've changed Zend_Db_Adapter_Mysqli // function _connect() to this: protected function _connect() { if ($this-_connection) { return; } +$port = ($this-_config['port']) ?

Re: [fw-general] Zend_Parser

2007-04-03 Thread Alexander Veremyev
Hi Kevin, GIF support would be good feature. The difficulty is that GIF is not supported by PDF as internal format. So it needs a little bit more processing. There was no any activities in Zend_Pdf for some time. So your patch could be applied to current SVN version. (I have some strange

Re: [fw-general] zend_session question

2007-04-03 Thread Raphael Stolt
Have you checked the session.save_path in your php.ini. I ran in the same problem when updating from ZF 0.8 to 0.9.1, because in my php.ini it wasn't set and so also not writeable. Setting the path would also switch to the use of file-based session storage and retrieval. Hope this is a starting

[fw-general] Very basic question : how to download a file ?

2007-04-03 Thread fred wolf
Hi Zenders, this is a very basic thing, but I can't make it working out. How can I download a pdf file for example ? I tried to use Zend_Http and set an header with content type application/pdf, then I got the content file then push it in the Zend_Http_Response, but It doesn't work. I'm stuck

Re: [fw-general] Zend_Parser

2007-04-03 Thread Kevin McArthur
The factory is going, but the other parsers arent ready so changing the api right now would break jpeg/tiff support and leave only png. I assume matt's GIF parser can extract the bitmap data from the gif, which should then be embeddable in the doc (similar how i had to parse png data) K

Re: [fw-general] Re: Forwarding - Redirecting

2007-04-03 Thread Nico Edtinger
Won't work if you have a different URI design. I.e. we use http:// example.org/index.php/contact.add.import instead of http:// example.org/index.php/contact/add/import or http://example.org/ index.php/contact_add/import or ... as controller (+ module) name. If the default Action class is

Re: [fw-general] Re: Forwarding - Redirecting

2007-04-03 Thread Gavin Vess
Hi Stephan, I have not seen any specific problems mentioned with the functionality of _forward() and _redirect(). However, I have seen open source applications that ambiguously used the word forward to perform HTTP redirection. Words used ambiguously can be confusing. Maybe the names are

[fw-general] Params

2007-04-03 Thread Ian Warner
Hi I am using $this-_getParam('name') which is an array from a form post It print out: //POST array(3) { // [salutation] = string(3) Mr. // [first_name] = string(10) Ian Warner // [last_name] = string(10) Ian Warner //} How do I extract just the salutation from this? Dead easy problem

Re: [fw-general] search friendly

2007-04-03 Thread Gavin Vess
Matthew Weier O'Phinney wrote: The problem for this last url is the form submission, cause it constructs search?test and not search/test 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

Re: [fw-general] Params

2007-04-03 Thread Matthew Weier O'Phinney
-- Ian Warner [EMAIL PROTECTED] wrote (on Tuesday, 03 April 2007, 04:35 PM +0100): I am using $this-_getParam('name') which is an array from a form post It print out: //POST array(3) { // [salutation] = string(3) Mr. // [first_name] = string(10) Ian Warner // [last_name] =

Re: [fw-general] zend_session question

2007-04-03 Thread Gavin Vess
Hi Tomek, I proposed adding an option to disable the check for save_path previously. I attached the test patch to the issue below. If you set save_path to anything writable the exception will not occur. Setting a save_path has no effect, if you are not using the default files-based save

Re: [fw-general] map domain name to module

2007-04-03 Thread martin sarsale
Michael Depetrillo wrote: Hello Everyone Has anyone written any code to map a domain name to a specific module? I would like to be able to have a admin-specific-domain.com http://admin-specific-domain.com parked on top of my application and then route all requests to the admin module.

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();

Re: [fw-general] Zend_Stream (was Zend_Parser)

2007-04-03 Thread Kevin McArthur
Matt, So long as it works i'm very flexible. However, do take a look at the plans for improving the memory handling of zend pdf streams. Loading data from a parser, then into like 5 or 6 classes is going to suck performance (and memory) wise when using these on larger binary files. The

[fw-general] Zend_Filter_Input on ZFW 0.9.1

2007-04-03 Thread Juan Felipe Alvarez Saldarriaga
Hey :). Im trying to migrate from ZFW 0.8 to 0.9.1 and I saw that I have a lot of issues there, for example, Zend_Input_Filter was dropped :S, so how can I filter the POST or GET methods ? cause actually im doing something like this: class MyControllerController extends

[fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Dave Dash
So I've indexed a document that has a field called url filled with URLs (e.g. http://reviewsby.us/, http://spindrop.us/, http://www.nabble.com, etc, etc). I can find these in Luke just fine by searching for the url (without the http:// in fact) But in my ZSL 0.9.1 app I get nothing. If I

Re: [fw-general] Zend_Filter_Input on ZFW 0.9.1

2007-04-03 Thread Ed Finkler
On 4/3/07, Juan Felipe Alvarez Saldarriaga [EMAIL PROTECTED] wrote: Well, so I need to to filter all data one per one ? Cause when I was doing it with Zend_Filter_Input the result object was a protect object of the ZFW, there's a way to do this ? or just making a $this-getRequest on the

[fw-general] Re: Re: Forwarding - Redirecting

2007-04-03 Thread Joshua Ross
Thanks Gavin, that helped to clear things up. -Joshua- Gavin Vess [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Joshua, Despite the notices at the top of the Wikipedia entry, I think you will find what you are looking for here:

Re: [fw-general] search engine

2007-04-03 Thread Alexander Veremyev
Performance of what? ;) To talk about increasing (or decreasing) performance we should have things to compare. Relational database doesn't give full-text search capabilities. Using LIKE SQL clause can't give some features (like sorting result set by relevance) and needs full data scan (so

Re: [fw-general] Zend_Parser

2007-04-03 Thread Alexander Veremyev
Kevin McArthur wrote: The factory is going, but the other parsers arent ready so changing the api right now would break jpeg/tiff support and leave only png. Could we add only an API and use old implementation through this API? (So it will work as wrapper) I assume matt's GIF parser can

Re: [fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Alexander Veremyev
Hi Dave, Could you describe field type used for URL (in context of this description - http://framework.zend.com/manual/en/zend.search.html#zend.search.index-creation.understanding-field-types) and give an example of search query? With best regards, Alexander Veremyev. Dave Dash wrote:

Re: [fw-general] Zend_Parser

2007-04-03 Thread Kevin McArthur
the new api looks like this.. $image = Zend_Pdf_Image::imageWithPath($pathtofile); It will use the new parsers and the filename (should be mime detecting) to determine what Zend_Pdf_FileParser_Image derived object to use on a Zend_Pdf_FileParserDataSource_File resource.. It was done this way

Re: [fw-general] Zend Search Lucene: Searching for URLs

2007-04-03 Thread Dave Dash
You bet. It's ITS/ Indexed Tokenized Stored (like most of my fields). Here's the query logic: public function executeSearch() { $query = strtolower($this-getRequestParameter('q')); $hits = array();