On a page that is generated by Joomla, by default you will always see a meta tag like following
<meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
After installing Joomla! 1.5, i encountered the following warning message saying “Direct Access to this location is not allowed” when changing the template to which i just downloaded from www.siteground.com. I compared the template files with default templates bundled with 1.5 package and found that configuration files params.ini was missing in my downloaded one. Continue reading
Steps to Install IE7 and Keep IE6 as well
Happy IE browsing!
Error handling in CakePHP is pretty simple and straight forward. While developing in CakePHP with debug value set to > 0 (Configure::write(‘debug’, 1); in app/config/core.php) you might have encountered error messages something similar to this: Continue reading
As default we have single var $validate rule set in the model class which is triggered on each save() method call while saving form data. This is quite logical and sufficient for single form fields to validate but what if we have another form with somewhat different fields which we want to post and validate? As an answer i know of three different approaches. Continue reading
Sometimes we need to filter records via custom query while using ajax pagination in a cakephp application. An easy way to achieve this is to store query in a session varibale and to check it whenever an ajax call is made through “previous”, “next” or pagination links like 1,2,3 etc. Continue reading
Mininal use of $uses variable to load models
CakePHP loads all models specified in var $uses array when a controller action is called. By loading a model cakephp creates the schema/structure of the table and also caches it for further use in the application.
Let say you specify four models in the var $uses. Now every time you call a controller action, all four models will be loaded irrespective of any of four being used by controller action or not. For example, Continue reading
Cakephp framework provides a strong model validation mechanism. Here is the quick overview of multiple validation rules applied to a single field.
Let say we are using “User.password” and “User.password2″ fields to accept/confirm password while registering to a site. We have “password2″ field which is supposed to contain non-empty characters as well as the same password entered in the “password” field. Continue reading
I tried to enable “show hidden files and folder” option in my window xp but after clicking “apply” and “ok” when i returned back to the folder to view hidden files it did not show the hidden files. I tried once again and then again but it did not work. The changes would just disappear upon opening the dialog again. Continue reading
I was struck in a very strange problem today. I was using captcha component to create and set a captcha session and image for view section. Next is the snippet of create function which i used to load component. I will be pasting JcaptchaComponent source code at the end for anyone who may want to take a look into the matter more precisely (however i feel the componet itself should be quite innocent) Continue reading
Recent Comments
Arvind Thakur on Simple captcha component for CakePHP 2.x
Check php error log for possible errors. I may need to see your implementation of code.Ritika on Simple captcha component for CakePHP 2.x
I am using your code but image is not loading ??whyaaron on Object doesn’t support this property or method javascript error
I had the same situation as you. I was assigning a non-declared variable to a calculation. I was searching stackoverflow...priyanshu on Resume download of PART extension file in Firefox
yes i resumed my 1.07 gb file from 790mb thanks.................Arvind Thakur on Simple captcha component for CakePHP 2.x
Can i see your your code? It works fine with 2.3.5.