Skip to content
Advertisement

Tag: picocms

Adding a plugin to a simple app using PHP/Symfony/Twig

I’m working on a proof-of-concept app based on pico CMS, and I’m hoping to create a simple plugin to add some basic methods to it. You can view plugin files in this link and app files in this link. How do I add this plugin and call isMobile();, for example? AppHelper plugin Answer Do not use static methods in plugins.

Where do I install the Pico CMS files?

The install docs for PicoCMS say First download and extract the latest version of Pico. Upload the files to your server (via FTP or some other deployment). That’s it. Tweak the .htaccess file if required. For step 2, into which folder do I upload/copy the files? There’s several choices for us novices! On my Windows/XAMPP setup, copying the files into

Pico CMS custom header

Im trying to include dynamc custom header in PicoCMS. Simple “include ‘header.php’;” wont work since the theme have only index.html file and and I cant include PHP in it. My guess is I would have to make a custom plugin for this to work but Im not shure how to do it. They have some documentation about it http://picocms.org/docs.html#plugins but

Advertisement