[fw-general] Zend_Filter_Alnum removes non-ascii characters

2008-08-19 Thread Aljosa Mohorovic
i use "$alnum_filter = new Zend_Filter_Alnum(true);" and when i use filter method non-ascii chars are removed. is there a way to preserve some chars that i need? Aljosa Mohorovic

Re: [fw-general] Zend_1.5.0PR/Db/Select correlation error?

2008-02-25 Thread Aljosa Mohorovic
On Sat, Feb 23, 2008 at 8:25 PM, Pieter Kokx <[EMAIL PROTECTED]> wrote: > It is not possible to use names like 'Zend_1.5.0PR' as the library > folder where Zend is in. > > That's because ZF is using hard-coded require statements to 'Zend' folders. i changed folder name to Zend, that didn't help

[fw-general] Zend_1.5.0PR/Db/Select correlation error?

2008-02-23 Thread Aljosa Mohorovic
i get this error: --- You cannot define a correlation name 'i' more than once CODE: 0 FILE: /[...]/Zend_1.5.0PR/Db/Select.php --- when i do this (this is example code that produces error i get): --- $select = $tbl->select()->where('deleted=?', 0); $this->view->items = $current->findManyToManyRowse

Re: [fw-general] Zend_Controller_Action::render - difference between ZF 1.5PR and 1.0.3

2008-02-01 Thread Aljosa Mohorovic
On Jan 31, 2008 2:59 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > This looks like a definite error. We modified the ViewRenderer to use > Zend_Filter_Inflector for the 1.5 release, and it looks like we didn't > take into account directory separators as part of inflection -- a pretty > m

[fw-general] Zend_Controller_Action::render - difference between ZF 1.5PR and 1.0.3

2008-01-31 Thread Aljosa Mohorovic
ZF 1.5PR - when i call render() method on controller ( extends Zend_Controller_Action ) i get "script 'layout-admin.phtml' not found in path" ZF 1.0.3 - page is rendered as expected $this->render('layout/admin', null, true); what changed? are there any backwards incompatible docs? Aljosa

Re: [fw-general] findManyToManyRowset - howto filter results

2008-01-31 Thread Aljosa Mohorovic
On Jan 30, 2008 3:21 PM, Pieter <[EMAIL PROTECTED]> wrote: > I just want to clearify what Mohamed wrote. You should use the > $table->select() method to get the $select variable. This is an instance of > Zend_Db_Table_Select, what you can give as parameter to all the fetch > methods of Zend_Db_Tab

[fw-general] findManyToManyRowset - howto filter results

2008-01-30 Thread Aljosa Mohorovic
if i have: - tbl_1 - tbl_2 - intersection_tbl with: $items = $tbl_1_item->findManyToManyRowset('tbl_2', 'intersection_tbl'); result is as expected but how can i add "filter" so that $items contains only rows from tbl_2 with column "public=1"? Aljosa

[fw-general] Zend_Filter_Alnum with -,!,_,...

2008-01-08 Thread Aljosa Mohorovic
is it possible to use Zend_Filter_Alnum with additional chars like "-,!,_,..." ? my example is that i have a book title which can contain additional chars, should i write a new filter or can i use alnum for this? Aljosa

[fw-general] findManyToManyRowset - where/order/limit/offset

2007-12-17 Thread Aljosa Mohorovic
i can't find any example on how to add where, order by and limit/offset conditions when using findManyToManyRowset(). so i would like to do where/order/limit/offset for findManyToManyRowset() similar to fetchAll(), any docs/examples? Aljosa

[fw-general] remove many-to-many relationship

2007-12-07 Thread Aljosa Mohorovic
is there a better way to remove many-to-many relationship, not records, but relation in intersection table? $db = $model->getTable()->getAdapter(); $db->delete("intersect_tbl", "item1_id=".$model->id); Aljosa

[fw-general] Zend_Filter Alnum/Alpha allow space

2007-11-15 Thread Aljosa Mohorovic
in most situations i need alnum/alpha filters to allow space. is there a way to allow space when using alnum/alpha filters? Aljosa

Re: [fw-general] Zend/Db/Statement/Mysqli.php "Fatal error"

2007-11-01 Thread Aljosa Mohorovic
On 11/1/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > -- Aljosa Mohorovic <[EMAIL PROTECTED]> wrote > (on Thursday, 01 November 2007, 02:23 PM +0100): > > i use Zend_Db_Table_Abstract and this error occurs when i call fetchAll(): > > > > Fata

[fw-general] Zend/Db/Statement/Mysqli.php "Fatal error"

2007-11-01 Thread Aljosa Mohorovic
i use Zend_Db_Table_Abstract and this error occurs when i call fetchAll(): Fatal error: Out of memory (allocated 4718592) (tried to allocate 4294967294 bytes) in /home/aljosa/[...]/library/Zend/Db/Statement/Mysqli.php on line 227 i guess this is probably a bug in mysqli driver but i need to use m

[fw-general] howto save data after Zend_Filter_Input::isValid()?

2007-09-28 Thread Aljosa Mohorovic
so i have model (Zend_Db_Table_Row) and i pass data from model to Zend_Filter_Input ($model->toArray()) and after i check if $input->isValid() returns true i would like to save model with data from Zend_Filter_Input because filters and validators are already applied. Zend_Filter_Input has setData(

[fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Aljosa Mohorovic
is there any difference in using MYSQLI or PDO_MYSQL? Aljosa

[fw-general] PDO_MYSQL vs. MYSQLI

2007-09-28 Thread Aljosa Mohorovic
is there any difference in using MYSQLI or PDO_MYSQL? Aljosa

[fw-general] Validate/Filter decimal number for currency?

2007-09-26 Thread Aljosa Mohorovic
is there any validator/filter i can use for currency? i need something to check if submitted data is valid number for currency/money. ZF contains Int, Float, Digits - which one to use? Aljosa

[fw-general] set locale for errors/messages in Zend_Filter_Input

2007-09-25 Thread Aljosa Mohorovic
is there a way to change locale on global level so that when i getMessages() from Zend_Filter_Input it's not in english but in some other language? Aljosa

Re: [fw-general] pages/edit/1 => controller/action/? problem

2007-08-08 Thread Aljosa Mohorovic
thanks, i was looking for this example. On 8/7/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > Please read up on how to create custom routes using the router: > > > http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes > > In the example you gi

[fw-general] pages/edit/1 => controller/action/? problem

2007-08-07 Thread Aljosa Mohorovic
what to do if i want my url to look like "pages/edit/1" and then it translates to: controller => pages action/method => edit and finally some var inside controller/method that contains "1" or whatever is located after action/method? how can i accomplish this? Aljosa Mohorovic