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

Access grav instance in cli #2

Started by Thierry 9 years ago · 1 replies · 739 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,

7 years ago

For reference, this reply covers it.

Suggested topics

Topic Participants Replies Views Activity
General · by jean-louis67, 3 weeks ago
2 306 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 3 weeks ago
0 263 3 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago