Blog

More Speed with PHP7 on SilverStripe 3

Unfortunately SilverStripe 3 doesn't work with PHP7 out of the box due to some naming conflicts with newly reserved words. Some community members already fixed the problem.
Read more about 'More Speed with PHP7 on SilverStripe 3'...

Speeding Up MySQL (instead of using sqlite)

Many people use sqlite for testing purposes because it's fast... and it's fast because it uses memory for many operations instead of the disk...
Read more about 'Speeding Up MySQL (instead of using sqlite)'...

Fluent and Partial Caching

Fluent is a great SilverStripe module for translating sites, that need the same tree for all locales. Unfortunately there are some pitfalls with partial caching.
Read more about 'Fluent and Partial Caching'...

Speed up a vagrant machine on windows

Vagrant is a great tool for developing a SilverStripe site, it's easy to set up a new VM for each project.
Read more about 'Speed up a vagrant machine on windows'...

Show filenames in templates for debugging

SilverStripe's template engine hides by default names of templates. While developing and debugging template stuff you'd like to see them in your rendered page.
Read more about 'Show filenames in templates for debugging'...

ListboxField example that uses an arbitrary array of values

I've often used ListBox when dealing with DataObjects as the values being selected, it's a little undocumented how to deal with just an arbitrary array... so here is an example for that.
Read more about 'ListboxField example that uses an arbitrary array of values'...

Block javascript in template

Everyone knows that Requirements::block('/path/to/javascript.js'); in php blocks this file from being loaded. This is important to e.g. require a newer version of jQuery.
Read more about 'Block javascript in template'...

Easier coding with PHPStorm templates

If you're using PHPStorm or Intellij IDEA you might know, that you can use some templates to ease your work.
Read more about 'Easier coding with PHPStorm templates'...

$_FILE_TO_URL_MAPPING and symlinks

Howto solve "[Warning] Director::protocolAndHost() lacks sufficient information - HTTP_HOST not set" when your webroot is symlinked to the latest release?


Read more about '$_FILE_TO_URL_MAPPING and symlinks'...

Listening to changes in many_many relationships, but not hack the framework...

I wanted to add logging but changes to the relationships wasn't obvious at first and then I remembered I could overide the class managing the relationships...
Read more about 'Listening to changes in many_many relationships, but not hack the framework...'...

1 2 3 4 5 6 7

RSS feed for this blog