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
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
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
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';
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
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'))
{
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
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
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
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
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.
--~--~-~--~~-
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.
--~--~-~--~~~---~--~~
( 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
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
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
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
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
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
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
(
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
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
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,
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
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
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
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
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
> 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
28 matches
Mail list logo