Documentation

Light-weight, fast, simple and powerful!
 
Translations of this page?:

Notes on some plans for Page refactoring… specifically the find() functions.

Discussion

Just curious, though I'm sure this is thought through: how does Page::findBySlug() work when we don't enforce unique slugs? (Nor, I'm guessing, do we want to!) The answer may be: “the same way we currently use (privately?) find_page_by_slug()…” :)

david david 2010-12-01 10:18

We don't change a thing. This is just a restructuring of the code and an attempt to streamline the find methods in Page. We'll take a closer look at find_page_by_slug later or rather its replacement since find_page_by_slug will be replaced by Page::findBySlug

mvdkleijn mvdkleijn 2010-12-02 20:40

 
projects/page_class_refactor.txt · Last modified: 2012-03-14 11:49 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Copyright 2010 wolfcms.org / design by yello studio / Wolf CMS Inside