Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Access grav instance in cli #2

Started by Thierry 9 years ago · 1 replies · 618 views
9 years ago

Hello,

Could anyone explain me how to access
$grav['pages']

in a class extending ConsoleCommand please ?

I failed after a long time on several plugins using CLI 😦 and looking into the previous topic with same name.
(could not comment it).

Thanks for help.

regards,

6 years ago

For reference, this reply covers it.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 82 12 hours ago
General · by pamtbaau, 17 hours ago
1 55 16 hours ago
General · by Andy Miller, 1 day ago
0 45 1 day ago
General · by Marcel, 12 months ago
6 348 5 days ago
General · by Duc , 5 days ago
3 43 5 days ago