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 · 741 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 319 3 weeks ago
General · by Andy Miller, 4 weeks ago
0 315 4 weeks ago
General · by Veehem, 4 weeks ago
0 269 4 weeks ago
General · by milkboy, 4 weeks ago
0 271 4 weeks ago
General · by ian russell, 1 month ago
2 341 1 month ago