A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: Zend Framework

Zend Framework Blog Application Example / Tutorial

This is useful to those who are trying to kick start a Zend Framework application. Starting any new application is like walking into a shop and being dazzled by the displays. You want everything but finally realise you only have … Continue reading

Posted in General | Tagged , | 4 Comments

Serialize + base64_encode an array for a URL

This is an alternative for passing a bunch of variables in the URL. The variables might be used for pagination scripts (limits, etc.), sorting results and others. Generally, I would do something like this for sorting results: http://localhost/reports?sort=username&sort_type=ASC That will … Continue reading

Posted in General | Tagged , , , | 2 Comments

Zend_Db Changing Fetch Mode

I love this, since I do not have to type [' and '] at the end of each field. Typing -> is easier! $db = Zend_Registry::get(’db’); $db->setFetchMode(Zend_Db::FETCH_OBJ); $result = $db->fetchAll("SELECT * FROM user_roles"); foreach($result AS $row) { echo $row->fieldA; //instead … Continue reading

Posted in General | Tagged , | Leave a comment

Zend Framework: View File downloaded as Excel File

This is basically a back-up post from my previous posts regarding exporting of data from a database to an excel file. Since Excel is able to read HTML tables, we can directly export a “view” file into an excel file … Continue reading

Posted in General | Tagged , | 6 Comments

How to do AJAX in jQuery with JSON callback in Zend Framework

Here is how to do it in Zend Framework. Let’s start with the form: <textarea id="mytext"> </textarea> <input type="button" id="mybutton" value="go" />   < script language="Javascript"> //jQuery stuff $(document).ready(function() { $("#mybutton").click(function() { $.post("< ?=$this->baseUrl?>/path/to/my/coolaction",{ mytext: $(’#mytext’).val() }, function(data){ //alert("Data Loaded: … Continue reading

Posted in General | Tagged , , | 3 Comments

Zend_View Placeholders by Matthew Weier O`Phinney

In his blog post, he used something that I didn’t know or hear about — headLink() and headScript(). So I went ahead to add a comment and asked for an example. Then I got it — he has a new … Continue reading

Posted in General | Tagged , | Leave a comment

Zend Framework 1.5 RELEASED!

To people who don’t use Zend Framework, seriously, this is the time for you to switch. I need not say more. Just head on the their newly-skinned site: http://framework.zend.com And they have something that every new-comer wants, a Zend Framework … Continue reading

Posted in General | Tagged | 5 Comments

Zend Framework: Slides – Builing Rich Internet Applications in 3 days

Here are the slides. Wil Sinclair has been a busy man of late. In addition to getting ready for the 1.5 release of Zend Framework and recording a podcast with me, he has taken the time to present 2 different … Continue reading

Posted in General | Tagged | Leave a comment

What Zend_Layout looks like. An overview. Code sample. No explanation :P

I wrote this for myself instead of for other people. The short code example is found on my wiki (http://wiki.ekini.net/main/Zend_Layout). Basically it is a very quick overview of Zend_Layout — more like a cheatsheet (again). The bootstrap, the directory structure … Continue reading

Posted in General | Tagged , , | 3 Comments

Zend Framework: Zend_Form Webinar

I am totally in love with Zend_Form. Yesterday, I spent a few minutes tinkering with Akrabat’s tutorial on Zend_Form, from the start I could already see the benefits of using it. No more wasting time coding in the view (.phtml) … Continue reading

Posted in General | Tagged , | Leave a comment