[fw-general] Zend_Date chaining methods

2007-10-06 Thread Yann Nave
Is there some issue to have chaining methods in Zend_Date ? Like : $date = new Zend_date; $date->set()->setTimezone(); etc.. -- Yannux http://blog.onbebop.net

Re: [fw-general] Zend_Date convert GMT to local timezone

2007-10-04 Thread Yann Nave
: 2007-10-03 19:10 Zend_Date::getIso : 2007-10-03T19:10:00+00:00 Zend_Date::getTimezone : GMT Change Timezone to Europe/Paris Zend_Date::getTimezone : Europe/Paris Zend_Date::getIso : 2007-10-03T21:10:00+02:00 So good :) On 10/4/07, Yann Nave <[EMAIL PROTECTED]> wrote: > But -MM-

Re: [fw-general] Zend_Date convert GMT to local timezone

2007-10-04 Thread Yann Nave
/en/zend.date.additional.html#zend.date.additional.timezones > > On 10/4/07, Yann Nave <[EMAIL PROTECTED]> wrote: > > Hye, > > > > It' a little mess for me yo understand how to convert date betwenn GMT > > and Europe/Paris for example. > > > > Field f

[fw-general] Zend_Date convert GMT to local timezone

2007-10-04 Thread Yann Nave
Hye, It' a little mess for me yo understand how to convert date betwenn GMT and Europe/Paris for example. Field form my DB is like : 2007-08-03 19:54 ( GMT ) I would like to convert it in user's Timezone (like Europe/Paris). How can I do it ? -- Yannux http://blog.onbebop.net

[fw-general] Zend_Filter_Input retrive value

2007-09-24 Thread Yann Nave
If I have some values wich are not valide, but I want to retrieve that value filtering. How can I do it ? -- Yannux http://blog.onbebop.net

[fw-general] Zend_Date and gmt

2007-09-24 Thread Yann Nave
How to get date in gmt format with Zend_Date ?? :s -- Yannux http://blog.onbebop.net

Re: [fw-general] Is this possible?

2007-09-07 Thread Yann Nave
Why not using Zend_Date ? :s On 9/7/07, ashish.sharma <[EMAIL PROTECTED]> wrote: > Is this possible to have a view helper access in model? I have created a > function in view helper to get the current date, now i would like to access > the same function in a function which i have created in a mod

[fw-general] Re: Zend_Filter_Input get all data

2007-09-04 Thread Yann Nave
And how to get data filtered even if it's not validate ? For example to put text in a textarea, so that the user didn't have to rewrite all of his sentences On 9/4/07, Yann Nave <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to retrieve all data that I've

[fw-general] Zend_Filter_Input get all data

2007-09-04 Thread Yann Nave
Hello, I would like to retrieve all data that I've submitted once they process filters and validators whereas if the is some errors. Zend_Filter_Input doesn't have method like that ? :s -- Yannux http://blog.onbebop.net

Re: [fw-general] how to set timezone depend on locale

2007-09-04 Thread Yann Nave
And Timezone depends more on Country / Region than on locales On 9/4/07, Thomas Weidner <[EMAIL PROTECTED]> wrote: > This is not possible, because timezones are not related to locales. > > Expect you have the locale 'en_US'... > so which of the 5 possible timezones will you use ??? > > or whe

[fw-general] Extended $this->_helper->FlashMessenger;

2007-07-09 Thread Yann Nave
Hello everybody, Before FlashMessenger helper, I made a little FlashMessenger code with Zend_Session like this : public function init() { $this->session = Zend_Registry::get('session'); $this->view->flash_message = $this->session->flash_message; $this->session->flash

Re: [fw-general] TinyMCE, jQuery and ZF

2007-05-12 Thread Yann Nave
On 5/9/07, Stuardo -StR- Rodríguez <[EMAIL PROTECTED]> wrote: On Wednesday 09 May 2007 06:36:35 Chris Hartjes wrote: > Thank you all for your great help and suggestions. I'm going to try > FCKEditor and make sure to put that .htaccess file in there so that > the rewrite engine doesn't mess thing

[fw-general] Registry or Global ?

2007-04-16 Thread Yann Nave
Hello everybody, I would like to use some of my config.ini parameters in controllers. So what the best between : index.php // load configuration $config = new Zend_Config_Ini('config.ini', 'general'); Zend_Registry::set('config', $config); MyController.php $config = Zend_Registry::get('config')

Re: [fw-general] Fluent interface answer

2007-04-13 Thread Yann Nave
Ok thanks, not a matter. Why not make it returns object ? On 4/13/07, Alexander Netkachev <[EMAIL PROTECTED]> wrote: Hi, setFromArray does not returns object. You can use $annonce_test = $annonce->fetchNew(); $annonce_test->setFromArray($_POST['annonce']); Sincerely,

[fw-general] Fluent interface answer

2007-04-13 Thread Yann Nave
Hye everybody, Having this code with ZF 0.0.2beta $annonce = new annonce(); $annonce_test = $annonce->fetchNew()->setFromArray($_POST['annonce']); Zend_Debug::dump($annonce); Zend_Debug::dump($annonce_test); Zend_Debug::dump($annonce); print my row object OK Zend_De

Re: [fw-general] Zend_Translate return string to translate

2007-03-20 Thread Yann Nave
On 3/20/07, Thomas Weidner <[EMAIL PROTECTED]> wrote: > I'm justr trying Zend_Translate, why not juste adding a simple methode to > auto echo translation ? > > And why not return the $messageId if nothing is find ? Like wordpress > gettext librarie ? I dont see your problem ??? When you want

[fw-general] Re: Zend_Translate return string to translate

2007-03-20 Thread Yann Nave
On 3/20/07, Yann Nave <[EMAIL PROTECTED]> wrote: Hye everybody, I'm justr trying Zend_Translate, why not juste adding a simple methode to auto echo translation ? /** * Translate And Echo the given string * * @param string $messageId Original t

[fw-general] Zend_Translate return string to translate

2007-03-20 Thread Yann Nave
Hye everybody, I'm justr trying Zend_Translate, why not juste adding a simple methode to auto echo translation ? /** * Translate And Echo the given string * * @param string $messageId Original to translate * @param string|Zend_Locale $locale OPTIONAL loc

Re: [fw-general] Custom Libraries

2007-02-18 Thread Yann Nave
I think it's good for usage. It will be good to have method like this in Zend_Db_Table to pass only data to the view script ! :) On 2/17/07, Craig Slusher <[EMAIL PROTECTED]> wrote: I have attached an example of two classes I have created which have helped make my code less error-prone and more

Re: [fw-general] isEmail status?

2007-01-15 Thread Yann Nave
It's look like lots of code line fore only one field. We must charge many class to valid many field , no ? On 1/15/07, Darby Felton <[EMAIL PROTECTED]> wrote: Sure thing; at a low level, it might be used as follows: require_once 'Zend/Validate/EmailAddress.php'; $validator = new Zend_Validate

Re: [fw-general] noRouteAction for all controller

2007-01-11 Thread Yann Nave
On 1/10/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: Set a default, catch-all route, On config.ini ? How ? :s -- Yannux http://blog.onbebop.net

[fw-general] noRouteAction for all controller

2007-01-10 Thread Yann Nave
Hye everybody Is there a way to set a noRouteAction for all controlers ? I'm using a routes.ini config file like this : [routes] contact.route = contact contact.defaults.controller = contact contact.defaults.action = form annonceByType.route = annonce/:type annonceByType.reqs.type = "[a-z]"+

Re: [fw-general] Helper bug ?

2007-01-07 Thread Yann Nave
width = 400, $height = 300); //line23 { // code... } It should be: public function flash($filename = '', $width = 400, $height = 300) //line23 { // code... } Yann Nave wrote: > > Hye everybody, > > Trying to set my own helper to format some html element, logs return :

[fw-general] Helper bug ?

2007-01-07 Thread Yann Nave
Hye everybody, Trying to set my own helper to format some html element, logs return : [07-Jan-2007 23:52:55] PHP Fatal error: Non-abstract method Zend_View_Helper_Flash::flash() must contain body in /data/web/directinfoservice.com/zf.directinfoservice.com/application/helpers/Flash.php on line

[fw-general] Re: Zend_Db_Table_Row handle error.

2006-12-31 Thread Yann Nave
no response ? :s On 12/29/06, Yann Nave <[EMAIL PROTECTED]> wrote: Hello everybody, Using ZF 0.6, I'm programming a little CMS. For administration of pages I create Zend_Db_Table object and fetchNew record like this : /* Prefill the form */ $pages= new Page(); $page = $page

[fw-general] Zend_Db_Table_Row handle error.

2006-12-29 Thread Yann Nave
Hello everybody, Using ZF 0.6, I'm programming a little CMS. For administration of pages I create Zend_Db_Table object and fetchNew record like this : /* Prefill the form */ $pages= new Page(); $page = $pages->fetchNew(); $page->pageDate = date('Y-m-d H:i:s'); $page->pageDateGmt = gmdate('Y-m-

Re: [fw-general] Select field with rowset

2006-12-28 Thread Yann Nave
to not retrieve no needed data :) On 12/28/06, Bruno Friedmann <[EMAIL PROTECTED]> wrote: Bill Karwin wrote: > Yann Nave wrote: >> Hye everybody. >> >> Using ZendFramework 0.6, is there a way to have a rowset object width >> only some fields ? Not '*&#x

Re: [fw-general] Select field with rowset

2006-12-28 Thread Yann Nave
Ok thanks a lot. Because for now I give my rowset to my view. And iterate it to print on my template. Perhaps a bad approch ? Best regards On 12/28/06, Bill Karwin <[EMAIL PROTECTED]> wrote: Yann Nave wrote: > Hye everybody. > > Using ZendFramework 0.6, is there a way t

[fw-general] Select field with rowset

2006-12-28 Thread Yann Nave
Hye everybody. Using ZendFramework 0.6, is there a way to have a rowset object width only some fields ? Not '*'. -- Yannux http://blog.onbebop.net

[fw-general] Registry object

2006-12-18 Thread Yann Nave
Hye everybody I would like to use Registry object, But it seems not in 0.6 preview. How can I do ? Tanks -- Yannux http://blog.onbebop.net