Archive / Programming

RSS feed for this section

Change slug for an already registered post type

Unfortuantely it doesn’t work with the default post types like post/page

Cakephp installl plugin as submodule

In order to install Search plugin for instance:

Updating presta from git and switching to a working branch

For prestashop 1.6.0.8 I want to work on a local branch (I use it to install my plugins as submodules)

Optimize MySQL all tables

I was contacted by a friend which has the website hosted on my server. His website was pretty slow despite the fact the server is very powerful. After some debugging I optimized his tables and the website is instant fast … Continue reading

Warning: array_splice() expects parameter 1 to be array, null given in ShellDispatcher.php

I hit this error using console of cakephp 2.3.8 but you can encounter this issue on other versions as well. The solution is to edit (command line arguments are not seen) app/Console/cake and on on the line:

after -q … Continue reading

Cakephp 1.3 and php 5.4

A quick notice how to disable the errors that appear after upgrading the php to 5.4 which is by the way a lot faster than ever before. cake/bootstrap.php replace:

with

cake/libs/debugger.php after:

add

cakephp page title in view cake1.3

In order to change page title in cakephp inside a view just use the code bellow

remove comparison links from magento

Copy app/code/core/Mage/Catalog/Helper/Product/Compare.php to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories) Edit app/code/local/Mage/Catalog/Helper/Product/Compare.php after: public function getAddUrl($product) { add: return false;

SVN set up for multiple projects

just a quick tutorial how to set up subversion, aka SVN to be used with multiple projects. Setting up only one repository has the downside of incrementing revision number for all the projects no matter what project is modified. The … Continue reading