I want to do something like:

$templates = ee( "Model" )->get( "Template" )->all();

//Loop through them
foreach( $templates as $template ) ...

But when I try this, it hangs the page/server. Is this not possible in a template?

  • This is no answer to your question of course, but you would consume much less resources if you wrap this PHP into plugin. – Yuri Salimovskiy Dec 8 '15 at 13:12
  • Is all you want a list of your templates? Just use the Query module. – Jim Wyse Dec 8 '15 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.