| CakePHP Official Site · Rules and Regulations |
Help
Search
Members
Calendar
Shoutbox
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| jonmbutler |
Posted: Sep 7 2009, 08:43 AM
|
|
Newbie ![]() Group: Members Posts: 1 Member No.: 1551 Joined: 7-September 09 |
Hi there forum.
I have been programming php for some time and have got fed up reinventing the wheel, so thought I would try cake. I am getting my head round it and it looks like the console and bake would be useful (for relationships between models and creating basic controllers and views.) But my server is a web host and I do not seem to have the capability to get a command line shell (they run cPanel). All of the material I have seen assumes that you are in front of the server and can get a command line prompt. Does anybody have any links to resources which could be useful, either to point to add-ons which will do it interactively through web pages, or some other way? Or maybe I should just set up a local server, bake it here and then upload the cake? Would be grateful for comments. Thanks. Jon |
| LarryTX |
Posted: Jun 2 2010, 01:04 PM
|
|
Newbie ![]() Group: Members Posts: 2 Member No.: 2081 Joined: 2-June 10 |
By far the easiest thing to do is set up a localhost Web server. I use XAMPP (http://www.apachefriends.org/en/), but there are many other equally usefult server setup combination applications.
If you're on a Windows platform and set up a local server, there are numerous tutorials on how to set up the Windows console for Bake. It's actually very easy. Alternatively, you may be able to get your hosting service to give you "shell" access. (I use HostMonster, and they've done that.) Usually, you have to call them and ask for it. |
| mark_germany |
Posted: Jun 3 2010, 03:37 PM
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 183 Member No.: 573 Joined: 27-July 08 |
thats right
set up a local environment to code and only ship the modified files to the live server but you should implement the clearcache functionality and other quite useful console tricks as some kind of configuration module in your app in order to update flawless. thats how i did it i also use a cake shell script i once wrote which just uploads the "delta" to the server. so its like 2 seconds to update the live server + mysql delta update via phpmyadmin + another few seconds to call the clearcache configuration module action in order to reload database fields, paths etc nothing easier than that |
![]() |
![]() ![]() ![]() |