security

2007-07-29 Thread monty
Hi there, I have an web application I have built for a company in Cake where I want internal users to access certain controllers 192.168.1.173/cake/internal say. External users should only be able to access mydomain.com/cake/external/ from the same application. What would be the best way to set t

route confusion

2007-05-02 Thread monty
after reading some of the posts i'm a bit confused about routes on my local machine I have localhost/app/pub/action1 localhost/app/pub/action2 etc.. I want my links to be like echo $html->link('go here','/action1') to go to /pub/action1 etc.. I want this to work the same on local and live serve

Re: weird production mode error

2007-05-01 Thread monty
irectory is writable and has the right layout. In particular > you might clear out > > tmp/caches/models > > in your apps folder > > Sam D > > On 5/1/07, monty <[EMAIL PROTECTED]> wrote: > > > > > > > I'm getting a strange problem where

weird production mode error

2007-05-01 Thread monty
I'm getting a strange problem where if I'm in production mode, a postgresql column called 'keywords' is not getting updated using the $this->Model->save() function. When i'm in debug mode, it works fine. A similar problem also happens when I query a certain postgres table called 'offers' with the

updating a record

2006-06-08 Thread monty
Hi to all cake bakers, I am using session based authentication and I want to update a record based on information supplied on a form submission. If i use the standard save function, the record will be saved based on the id of the record i supply update some record WHERE ID = $ID The problem

saving a record

2006-06-08 Thread monty
I'll use a basic examle to explain my question. I have two tables with the containing fields: Customer => id, name , address, etc Purchase_order => id, amount, item, customer_id In the customer's management screen, he can see a list of purchase orders and update them via a form. I use the mode

Re: how to organise this app

2006-06-07 Thread monty
my application is similiar with admin/client/user. Roughly speaking, each model represents a table. For a small application I would create a controller for each admin, client and user, but there are no hard and fast rules for this. You may split your controller into smaller chunks for whatever rea

Re: Caching

2006-06-07 Thread monty
i don't change the name of the image, but shouldn't i be able to tell the browser not to cache it? --~--~-~--~~~---~--~~ 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@goog

Caching

2006-06-06 Thread monty
I have a controller that handles all management functions for my application. I have a particular action that uploads images and then redisplays them in a view. Sometimes when I upload a new image, the old one is still displayed. Is there someway I can totally disable caching for a view through a

Re: Single field, multiple validation errors

2006-06-03 Thread monty
Mika wrote: > To clarify, once using the advanced validation, you can add the > validation needed to the model even if the field is not in the table. Advanced validation? *sigh*, It shouldn't be that hard. i'd prefer to use the "hacky" way. --~--~-~--~~~---~--~

select tag annoyance

2006-06-01 Thread monty
I want to generate a selection with Australian states so i used the following.. $html->selectTag('Customer/state',array('NSW','QLD','ACT','VIC','WA','SA','TAS','NT'). This generates the following NSW QLD etc I dont need values set to "0","1", etc. I need the display values to be the

Re: selection lists

2006-06-01 Thread monty
fantastic! thanks alot --~--~-~--~~~---~--~~ 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]

selection lists

2006-06-01 Thread monty
i want to fill a selection list based on a table of data called Region. It has two columns, id and region (containing the actual name of the region). To do this i wrote code below. Is there a faster, less convoluted way? This seems like a common task and should be an easier way. Thanyou. controll

Re: redirecting

2006-06-01 Thread monty
there's no reason i suppose not to include the controller name, it's just that i would have expected this behaviour similuar to $html-link('methodname'). -its all good. Thanks for the solutions. --~--~-~--~~~---~--~~ You received this message because you are subsc

redirecting

2006-05-31 Thread monty
after playing around with the redirect function i figured out that to redirect to a method within the same controller you put $this->redirect('ControllerName/methodName'); is there a way to redirect to a method within the same controller without specifying the controller name? ie, defaults to the

Re: accessing models

2006-05-30 Thread monty
thankyou to all your responses. I wasn't asking in order to solve a particlar problem but just wanted to know how it all fits together. I think its probably wise not to do this anyway, and work from the controller when working with more than one model, but handy to know. --~--~-~--~---

accessing models

2006-05-30 Thread monty
hi there, this is probably already been posted , but cant' find. How do you access a Model from within another Model. Thankyou. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this grou

instantiating a model

2006-05-26 Thread monty
I am fairly new to Cake, but have been reading a bit of RoR. I'd actually prefer to us Cake because of speed and deployment issues. Just wondering how you instantiate a model class within your controller. In RoR the 'find' method actually returns objects but in cake seems to return just an array

getInsertID

2006-05-05 Thread monty
I'm using the first stable version of Cake and postgres. I'm performing a query using Model->query function to insert a new record and i want to get the last inserted id from this query using Model->getInsertID. Howeever this function gives me blank. It works however if i insert a new record using

Newbie setup

2006-04-29 Thread monty
Hi all, I am running through the posts tutorial on the Cake site and got stuck when come across $this->Post->findAll(); After setting my degub level to 2, letting me see my sql output, i got the following Notice: Undefined offset: 0 in C:\Program Files\Apache Group\Apache2\htdocs\vouchme_cake\cak