| Latest |Kites |Pictures |Programming |Life |
|
Hacking code together. Is it art? Is it science? Can it be quantified? Are comments really essential? Who knows, I sure as hell don't. ![]() 1 and 1 1&1 1and1 adventures ![]() 1&1 shared hosting, .htaccess Zend Framework. Here is my .htaccess file to get ZF up and running:
Note that php_value and php_flag DO NOT WORK they give 500 server errors (no idea why) but you can set these flags via a php.ini file saved in the same directory as the .htaccess. I have a subdomain (demo) that points at the same ZF project, but it passes in the demo flag to tell it not to worry about some things. It also passes a different robots.txt out for the demo site. ![]() cloudnext VPS hosting review ![]() Don't waste your money. I was with them from June 2010 to Jan 2011 at a cost of around £90 - £100. I couldn't even putty into the VPS. My website never worked, sometimes the PHP info page timed out. I opened several tickets with them but eventually they just gave up trying to offer support. Utterly pathetic. teethgrinder is hosted with 123-reg.co.uk and has 17,250,000 page views. ![]() Seven Pillars of Pretty Code ![]() First of all, here is the link: prettycode I have to agree with everything they say. Amazing, that must be the first time I've read anything on the internet that I totally agree with, especially when it comes to coding style - hehe! ![]() C# silverlight and all that shit ![]() PHP code style ![]() ![]() NuSphere PHPeD firefox debug toolbar ![]() Tags: NuSphere PHPeD firefox debug toolbar There is an open source Firefox toolbar for NuSphere PHP IDE (NuSphere PHPeD firefox toolbar). It was written by a kind chap called Ian Flory. Firefox 3.5 beta 99 Preview is out and I use it, but the toolbar is locked to Firefox versions 3.0.* and lower. The toolbar needed an update, so a little hacking later and here is the new version: DBGbar: phpdebugger.xpi Fixed: Changed the min version to 3.5.* Comments: This Firefox add-on build script was useful. If you find this useful leave a comment :) Open source (LGPL), flash charts (pie, bar, line, scatter, etc): open flash chart 2. Tooltips, animation and JSON friendly.
![]() zend framework jeditable ![]() Tags: zend framework jquery.jeditable.js JSON jeditable does not accept JSON in response to the AJAX call. So how can you get this to work with Zend Framework? Like this: Your view will need the the .js files: <?php In your controller you'll need to add a context swtich to return JSON, not HTML: public function init() You action will look like this: function myEditableAjaxAction()
The URL you need to paste into the editable config will need the JSON context switch in it: $(".edit_area").editable("<?= $this->url(array('action'=>'my-editable-ajax', 'format'=>'json')) ?>", { Hope that helps.
|
| Server Grind [0.2000 seconds] |