requestAction (v1.22) - User input being returned to calling action, preventing form validation

2009-03-23 Thread Hoddy

Hi

version 1.22

I am trying the run a form using requestAction, however the user input
($this->data) is being returned to the calling action when i submit
the form, which is preventing the form validation from running in the
requested action.

I call requestAction like this ..

$this->requestAction( array('controller'   => $controller,  'action'
=> $action),
   array('return')
);

I want the user input to be validated in the requested Action instaed
of being returned to the calling action

Incase you are wondering, I am trying to build a wordpress like
application with a central catch all controller for
easier routing of non admin pages.

Many thanks in advance

chris




--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



email component links not including domain name

2008-08-30 Thread Hoddy


cake ver: RC 1.20796 (latest version)

Hi

Has anyone noticed that links are created without the domain name when
using them in elements for the email component?

I'm using same syntax that i use elsewhere in views where the domain
name
appears in the link

the code im using is...

link('view the advert details on the website...',
   '/adverts/view/'. $Advert['id']  ); ?>


which renders the link as ...

http://adverts/view/1


I have hard coded the link in the element to get round this, but it
either looks like a bug in the component or that im doing something
stupid

Anyone seen similar ?

thanks in advance

Chris



--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



using htaccess to force HTTPS on /myaccount

2008-02-13 Thread Hoddy

cake1.1, apache1.3

Hi

could anyone please shed any light on using htaccess to force a
section of the site (ie myaccount) to use https.

The problem is that ALL requests get redirected to HTTPS instead of
just those to /myaccount/*


My htaccess in root dir looks like:

RewriteEngine On
RewriteBase /

# force myaccount urls to be HTTPS
RewriteCond %{SERVER_PORT !^443$
RewriteRule myaccount https://%{HTTP_HOST}/$1

# standard cake htaccess below
RewriteRule^$ /app/webroot/[L]
RewriteRule(.*) /app/webroot/$1 [L]


many thanks in advance

chris
--~--~-~--~~~---~--~~
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, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---