Re: Clearing Cookies

2006-08-24 Thread Simplerules
I do, but it is always cleared. I set it to last for ten years, but when I revisit the site after a session has expired - the cookies are cleared, its not a browser problem or setting since it happens to Opera and IE. --~--~-~--~~~---~--~~ You received this messa

Clearing Cookies

2006-08-24 Thread Simplerules
When a Cake PHP session expires, does it clear all the cookies set? I have a login script which sets a remember me cookie and a few other details, it stores them in a Cake PHP session when viewing the site - but when I return to the site after the Cake PHP session has expired, all cookies are del

Re: Pages

2006-08-24 Thread Simplerules
I created page1.thtml in the views/pages but got this errror when I try to view pages/page1 Missing Method in PagesController You are seeing this error because the action page1 is not defined in controller PagesController Notice: this error is being rendered by the app/views/errors/missing_acti

Pages

2006-08-24 Thread Simplerules
What purpose does the pages folder in views serve? --~--~-~--~~~---~--~~ 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, sen

Re: Checkbox Problem

2006-08-24 Thread Simplerules
I guess the CakePHP manual is out of date: "checkbox string $fieldName array $htmlAttributes boolean $return = false" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send ema

Checkbox Problem

2006-08-24 Thread Simplerules
I have this in a view file: checkbox('User/Coppa', array('onclick' => "watch('data[User][Coppa]', 'regform', 'birthdate', 'Coppa')")); ?> but the html attributes are not added. The form comes out like this: --~--~-~--~~~---~--~~ You received this messag

State List

2006-08-24 Thread Simplerules
This isn't specifically a Cake PHP problem, but does anybody know where I could find a list (preferably in SQL or PHP Array format) of all the states/countys in the world, for each country? I am creating a registration form and need have done the Country List, now I need the State list. --~--~

Loading Time

2006-08-24 Thread Simplerules
When using the layout AJAX to output data, a HTML comment with loading time is added and it is screwing up my scripts. How can I remove it? I checked the AJAX layout file and can't see it. --~--~-~--~~~---~--~~ You received this message because you are subscribe

Giving a Form a Name

2006-08-24 Thread Simplerules
Is it possible to assign a name tag to a form generated using the helper? --~--~-~--~~~---~--~~ 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 unsubscri

AJAX - Filling a dropdown

2006-08-24 Thread Simplerules
Is there a way to fill a dropdown using AJAX? (I have prototype and script.alico.us). --~--~-~--~~~---~--~~ 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

Re: AJAX - Form Validation

2006-08-23 Thread Simplerules
I tried to include the 'Ajax' helper but it could not find it. var $components = array('Cookies', 'Logins', 'Geoip', 'RequestHandler'); var $helpers = array('AJAX'); It says You are seeing this error because the view helper file app\views\helpers\ajax.php can't be found or doesn'

AJAX - Form Validation

2006-08-23 Thread Simplerules
I am trying to use AJAX to validate a form, I have a tick box next to my register form inputs. So when a user enters a username, I want the javascript to call the script and get a response wether the username is taken. I have looked at the AJAX helper manual and can't find much to help me, I've l

Generate Password

2006-08-23 Thread Simplerules
I am writing a Users Controller and need to generate a password if somebody has forgotten theirs, what is the cleanest way to generate a short password with numbers and letters? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Post Page Function

2006-08-22 Thread Simplerules
Is there a way for me to set a function to run at the end of every page load? --~--~-~--~~~---~--~~ 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 unsu

Post Page Function

2006-08-22 Thread Simplerules
Is there a way for me to set a function to run at the end of every page load? --~--~-~--~~~---~--~~ 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 unsu

Re: Configuration Table

2006-08-22 Thread Simplerules
Right I have that done, now I need to get the data into a cleaner assoc array. Its coming out like this: " "Array ( [0] => Array ( [Configuration] => Array ( [key] => sc_countries [value] => US,CA [group] => language_control [description] => Countries for which content will be provided, content

Re: Configuration Table

2006-08-22 Thread Simplerules
A model doesn't require a controller then? --~--~-~--~~~---~--~~ 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

Configuration Table

2006-08-22 Thread Simplerules
I want to create a component that will access a configuration table I created. How would I let the component access a MySQL table that does not belong to a controller? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Use Component in Model

2006-08-22 Thread Simplerules
But how can I use it in a model? --~--~-~--~~~---~--~~ 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

Use Component in Model

2006-08-22 Thread Simplerules
How do I use a component in a model? Even adding " var $components = array('Cookies', 'Logins');" doesn't load it. *Screwed up the last thread, confusing lingo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Use Controller in Model

2006-08-22 Thread Simplerules
How do I use a controller in a model. I have a model User and need to use the controller Logins, even adding " var $components = array('Cookies', 'Logins');" at the start of the model doesn't load it. --~--~-~--~~~---~--~~ You received this message because

Re: How to test for the current model?

2006-08-22 Thread Simplerules
Thanks :) That worked. --~--~-~--~~~---~--~~ 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

Re: How to test for the current model?

2006-08-22 Thread Simplerules
Well, I have the component 'Logins' and the model 'Users'. I need to access a function in 'Users' model. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Raw Query

2006-08-21 Thread Simplerules
So how would I use a function in the model User, from a seperate component? :) --~--~-~--~~~---~--~~ 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 uns

Re: Raw Query

2006-08-21 Thread Simplerules
Yes. --~--~-~--~~~---~--~~ 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] For more options,

Re: Raw Query

2006-08-21 Thread Simplerules
Yes, it has a Model. 'Users' is a fully working area, but I need to access some data from the table Users in this component. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Raw Query

2006-08-21 Thread Simplerules
How do I do a raw SQL query? I need to access a table called 'Users', which belongs to UsersController, in a component Logins - is there a way to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Cookies

2006-08-21 Thread Simplerules
I am using this to set cookies: setcookie($Name, $Value, time()+$Length) and it works, except the cookies are not accessible in CAKEPHP. The cookies (unlike the CAKEPHP cookie) are set to cake_1.1.7.3363/ while CAKEPHP is set to cake_1.1.7.3363 ; When I do a print_r($_COOKIE) I only find the CAKE

Re: User Bar Logic

2006-08-20 Thread Simplerules
No matter what I do it won't work here is the code: //Get User Data; $Profile = $this->Session->read('User'); if(isset($Profile['Username'])) { $this->set('logged_in', TRUE); $this->set('username', $Profile['Username']); } else { $thi

Re: User Bar Logic

2006-08-20 Thread Simplerules
No matter what I do it won't work here is the code: //Get User Data; $Profile = $this->Session->read('User'); if(isset($Profile['Username'])) { $this->set('logged_in', TRUE); $this->set('username', $Profile['Username']); } else { $thi

Re: User Bar Logic

2006-08-19 Thread Simplerules
Nobody? --~--~-~--~~~---~--~~ 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] For more optio

User Bar Logic

2006-08-18 Thread Simplerules
I need to send 2 variables to the default template file, 1 to say wether a user is logged in and the other containing the username. I tried using appController to do this, with a beforeFilter, but it wasn't availible for the default template. Where could I put the logic code so that I could set

Images in CSS

2006-08-18 Thread Simplerules
How can I use images in the CSS file? I need to get the correct file location - which would need to be set by Cake PHP. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

Check Controller

2006-08-18 Thread Simplerules
I have a function in app controller, which will check if a user is logged in and if not - then they will be redirected to a login screen, the problem is I need to know if they are already at the login screen or at the register screen. How could I check from app controller? --~--~-~--~--

Remove Powered By

2006-08-17 Thread Simplerules
I couldn't find the exact license on the site, do I have to leave in the 'Powered by CakePHP' icon and reference?. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

Change Template

2006-08-17 Thread Simplerules
I just setup CakePHP, how can I change the default main HTML wrapper? The one that titles pages CakePHP and has a powered by CakePHP icon in the footer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: Routine Page Tasks

2006-08-17 Thread Simplerules
Would that require me to put the the same beforeFilter in each controller, or would I put that in app_controller? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Routine Page Tasks

2006-08-17 Thread Simplerules
I want to do an routine check of permissions on every page/visit/execution, where would the best place to put the code be? Its only a function call, a function set in app_controller, but where should I put the call so it executes on every single load? --~--~-~--~~~--