How can I tell which CakePHP version is a project made with?

I have found that the version, as of CakePHP 2.3.0, is held within a static file under the root Cake lib. bash #: cat $CAKE_ROOT/lib/Cake/VERSION.txt //////////////////////////////////////////////////////////////////////////////////////////////////// // +——————————————————————————————–+ // // CakePHP Version // // Holds a static string representing the current version of CakePHP // // CakePHP(tm) : Rapid Development Framework (http://cakephp.org) // Copyright 2005-2012, … Read more

What is the equivalent to getLastInsertId() in Cakephp?

CakePHP has two methods for getting the last inserted id: Model::getLastInsertID() and Model::getInsertID(). Actually these methods are identical so it really doesn’t matter which method you use. echo $this->ModelName->getInsertID(); echo $this->ModelName->getLastInsertID(); This methods can be found in cake/libs/model/model.php on line 2768

symfony vs cakephp [closed]

Just to balance out this thread, this is why I like symfony: uses PHP5 it runs some really big sites like Yahoo! Answers, delicious, and Daily Motion. good documentation. the jobeet tutorial on the website is awesome. walks you straight through all of the features, and after you are done you feel like you can … Read more

Request exceeded the limit of 10 internal redirects due to probable configuration error

I just found a solution to the problem here: https://willcodeforcoffee.com/cakephp/2007/01/31/cakephp-error-500-too-many-redirects.html The .htaccess file in webroot should look like: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule> instead of this: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /projectname RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] </IfModule>

What is /var/www/html? [closed]

/var/www/html is just the default root folder of the web server. You can change that to be whatever folder you want by editing your apache.conf file (usually located in /etc/apache/conf) and changing the DocumentRoot attribute (see http://httpd.apache.org/docs/current/mod/core.html#documentroot for info on that) Many hosts don’t let you change these things yourself, so your mileage may vary. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)