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
: 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-
/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
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
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
How to get date in gmt format with Zend_Date ?? :s
--
Yannux
http://blog.onbebop.net
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
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
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
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
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
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
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')
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,
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
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
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
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
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
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
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
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]"+
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 :
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
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
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-
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 '*
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
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
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
30 matches
Mail list logo