Categories

seperating CakePHP’s translation files into “Domains”

Lately I have been doing much work on translation, making sure that one of my main CakePHP projects can be easily translated. By default CakePHP keeps everything in one big “default.po” file…but there is a way to use other files, and use CakePHP built-in methods to access these different “po” files.
Continue reading seperating CakePHP’s translation files into “Domains”

Jquery Form Plugin clearForm() issue with CakePHP security component

This week I have had an issue where every time I cleared a form using JavaScript, CakePHP’s security component halt the processing and complained when posting it. I am using the jquery form plugin’s .clearForm() to clear the form, and found the issue, and work around.
Continue reading Jquery Form Plugin clearForm() issue with CakePHP security component

Productivity and Sounds

I have been thinking about this question for a while now:

“What things make you more productive?”

For me, music has always been one of my passions. And listening to music while working also helps me to concentrate for longer periods of time (especially late at night), and as a result, I usually get more done while listening to some music.

While this has been true for me, lately I have found that what used to work for me sometimes doesn’t. If the music is too complex or has deeper lyrics, then I find myself paying more attention to it instead. Sometimes I just don’t feel like music at all (or at least the music that I have)…

So, the question to any and all who listen is simple:

“What things in your environment help you concentrate and get more done?”

Also, the other question I have for music lovers out there is:

“What styles of music or which artists do you find help you concentrate, and get more done?”

Lately I have found that more instrumental based music (such as Jessse Cook) has been working for me. Perhaps there are those out there who can give me some new/different ideas….

A Tale of PHP IDE’s

I have been an Ecipse PDT user for the last couple of years, and while I have gotten it to “work” with CakePHP, I have always found it a messy solution, as you have to “hack” up your sources pretty good in order for Eclipse to understand the CakePHP world.

While this does work, it is not a pretty solution, is not easily manageable, and leaves a bad taste in my mouth, so I figured that there must be a better way…and there is with Netbeans !

Continue reading A Tale of PHP IDE’s

Using CakePHP “Parts” in Other Applications

So, you have some third party PHP based web application, and you want to somehow “link” it with your CakePHP site. Wouldn’t it be great if this other application could share some things with your Cake site, like use your existing security components to check if the current user is authorized to use this third party application, or have this third party application retrieve session information for the current user?

I had to do just this in one of my current projects. I used theĀ kfm file manager, and wanted to integrate it into a CakePHP web site as seemlessly as possible. I was mainly concerned with access and authorization as I wanted to use the same components/controllers that my CakePHP based site used to control access. This way, all security management is done from a single place, and everything is nicely integrated.

Continue reading Using CakePHP “Parts” in Other Applications

Ajax Pagination in CakePHP using JQuery

Today I needed ajax-ified pagination in a cakePHP app, and after looking around a bit, I found an excellent start on this blog: http://lucidchart.blogspot.com/2008/10/jquery-ajax-pagination-for-cakephp-12.html. In this post, I add the ability to show and hide a div to provide user feedback during an Ajax action using Jquery.
Continue reading Ajax Pagination in CakePHP using JQuery

Javascript Rounded Corners and JQuery

In one of my projects I needed some nice rounded corners, but I needed to have the flexibility to style them, and change colors easily, and quickly as needed. I usually used Nifty Corners, and have had good success with it, but this time around, I wanted to see if I could do it all in jquery.
Continue reading Javascript Rounded Corners and JQuery

CakePHP – There and back again

I have been bouncing between web development frameworks for a little while. So this is a quick tale of my experiences with a couple of them.

First off, all of these frameworks are really great, this is not meant as a “this framework is better then that framework” thing. Just my thoughts and finally the decision that was made as to which technology/framework I will use for current and future projects.

First off – the frameworks I have bounced around and used over the last little bit:

  • CakePHP
    • PHP web development framework
  • Django
    • Python web development framework

Continue reading CakePHP – There and back again