including snippets/code library in (all) controllers and components

2009-07-19 Thread Q
Hi, I find myself repeating myself with some simple code snippets i have functions for simple tasks that i tend to repeat often (like finding a unique filename from a directory and grabbing a files extension etc etc), I put these functions inside components that i have written as well as controll

medie views problems with filenames

2009-03-09 Thread Q
as come accross this behaviour before, or knows the reason that its happenign i would be very interested in hearing about it - thanks in advance. Cheers, Q --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP&

Re: problem with Tree behaviour

2009-01-11 Thread Q
[update] - problem is with the 'AND NOT' syntax it seems - looking around for alternative method now, if anybody can think of alternative syntax that is more globaly compatible with later versions of mysql then that would be great. this looks like its going to require modification to the core of

problem with Tree behaviour

2009-01-11 Thread Q
5.0.51a-3ubuntu5.1 doesnt seem to like that syntax - any ideas? Cheers, Q --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscri

Re: What kind of authentication script?, tutorial? do you use?

2008-05-09 Thread Q
try this: http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ worked for me, doesnt go as deep as ACL's but is a good start... Louie Miranda wrote: > Thanks everyone. > > All along, I thought CakePHP does not have a default authentication. But > from clark ryan's post and I also re

Re: Acl Cake 1.2

2008-05-01 Thread Q
I found this really useful, http://www.webdevelopment2.com/cakephp-auth-component-tutorial-1/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroup

Re: Auth Componant question

2008-05-01 Thread Q
Hi, I've actuall just sussed this out so i'm going to post the solution here incase anyone else searches on this problem: I put this in my app_controller inside function beforeFilter: //this first line tests to see if the user is in the admin group - in this case with the ID of 1 if ($this->Au

Auth Componant question

2008-04-30 Thread Q
Hi, I have a project setup to authorise access to both admin pages (admin routes) and public pages using different groups for acess levels (eg user and admin) everything works fine - except i want to be able to redirect to 2 different pages (areas) for admin or users on login so for example user

belongsTo - saving data to two tables

2006-07-10 Thread Q
Hi, This is probably going to be a fairly obvious fix, but its got me stumped. I have 2 tables users and counsellors. The counsellors table is associated with the users table (belongsTo) and the users table to counsellors via hasOne. What i want to achieve is to have a user automatically creat