I am new to october cms. i learned somethings about themes and pages and ... .
i use rainlab blog plugin.
i want to show author section in post page. now i am using this function in php section to display user post, title, publish date,... .
//pages/post.php
<?php
function onEnd(){
$this['post'] = $this->post; //for access to {{ post.variables }} in template
}
?>
and i display post details: {{ post.title }}
, {{ post.user.first_name}}
.
-
should i make a plugin or top way is true?
-
when should we make plugin?
- is there a faster and true way instead of plugins?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1WpkbqS
via IFTTT
Aucun commentaire:
Enregistrer un commentaire