Monthly Archives: April 2010

Inline Scripts with Zend_View_Helper_InlineScript

Once I’ve posted about Zend Framework and script injections into the view of the app. However back than I didn’t mentioned the way the scripts can be injected on whatever place into the markup. This job’s done by Zend_View_Helper_InlineScript and … Continue reading

Posted in javascript, micro tutorial, PHP, zend framework | Tagged , , , , , , , , | Leave a comment

Accessing the layout() in Zend Framework

Actually there are two syntactic valid ways to access the layout() helper of the Zend_View. First one is the more clean way: $this->view->layout() While the second calls the _helper member variable $this->_helper->layout()

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , | Leave a comment

MySQL Expressions in Zend Framework

If you’re a Zend Framework developer, you’d know the built-in Zend_Db_Table methods insert(), update(), etc. However the general approach there is like is said: $data = array(); $data[’key’] = $value; $model = new ModelName(); $model->insert($data);   // that’s very basic … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , , , , | Leave a comment

Detecting POST Requests in Zend Framework

Pure PHP Pure phpiers are using used to something like detecting a submit in the _POST array. if (isset($_POST[’submit’]) { … } Of course for this you’ve to be sure the HTML contains an submit type element with name attribute … Continue reading

Posted in micro tutorial, PHP, zend framework | Tagged , , , , , | Leave a comment

All the Site in … One Request

Is it possible? Yes it is! Actually I stumbled these days on a video where one of the guys talked about a quite interesting technique, that all the site was sent in one response from the server. But how is … Continue reading

Posted in web development | Tagged , , , , , , , , , | Leave a comment