september 2010
M D W D V Z Z
« aug   okt »
 12345
6789101112
13141516171819
20212223242526
27282930  

Taal

Categorieën

Meta


« | Main | »

Return value of a CakePHP Shell

By Bart | september 3, 2010

Another one I had to figure out by reading the source code: how to make your CakePHP Shell return something else than 0 in $?. It is very easy, if you let your main() return false, your Shell will return 1 in the console. Unfortunately it is not possible to return any other value, the dispatch() function check for false (with a === even, so it should be really false, not just 0 or “”.

Trefwoorden: Geekstuff | Geen reacties »

Comments