Posts mit dem Label lithium werden angezeigt. Alle Posts anzeigen
Posts mit dem Label lithium werden angezeigt. Alle Posts anzeigen

Donnerstag, März 08, 2012

isUnique Validator for lithium (li3)

If you want to check your model against uniqueness. this snippet might help you:

Mittwoch, November 02, 2011

Lithium & HTML5 Boilerplate => new default Template

Lithium, the most RAD php5 Framework is great, but still not yet fully perfect. You ill need to download hmtl5 compatibility ressources (js,css) from HTML 5 Boilerplate and use this template: Then, your site is prepared for html5 Contend and will work even in IE6 ;) In the (far) future, i will add automatic minification.. so stay tuned

Mittwoch, Oktober 19, 2011

Push objects and arrays to lithiums Logger-Class

Just added a simple Filter to my projects debug environment: With it, you are able to push objects and arrays to the Logger Class. If you combine it with the FirePHP Loging Adapter, debugging is kind of fun ;)

Mittwoch, Oktober 12, 2011

Dumping lithium SQL Statements via Filters

Zum einfachen Debuggen /dumpen von Raw-SQL Statements in lithium (li3) einfach folgende Zeilen in sein bootstrap Prozess mit einbinden und gewünschtes var_dump auskommentieren: Alternativ zu var_dump könne man auch den Lithium eigenen Logger nutzen, welcher die Daten dann beispielsweise (je nach eigener Logger Konfiguration) in ein File schiebt:

\lithium\analysis\Logger\Logger::write('info', $your_data_as_str);