Hi,

thanks you for your feedback!

I have tried to change my code according to your suggestions but hit a wall 
just at the first step:

I now changed the page template index.ctp:

    $options = array( 2 => 'two', 4 => 'four');
    echo $this->Form->create('Posts', array('url' => $this->here));
    echo ' Show '.$this->Form->select('recordlimit', $options, 
array('value'=>2, 'empty' => FALSE, 'onChange'=>'this.form.submit();')).' 
records per page.';
    echo $this->Form->end();

But I get a "missing controller" error: *Error: * *CakephpController* could 
not be found.

The initial URL reads: http://localhost/cakephp/posts, but the form action 
reads:

<form action="/cakephp/cakephp/posts">

Note the additional "cakephp" part, it looks as if $this->here returns a 
wrong URL 

I have removed the 'url' definition which fixed that but I would like to 
understand the logic or idea behind this 'feature'

You also wrote:

In your controller use a RequestHandler-Part to get changes of the 
> dropdown and write them into a session variable. 


But I did not find out what a "RequestHandler-Part" might be or how to use 
a session from within the controller - I'm currently quite overwhelmed by 
the huge amount of classes, helpers, components etc. that CakePHP offers - 
plus I'm also struggling with the transition from my current language 
(Xbase++, which is some xBase dialect) to PHP - especially the heavy use of 
multiply nested arrays is quite confusing to me.

So please be patient with me ;-)

Thomas

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to