Enter your contact information.
Enter your project information.
Step 3Choose the PHP programmers you want to hire.
Compare Free PHP Quotes
Developing a blog with CakePHP
*Attention PHP Programmers* - Add A Free Listing! Get more clients.
We would be covering the following topics in this series
- Installing and Configuring CakePHP
- Understanding MVC
- Creating a simple blog
- Adding advanced features to your blog – Understanding Models, Views, Controllers in Depth
- Understanding Helpers
- Ajaxifying comments, adding content summary and Gravatar to your blog
- Securing your blog
In this article, we’ll just take a look at installing and configuring CakePHP.
Download the latest version of CakePHP framework from CakePHP.org. Make sure to download the stable release and not the release candidate.
Unpack the contents of the Cake archive inside the “www” folder of wamp or mamp directory.You now have a folder in your document root named after the release you’ve downloaded. We will rename this
folder to “newblog” (or you can have any name of your choice) . The directory structure inside this folder should look something like this:
We would be doing all our work inside the app folder. The cake folder stores all the core functions for CakePHP. Make sure that you do not edit anything inside this folder. The vendors folder is where youíll place third-party PHP libraries you need to use with your CakePHP applications.
You will notice that there are several other folders inside the app folder. We will take a look at each of them as we go on developing our blog.
Configuring Cake PHP
Configuring Cake PHP is pretty easy. Go inside the app –> Config folder and open the database.php.default file with your favorite editor. Scroll down to the following array in the file:
< php var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'username', 'password' => 'password', 'database' => 'databasename', 'prefix' => ', ); ?>
Enter your login, password, database name and save the file as database.php. That’s it!
Open you browser and go to http://localhost/cakephp. You should now see the following success page:
However, you might see a colorless page like this:
It means that rewrite_module is not enabled in your Apache Server. To do so, click on the wampserver icon in your system tray and go to Apache–>Apache modules and click on the rewrite_module in the list to enable it. It should work fine after rewrite_module has been enabled.
So, now that you’ve CakePHP up and running, we’ll move on to the next step in subsequent article. Do leave your comments if you’ve any doubts regarding this article.
Source http://query7.com/?p=1046Fri, 11 Feb 2011 07:13:46 GMT
Tags: php,
*Attention PHP Programmers* - Add A Free Listing! Get more clients.
php
Using Proxies with cURL in PHP
If you are new to using PHP and cURL please refer to the PHP cURL tutorial. It covers why you should using cURL (as opposed to file_get_contents) and goes over how to make cURL requests with a custom class.
A Look at PHP 5.3 Frameworks – Symfony2
Ever since PHP5.3 was released we have seen several new frameworks pop up in the PHP community. In this series of articles we will look at and evaluate some of the next generation PHP frameworks. Today we look at S
Skytec Web Hosting is California based internet services company that specializes in web hosting solutions for corporate companies, small business enterprises, webmasters and individuals.
Petaluma, California US
We at I-Soft Solutions provide other web services which include Customized Static Web Design, Dynamic Web Development in PHP Mysql, Web Hosting, Domain Name Registrations, Website Maintains Etc.
Navi Mumbai, Maharashtra IN
Spectrum Nashville is committed to providing reasonable, excellent business technology solutions that simply work.
Franklin, Tennessee US
IceStar Media are a successful team of website designers, IT consultants and software programmers who have a proven track record in designing and delivering reliable business applications and websites
Stevenage, England GB
PHP/MySQL Web Developer 15+ years experience. We are a team of developers and designers. Address: 3513 E Russell Road, Las Vegas, NV Call us: 877-704-0005 or 702-509-5050
Las Vegas, Nevada US
Who Swears the Most? How Foursquare Used Hadoop to Find Out
We told you who swears the most in their code, but what about in the real world? Foursquare, the loc
Yes Virginia, That Is Linux Running on JavaScript
JavaScript never seems to get any respect. It’s not a real programming language, detractors co
Opera 12 Alpha Adds Hardware Acceleration
Opera software recently cranked out a new alpha version of its upcoming Opera 12 web browser. Opera
ThinkUp Wants to Liberate Your Online Social Life
The corporate social web still sucks. All your social connections live on some company's server and
Slide Show Time: Building a Future-Friendly Web
Embedded above is an excellent presentation by Brad Frost. Below you can find a video that goes alon
Article Tags
PHP Programmers Articles
Live Help Chat Software
Web Design Quote
Web Design

