Re: bug in dispatcher.php ?

2006-04-14 Thread AD7six
Interesting problem, just so you don't feel alone: Note that the Wiki isn't built on cake, and the main site, which is (http://www.cakephp.org/%CE%B5%CE) breaks too ;o). Setting debug to 0 as RosSoft suggests, may prevents such errors - http://www.noswad.me.uk/%CE%B5%CE fails nicely, but on my

Re: bug in dispatcher.php ?

2006-04-14 Thread RosSoft
1. maybe you have to hack a little your $_GET['url'] within core.php or other config file loaded before dispatcher.php loads 2. try setting DEBUG to 0 in your core.php, i think that the path will not be shown --~--~-~--~~~---~--~~ You received this message becaus

Re: $this->params ??Where are they set

2006-04-14 Thread bigdog
Thanks for the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] F

Re: Dynamic database switching

2006-04-14 Thread nate
It is also possible to dynamically change the database to which a particular connection is bound, as follows: $db =& ConnectionManager::getDataSource('default'); $db->disconnect(); $db->config['database'] = 'new_database';

Re: $this->params ??Where are they set

2006-04-14 Thread nate
Controller::$params is set in the Dispatcher, however, another way to pass or modify parameter data is through routes and app/config/bootstrap.php, where you can modify $_GET['ur']. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Dynamic database switching

2006-04-14 Thread 100rk
What about this code? class AppModel extends Model { function __construct($id=false, $table=null, $ds=null) { //needs set correct $base by way You like $base = null; $session = new CakeSession($base); if ($session->checkSessionVar('useDbConfig')) {

Dynamic database switching

2006-04-14 Thread josh southern
Anyone know how to dynamically switch databases (or DbConfigs) based on Session variables? Basically, I have several clients that will share one app, but each have their own DB. I need to switch between them based on who is logged in (user data stored in separate DB and each having a 'database' f

$this->params ??Where are they set

2006-04-14 Thread bigdog
Hi, Where is $this->params array set? Inside of controller.php? I am hacking my url and I want to attach variables to the $this->params array. For example $this->params['myvariable'], store 'my variable'. Thanks for your help, Bill --~--~-~--~~~---~--~~ You

Multi user login

2006-04-14 Thread Vixiom
I've been poking around the manual/docs and the google cake group and there doesn't seem to be one way of logging users in/out. I want to make a multi user login (open to the public) that let's you only see your account info. I saw someone made a component for pear auth is that the way to go? I a

Re: CakeAMFPHP 0.4.0 is hot!

2006-04-14 Thread [EMAIL PROTECTED]
This is something that I cannot wait to play with. Absolutely amazing technology and integration from what I can tell. Also, this will finally allow me to have a dynamic Flash site that can also be indexed by Google as seperate pages and go straight to them with a little working. Amazing soluti

Re: saveField problems

2006-04-14 Thread nate
Not really. The 'id' property is the Model's representation of the primary key. Sort of a universal way to represent the primary key to other objects. This also makes perfect sense, since the model holds it's data in the $data array, not as object properties. --~--~-~--~~-

Re: bug in dispatcher.php ?

2006-04-14 Thread magnetism
I do use english for the actions' and controllers' names. I just would not like people breaking my application or displaying sensitive data like the path in the server Try this: http://wiki.cakephp.org/%CE%B5%CE It does not break. Mine does. --~--~-~--~~~---~--~~

Re: know which method of controller is call directly from layout

2006-04-14 Thread Naonak
( In the case in requestAction is do in view of the rendered element ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: saveField problems

2006-04-14 Thread josh southern
That worked, but the field in the database table is upper-case (old app I'm porting over to Cake)... That's a little odd that it won't work with either... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" g

Re: know which method of controller is call directly from layout

2006-04-14 Thread Naonak
And how know too renderElement who are call directly from layout to the same goal ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com T

know which method of controller is call directly from layout

2006-04-14 Thread Naonak
How know which method of controller is call directly from layout (with requestAction) ? The goal is to know if it to late to load files like js or css for the requested controller concerned. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: saveField problems

2006-04-14 Thread nate
Try: $this->Customer->id = $id; (note the case). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send

Re: bug in dispatcher.php ?

2006-04-14 Thread nate
Well, I guess the quickest fix would be to use English. Unfortunately, Cake won't officially support internationalization until 2.0. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

saveField problems

2006-04-14 Thread josh southern
Hello, I'm having a great deal of trouble with saveField. I have a form that allows a user to input prices for many records at once, with one submit button. It spits out an array with the id of the record as a key and the price as its value in $this-params['data'] that looks like this: Array (

Re: bug in dispatcher.php ?

2006-04-14 Thread magnetism
Apache however, would understand it. So, is it an issue with cakephp? Any quick fix? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com T

Installation Problem - open_basedir restriction in effect

2006-04-14 Thread Kit
I get the following errors when setting up cakePHP in the production setup. Warning: main() [function.main]: open_basedir restriction in effect. File(C:\php5\pear/cake\bootstrap.php) is not within the allowed path(s): (D:\Inetpub\Customers\perfectwebhosting\3497-mrkws\ns.marik.ws) in D:\Inetpub\C

Re: bug in dispatcher.php ?

2006-04-14 Thread nate
Yeah, when you click on the link, look how the URL is encoded. Cake is not able to decode/understand what to do from the URL. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: bug in dispatcher.php ?

2006-04-14 Thread RosSoft
I think that greek characteres in an URL isn't standard. Try URL-encoding the parameters http://es.php.net/urlencode --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

bug in dispatcher.php ?

2006-04-14 Thread magnetism
Hi! I have created my first app in cakephp! :) Congratulations, it is an excellent tool! This is a temp url for the application: http://www.webhostdir.gr/contents I have created the app/views/errors/missing_action.thtml and missing_controller.thtml files with the contents: so that any non exis

Re: findBy results

2006-04-14 Thread Mika
Ok, I think I see what the problem is. In a model: Client has many Transactions Client belongs to Title If I client->findAll I will get an aray with [Client] and then [Title] and [Transaction] on the top level (same level as each other), while if I do a transaction->findAll with a recursion of 2

Cake saving fields for HABTM table in reverse!

2006-04-14 Thread Jon Bennett
Hi, I thought I was going mad, but no, it was Cake! When I saving data in a HABTM relationship, it's reversing the field order, which means if I'm editing an event with an ID of 4, and making a relationship to a Tag with an ID of 25, it actually runs the following query: INSERT INTO events_tags

Re: Does Cake cache table data?

2006-04-14 Thread [EMAIL PROTECTED]
Thank you so much! I was overlooking.. fetchAll( ) certainly is called by findAl( ). Then, I will try debugging. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Re: CakePHP and open-source JavaScript-based GUI toolkit qooxdoo

2006-04-14 Thread 100rk
> I guess a rush of qooxdoo peoples to cake may be expected soon... I hope so ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To