Friday, July 2, 2010

Re: working cakephp-filter-plugin for CakePHP 1.3 ?

Hello. I'm one of the developers of the Filter Plugin (the developer
who unified all those hacks was one of my junior devs). An updated
version is here (all versions work with CakePHP 1.3):
http://github.com/josegonzalez/cakephp-filter-plugin

<?php PostsController extends AppController {
var $components = array('Filter.Filter'); // Also configurable via
array options. See component
var $paginate = array(); // Set your default pagination stuff here,
you can leave this out if you want

function index() {
$this->paginate = $this->Filter->paginate; // if you want action
specific pagination, do array_merge($this->Filter->paginate, array()),
where the second array is the set of action specific pagination rules
$posts = $this->paginate();
$this->set(compact('posts'));
}
}
?>

Works out of the box as I've outlined. You don't even need to modify
your PaginatorHelper unless you override the
PaginatorHelper::options() configuration :)

Post issues in that repository if you have any. Good luck.

Jose Diaz-Gonzalez

On Jun 24, 4:40 am, Charles Bueche <cbli...@bueche.ch> wrote:
> Hi,
>
> I'm writing a small CakePHP front-end to a DB. I'm using CakePHP 1.3.x,
> and would like to use some kind of filter on top of my views, so the
> user can restrict the shown results.
>
> I have triedhttp://github.com/jmroth/cakephp-filter-plugin, but it
> apparently doesn't work with 1.3. Any other recommendation, or is J.M.
> Roth on line to provide on a possible update / patch ?
>
> Thanks,
> Charles

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate