Re: [fw-general] question about zend_db

2007-04-08 Thread Ed Finkler
On 4/8/07, Bill Karwin <[EMAIL PROTECTED]> wrote: For simple cases, it is certainly easier to write the SQL yourself, if you are comfortable writing SQL. Adding to what Bill said, even with simple cases, you should be using prepared statements whenever you use PHP data inside your SQL. For

Re: [fw-general] caracters ã, é, õ. ..

2007-04-08 Thread Maurice Fonk
Hello José What you are describing is typically a result of encoding problems. Looking at the words you're trying to use, you will probably want to use a unicode character set (utf-8, for instance). Unicode is a multi-byte character set. Traditional ASCII only uses a single byte to store a c

Re: [fw-general] Example for ZF-1214 changes?

2007-04-08 Thread Heinz Hombergs
Am Sonntag, 8. April 2007 schrieb Jan Pieper: > Is there an example for using the new "hook"? I don't want to rename all > the column-names which are actually written in camelCaps, so I created > these classes: > > class Flabben_Db_Table extends Zend_Db_Table { > protected $_rowClass = 'Flabbe

RE: [fw-general] question about zend_db

2007-04-08 Thread Bill Karwin
For simple cases, it is certainly easier to write the SQL yourself, if you are comfortable writing SQL. Some people aren't as confident with SQL syntax and they would rather use a PHP interface. Especially if they use an IDE that warns about PHP syntax errors but would not be able to warn

[fw-general] 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*: Uncaug

[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* : Uncau

[fw-general] question about zend_db

2007-04-08 Thread José de Menezes Soares Neto
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...

Re: [fw-general] Error Page Handling

2007-04-08 Thread Stéphane Bisinger
On 08/04/07, Freddie Witherden <[EMAIL PROTECTED]> wrote: I am not sure how to best go about generating error pages for my users is (such as when they attempt to do something they are not supposed to or when something breaks). I was thinking about having an Error controller with various actions (

[fw-general] Error Page Handling

2007-04-08 Thread Freddie Witherden
Hi I am not sure how to best go about generating error pages for my users is (such as when they attempt to do something they are not supposed to or when something breaks). I was thinking about having an Error controller with various actions (permissions, 404, &c) and then using the _forwa

[fw-general] Example for ZF-1214 changes?

2007-04-08 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Issue: http://framework.zend.com/issues/browse/ZF-1214 Is there an example for using the new "hook"? I don't want to rename all the column-names which are actually written in camelCaps, so I created these classes: class Flabben_Db_Table extends

Re: [fw-general] Problem with subclassing Zend_View

2007-04-08 Thread Cristian Bichis
Hello, thanks for replies, was a very stupid typo on subclass _script function, which uses _run... Cristian Hello, On 4/8/07, *Martin Hujer* <[EMAIL PROTECTED] > wrote: Hello, I think, that func_get_arg(0) always return '', because _run() doesn't ha

Re: [fw-general] Problem with subclassing Zend_View

2007-04-08 Thread Alexander Netkachev
Hello, On 4/8/07, Martin Hujer <[EMAIL PROTECTED]> wrote: Hello, I think, that func_get_arg(0) always return '', because _run() doesn't have any argument. func_get_arg(0) returns just the first argument function is called with even if there are no parameters. Martin Hujer Cristian Bi

Re: [fw-general] Problem with subclassing Zend_View

2007-04-08 Thread Martin Hujer
Hello, I think, that func_get_arg(0) always return '', because _run() doesn't have any argument. Martin Hujer Cristian Bichis-2 wrote: > > protected function _run() > { > include func_get_arg(0); > } > * > * -- View this message in context: http://www.nabble.com/Proble

[fw-general] Problem with subclassing Zend_View

2007-04-08 Thread Cristian Bichis
Hello, I am trying to subclass Zend_View or Zend_View_Abstract and seems that in any case i am receiving: *Warning*: Zend_View::include() [function.include ]: Failed opening '' for inclusion (include_path='.;./library/;./application/models;.;C:\php5\pear')