FilChi Weblog

Archive for the ‘PHP frameworks’ Category

If it happens to you that when you add a new record when scaffolding in cakephp 1.2 beta version, check if your mysql version is 5.1 or later, and check in my.ini of your mysql server and remove that “STRICT_TRANS_TABLES” setting, and then your cake scaffold will work just fine.

(source: )

Note: I think this is just a temporary fix. I was informed in irc that this bug is already fixed. It is advisable to get the latest code thru svn.

In CakePHP 1.2 beta version, when you attempt to use/set Sessions in app/config/core.php, you might encounter this problem:

Fatal error: Class ‘ConnectionManager’ not found in CORE/cake/libs/session.php on line 704.

When I tried changing these settings:

Configure::write(‘’, ‘database’);
Configure::write(‘Session.table’, ‘cake_sessions’);
Configure::write(‘Session.database’, ‘default’);
Configure::write(‘Session.start’, false);

The error appears.

1. Be more consistent with the system’s layout to make existing features of the system immediately obvious to the eye of the user.

2. Be more accurate with the information that the system is viewing.

3. Always be updated with the latest version of the latest PHP framework which the system is built on.

4. Be able to run faster and improve performance.

5. To finish what have been already started.

I was doing this web report, and I thought of improving its user interface design, so I decided to use jquery ajax tabs UI.

But because the ajax-ed content is very large, the tab, when clicked, looks like this in Firefox:

ajax content caching

AFAIK, Firefox does not cache ajax content, which is contrary to what Internet Explorer does.

I just want to share additional info regarding the ajax tabs:

everytime you select the tab with ajax content, the tab starts to process ajax. Meaning,

even when not necessary, the ajax still runs. That sucks, huh!? 😦

I overlooked that in the JQuery Tabs options params, you can set the ajax cache to true and the ajax won’t run everytime you click on the tab.
(Source: JQuery Ajax Tabs )
Code:   $(‘.selector’).tabs({ cache: true });
$(‘.selector’).tabs({ ajaxOptions: { async: false } });

In daniel hoffster’s blog, he pointed out the difference of behavior when setting your $uses variable in your controllers to null against array().

If you try to do the same thing as daniel reported, you will encounter a PHP notice that says Notice: Undefined property: myController::$model . 

Tags: ,

Flickr Photos