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
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
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
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
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
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
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
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
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
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
in most situations i need alnum/alpha filters to allow space.
is there a way to allow space when using alnum/alpha filters?
Aljosa
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
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
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(
is there any difference in using MYSQLI or PDO_MYSQL?
Aljosa
is there any difference in using MYSQLI or PDO_MYSQL?
Aljosa
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
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
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
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
20 matches
Mail list logo