.htaccess on IIS7???

2009-04-17 Thread Future22
Hello Cake Community, I uploaded the latest version of CakePHP to my share hosting server on GoDaddy. The CakePHP default page appears but with no CSS styles. The page appears with a white background and black text. I loaded the same version on my mac (with MAMP) and the page appears with the C

Re: user Profile protection howto

2009-02-19 Thread Future22
Yes, that is the basic idea so that we can avoid sql injections, etc. and. Custom component it is but I thought there would be on out there somewhere that we could piggy back off of. Thank you... On Feb 19, 6:09 pm, BrendonKoz wrote: > Future22:  I'd imagine a custom component

Re: user Profile protection howto

2009-02-19 Thread Future22
Make sure your Auth session is set as well function edit($id=null){ If ($id==$this->Auth->user('id')) { user can edit } else { redirect... } } On Feb 19, 4:45 pm, amarradi wrote: > On 19 Feb., 22:31, Future22 wrote:> If > ($this->params

Re: user Profile protection howto

2009-02-19 Thread Future22
If ($this->params['id']=$this->Auth->user('id')) { user can edit } else { redirect... } On Feb 19, 3:49 pm, amarradi wrote: > Thanks > > But how do i realize this > > i tried in my user edit action such condition in the first line > > f($this->data['User']['id']!=$this->Auth->user('id'))

Re: user Profile protection howto

2009-02-19 Thread Future22
But this raises another question... What if the user types in 30 but the record does not exist? or if the user types in a non-integer? so we would have to check if it exists and if it is an integer. Custom component/function maybe to do these checks on each page (cotroller/ action/id)? Is there

Re: simple and complete file upload behaviour

2009-01-26 Thread Future22
Looks good Smelly_Eddie, but what about storing files on the server (ex: pictures, etc.) instead of the database? Thanks! On Jan 26, 9:41 am, Smelly_Eddie wrote: > Daniel Hofstetter has a great article on uploading files to a > database. > > If the size of your files is limited(pdfs, docs, etc)