You don't need to use mod_rewrite to share one cake core with multiple apps.
Instead, in app/webroot/index.php change the following:
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
To
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', D
I did something similar using the relations of the main model in this
instance. In this case the model 'Message' could be associated with
different things, 'Product', 'Invoice', etc. There were only a few, so I
made a separate relation for each using the 'conditions' parameter to filter
by relate
You can't rewrite in userDir directories, since they are already rewritten:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
On Wed, Feb 3, 2010 at 9:20 AM, cherif_Gsoul wrote:
> hi, i need help for installing cakephp in a linux's public_html
> directory exactly fedora 12, i put cakephp in
Probably a couple of things. First, I would remove the onclick argument
from $html->link() and return false from the jquery function. Second, I
think you need to supply a callback function in your $.post() call to update
whatever element in the dom you want. Currently, it looks like cake is
rend
I actually just noticed the same behavior today. For testing an email
method, I called it at the end of an index action. I got two copies of the
email. Normally, the mail will be sent after filtering through some
conditionals, so I don't think it will be a problem. I do have a connect
method as
I've had to do something similar with users in different scopes being in
completely different tables.
I handled it by first making sure all admin actions had admin => 1 in their
urls.
Then in the app_controller's beforeFilter, I checked for an admin action.
If found, I initialized the Auth compon
You have a name collision for starters. The class Topic has the name Topic,
and its Associations have the same name. You can try changing the aliases
like hasMany ChildTopic and belongsTo ParentTopic. Just make sure to keep
the className as Topic.
Jeff
On Sat, Nov 14, 2009 at 1:22 PM, LancerF
You will need to use App::import to make those files available.
You can load mvc and vendor code in from anywhere as well by creating some
arrays in config/bootstrap.php if your app shares code with others.
See http://book.cakephp.org/view/36/Additional-Class-Paths
Jeff
On Mon, Nov 9, 2009 at 9
If we are voing in the thread, I choose USA East Cost.
If not, where do we vote?
Jeff
On Thu, Nov 12, 2009 at 10:43 PM, Graham Weldon wrote:
> Hi all,
>
> The CakePHP team has been considering the location for the next upcoming
> CakeFest.
> We've decided to bring it back home to the United Sa
I was able to find a workaround using mod_rewrite (a module that continues
to amaze me with its usefulness). So for anyone else who needs to use the
http authentication methods of the Security Component while running php
through cgi, here's what I did to get it working:
In the .htaccess file in th
10 matches
Mail list logo