Sunday, May 30, 2010

Re: Select options after validate are not displayed

And you say they are not re-populating after validation? Check to be sure that your queries are not not nested in something like this: 

if(empty($this->data))
{
     // your queries here
}

-Ed 

On Sun, May 30, 2010 at 3:20 PM, Ziki <zixwebs@gmail.com> wrote:
No, same controller, same action.

On 30 svi, 21:27, Ed Propsner <crotchf...@gmail.com> wrote:
> Are you submitting the form to a different controller or action other than
> the one where you are setting your select values?
>
> - Ed
>
> On Sun, May 30, 2010 at 2:22 PM, Ziki <zixw...@gmail.com> wrote:
> > I have that problem that after validation, when it is again diplayed
> > my form with error messages, there are no options in select fields. It
> > is because options in select filds are variables declared and defined
> > in controller action, so after validation thoose variables aren't
> > declared and defined. What should I do?
>
> > This is controllers variables:
>
> > $acctypes = $this->Acctype->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $cities = $this->City->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $facilities = $this->Facility->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $this->set(compact('cities','acctypes','facilities'));
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Select options after validate are not displayed

No, same controller, same action.

On 30 svi, 21:27, Ed Propsner <crotchf...@gmail.com> wrote:
> Are you submitting the form to a different controller or action other than
> the one where you are setting your select values?
>
> - Ed
>
> On Sun, May 30, 2010 at 2:22 PM, Ziki <zixw...@gmail.com> wrote:
> > I have that problem that after validation, when it is again diplayed
> > my form with error messages, there are no options in select fields. It
> > is because options in select filds are variables declared and defined
> > in controller action, so after validation thoose variables aren't
> > declared and defined. What should I do?
>
> > This is controllers variables:
>
> > $acctypes = $this->Acctype->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $cities = $this->City->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $facilities = $this->Facility->find('list',array(
> >                                'fields' => array('id','title')
> >                        ));
> > $this->set(compact('cities','acctypes','facilities'));
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Select options after validate are not displayed

Are you submitting the form to a different controller or action other than the one where you are setting your select values? 

- Ed 

On Sun, May 30, 2010 at 2:22 PM, Ziki <zixwebs@gmail.com> wrote:
I have that problem that after validation, when it is again diplayed
my form with error messages, there are no options in select fields. It
is because options in select filds are variables declared and defined
in controller action, so after validation thoose variables aren't
declared and defined. What should I do?

This is controllers variables:

$acctypes = $this->Acctype->find('list',array(
                               'fields' => array('id','title')
                       ));
$cities = $this->City->find('list',array(
                               'fields' => array('id','title')
                       ));
$facilities = $this->Facility->find('list',array(
                               'fields' => array('id','title')
                       ));
$this->set(compact('cities','acctypes','facilities'));

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Select options after validate are not displayed

I have that problem that after validation, when it is again diplayed
my form with error messages, there are no options in select fields. It
is because options in select filds are variables declared and defined
in controller action, so after validation thoose variables aren't
declared and defined. What should I do?

This is controllers variables:

$acctypes = $this->Acctype->find('list',array(
'fields' => array('id','title')
));
$cities = $this->City->find('list',array(
'fields' => array('id','title')
));
$facilities = $this->Facility->find('list',array(
'fields' => array('id','title')
));
$this->set(compact('cities','acctypes','facilities'));

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: helper to do a sliding animation

On our site (rottenrecords.com, the "new releases" and "featured
videos" panels on the homepage) we use the jQuery Scrollable plugin. I
made a helper for it, but it's not really necessary.

Oh, and that WWF interface is done in flash--that's why it's all
pixelated and blurry-looking.

On May 30, 4:08 am, Bryan Lim <ytbr...@gmail.com> wrote:
> Hi all,
>
> I am looking for a helper to do a sliding animation.
>
> It is found inhttp://www.worldwildlife.org/under the year of tiger
> animation where you can go forward or backward accordingly. if you use
> firebug, it's under div class="whatsInside"
>
> What do we call this kinda of widget?
>
> Thanks!
> Bryan

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Custom Session handler with DB issue

On May 29, 11:17 pm, jerikschaeffer <jerikschaef...@gmail.com> wrote:
>
> Unfortunately, everytime the session starts, meaning on every
> page, I'm seeing the following debug messages:
>
> Warning (2): mysqli_real_escape_string() [function.mysqli-real-escape-
> string]: Couldn't fetch mysqli [CORE/cake/libs/model/datasources/dbo/
> dbo_mysqli.php, line 201]

Do you have the mysqli module installed?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Release: CakePHP 1.3.1

According to this:
http://cakephp.lighthouseapp.com/projects/42648/tickets/769-unserialize-error-cakephp-131-unusable-on-windows
You have to edit file.php in order to fix it (which in not desirable
too)

On 30 Μάϊος, 14:41, Elte Hupkes <ell...@gmail.com> wrote:
> I get the exact same unserialize errors on a project previously
> running fine on Cake 1.3 after updating to 1.3.1. Disabling cache
> makes the error go away, but that's not really desirable of course..
>
> On 30 mei, 02:48, Sergei <yatse...@gmail.com> wrote:
>
> > Hi,
>
> > just tried 1.3.1 with one of my project (Cake 1.3). It instantly gave
> > me an errors on almost *every* page (see below). Removing TMP\cache
> > \persistent\ files doesn't help.
>
> > =====================
> > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of
> > 1661 bytes [CORE\cake\libs\cache\file.php, line 176]
> > Code | Context
> > $key    =       "cake_core_file_map"
> > $time   =       1275179913
> > $cachetime      =       1275179919
> > $data   =       "<skip>"
> > unserialize - [internal], line ??
> > FileEngine::read() - CORE\cake\libs\cache\file.php, line 176
> > Cache::read() - CORE\cake\libs\cache.php, line 347
> > App::getInstance() - CORE\cake\libs\configure.php, line 967
> > App::build() - CORE\cake\libs\configure.php, line 650
> > Configure::__loadBootstrap() - CORE\cake\libs\configure.php, line 431
> > Configure::getInstance() - CORE\cake\libs\configure.php, line 52
> > include - CORE\cake\bootstrap.php, line 38
> > [main] - APP\webroot\index.php, line 77
>
> > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of
> > 28 bytes [CORE\cake\libs\cache\file.php, line 176]
> > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of
> > 5 bytes [CORE\cake\libs\cache\file.php, line 176]
> > Notice (8): unserialize() [function.unserialize]: Error at offset 0 of
> > 105 bytes [CORE\cake\libs\cache\file.php, line 176]
> > ==============================
>
> > On May 30, 2:29 am, mark_story <mark.st...@gmail.com> wrote:
>
> > > The CakePHP development team is happy to announce the release of
> > > CakePHP 1.3.1[1].  1.3.1 is the first  maintenance release for 1.3 and
> > > contains bugfixes and optimizations for features found in 1.3.  No new
> > > features will be introduced in the maintenance releases for 1.3.
> > > Regular maintenance releases for 1.3 are planned on a monthly basis
> > > for the near future.
>
> > > Since the release of CakePHP 1.3.0 last month, there have been more
> > > than 70 commits and 45 tickets resolved. There have been a few changes
> > > that may affect your application.
>
> > >  - The conditional check around including custom session configuration
> > > files was removed.  This fixes issues where requestAction could cause
> > > loss of session settings, and improves the end developers ability to
> > > customize the session.  Custom session files should ensure that
> > > classes/functions are conditionally declared.
>
> > >  - How virtualFields are detected and parsed was modified to allow
> > > virtualFields on the same table.  A virtualFieldSeparator property was
> > > added to DboSource to allow customization of the virtualField
> > > separator.  If you have fields containing '__' you may have to modify
> > > this setting to avoid issues.
>
> > >  - EmailComponent had a number of changes made to better support ELHO
> > > and slow SMTP servers.
>
> > > Be sure to check the full changelog[2] for all changes that have
> > > occurred. We'd like to welcome Juan Basso[3] to the development team.
> > > Juan has been very active in the brazilian community and we're really
> > > happy to have him.  Work on the 2.0 branch continues to progress.
> > > Currently much of the effort is focused on getting our migration to
> > > PHPUnit complete. We'd like to thank the ongoing community efforts
> > > around the documentation.  There are now over 18,500 revisions in the
> > > cookbook and 4 languages now have more than 70% of the documentation
> > > translated.
>
> > > As always, thank you for helping us make a great framework and
> > > fantastic community.
>
> > > Download a packaged release [1]
> > > View the changelog [2]
>
> > > [1]http://github.com/cakephp/cakephp/downloads
> > > [2]http://cakephp.lighthouseapp.com/projects/42648/changelog-1-3-1
> > > [3]http://blog.cakephp-brasil.org/

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en