Is this a bug or am I doing something wrong?
Warning: scandir(C:\wamp\www\kirby\content\pages\home,C:\wamp\www\kirby\content\pages\home): The system cannot find the file specified. (code: 2) in C:\wamp\www\kirby\kirby\core\page.php on line 295
$collection = $site->find('pages')->children()->not('revisions');
$collection->add('home');
I have a home/home.txt
file in my content
folder. It’s always been there.
Update
$home = $site->find('home');
echo $home->title(); // Work, prints "Home" on the screen
$collection = $site->find('pages')->children()->not('revisions');
$collection->add($home); // Doesn't work!