Kurinchi Blogger Scribbles …


Posts Tagged ‘cakePHP’

Jun 04
2009

CakePHP: Beginners installation hurdles – Errors and Solutions

Last updated: June 4th, 2009

I thought to mention a few errors beginners into CakePHP might come across when configuring CakePHP and how to resolve

Notice: this error is being rendered by the app/views/errors/missing_table.thtml view file, a user-customizable error page.

This error occurs when the database is not configured in cakePhp. First create a database in MySQL or the database of your choice. Go to /app/config/ and make a copy of database.php.default and rename it to database.php. Open database.php and give the necessary settings of the new database created with the associated login credentials. Once that is done, refresh the page and see if that error is now resolved.
(more…)

Jun 02
2009

CakePHP: To Check if Mod_rewrite is Disabled

Last updated: June 4th, 2009

How to check if mod_rewrite is disabled in Apache when CakePHP is installed?
Initially when CakePHP is downloaded from sourceforge and is installed in your localhost, you can test if it is working or not by going to the respective directory in your local host http://localhost/cake.

If CSS styling is missing in the display page, then check apache server’s httpd.conf file to see if mod_rewrite module is enabled. Remove the comment symbol to enable mod_rewrite in your localhost and restart Apache server for the change to take effect
(more…)

Jun 01
2009

PHP: CakePHP and XML

Last updated: June 1st, 2009

How to get XML content in cakePHP controller?

App::import('Xml');
$url = Server.Mappath("file/xml_file.xml");
$parsed_xml =& new XML($url);
Dec 31
2008

Setup cakePHP framework – stable version 1.2.0.7962 released

Last updated: December 31st, 2008

CakePHP commonly known as ‘Cake’ is easy to install and faster to configure. It needs Apache (with mod_rewrite enabled), Php 4.3.2 or higher, MySQL/PostgreSQL/other ODBC, ADODB compliant databases.

XAMPP by ApacheFriends or MAMP has a complete installation of the above products which is an ultimate time saver. But, you should prefer installing each software individually in order to get a grip on the subject.

You can download the latest release from http://cakeforge.org/frs/download.php/695/1.2.0.7962.tar.gz (more…)

Dec 30
2008

How to run Unix commands in windows?

Last updated: December 30th, 2008

A programmer may face acute conditions when working on PHP/MySQL on windows platform where he/she needs to configure certain settings or fine tune parameters or set permissions which involve usage of unix commands.

For e.g. if you had a chance working with CakePHP framework or configuring it on windows, you might have come across this situation.

Now, Windows users have the possibility to run unix commands by installing a command-line interface (CLI) such as Cygwin (http://www.cygwin.com) or MinGW (http://www.mingw.org) to lauch the CLI on windows environment.


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict