Re: Complex Images Route

2010-09-23 Thread Kyle Decot
Probably but then wouldn't that kind of defeat the purpose of using
Cake?

On Sep 23, 1:34 am, Vivi Vivi  wrote:
> Maybe can be done within htaccess with rewrite rule.
>
>
>
>
>
> On Thu, Sep 23, 2010 at 8:28 AM, Kyle Decot  wrote:
> > I've tried the following w/ no success
>
> > Router::connect('/:model/:size\_:filename.:extension',
> > array('controller' => 'images', 'action' => 'server'),array(
> >                'model'=>'(blog|event|users)+',
> >                'size'=>'(t|m|l|o){1,1}',
> >                'filename'=>'[a-zA-Z0-9]+',
> >                'extension'=>'.(gif|png|jpg){3,3}',
> >                ));
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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 > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en
>
> --
> Vivihttp://photos.vr-3d.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Complex Images Route

2010-09-22 Thread Kyle Decot
I've tried the following w/ no success

Router::connect('/:model/:size\_:filename.:extension',
array('controller' => 'images', 'action' => 'server'),array(
'model'=>'(blog|event|users)+',
'size'=>'(t|m|l|o){1,1}',
'filename'=>'[a-zA-Z0-9]+',
'extension'=>'.(gif|png|jpg){3,3}',
));

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Complex Images Route

2010-09-22 Thread Kyle Decot
Anyone? I know this is possible. I've been trying off and on all day
today with no success.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Complex Images Route

2010-09-22 Thread Kyle Decot
I am attempting to make a route that will handle the generation of all
of my images. Basically I want it to be something similar to Flickr.
For example:

http://images.example.com/[models]/[sizes]_[filename].[extension]

[models] = (blog|event|user)
[sizes] = (t|s|l|o)
[filename] = example
[extension] = (png|gif|jpg)


I don't know how to write the route for this however. I've tried a
couple of different ways but I can't seem to get it to work. I'm by no
stretch of the imagination an expert of regex. Anyone willing to help
me out?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


.manifest File

2010-06-17 Thread Kyle Decot
I created a .manifest file in my webroot folder and I've linked to it
in my layout's html tag. The problem is I think that it isn't
returning w/ the text/cache-manifest type that is required. How do I
go about fixing this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Array to XML

2010-06-16 Thread Kyle Decot
I need to take an array that I have and turn it into something similar
to:





sdfsdfkdsjfdsfljdsflkjdsfkldsjf







Is it possible to do this without knowing the exact structure of the
array I'm providing. I want to be able to pass it pretty much anything
as this will be used in a bunch of methods. Thanks for any help you
can provide me with.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


BeforeFind not being called but AfterFind is

2010-04-06 Thread Kyle Decot
I have two different models, Skatepark and Weather. I am calling $this-
>Skatepark->read(). The Weather's beforeFind() never gets called but
it's afterFind() does. Any ideas why this is happening?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe, reply using "remove me" as the subject.


Re: Subdomain Auth Problem

2010-03-09 Thread Kyle Decot
Since I've done all of your suggestions an I'm still having no success
perhaps it's the way that I'm doing my subdomains. Here's how I'm
doing it. Let me know what you think. In my routes.php I have:

$subdomain = substr(env("HTTP_HOST"), 0, strpos(env("HTTP_HOST"),
"."));

if ($subdomain == 'api') {

}

else if(

Then in my hosting cpanel, I go to the subdomains tab and add a new
subdomain, and set my cake app directory as the path for the
subdomain. Is this an acceptable way of doing this or could this be
the cause of my problems.

On Mar 8, 5:28 pm, Kyle Decot  wrote:
> I inserted that but still when I go to blog.mysite.com and do 
> $this->Session->read(); in my app_controller.php's beforeRender() It doesn't
>
> contain my user information. Any other ideas or suggestions?
>
> On Mar 8, 3:05 pm, Bernardo Vieira  wrote:
>
>
>
> > I have it in my beforeFilter callback in app_controller:
> > $this->Cookie->domain = '.mydomain.tld';
>
> > Note that the '.' before your domain name is what tells the browser that the
> > cookie is valid for *.mydomain.tld.
>
> > On Mon, Mar 8, 2010 at 4:50 PM, Kyle Decot  wrote:
> > > Where do I set the realm for the session cookie? The security level in
> > > my core.php file is set to low.
>
> > > On Mar 8, 6:47 am, Bernardo Vieira  wrote:
> > > > You also need to set the realm of the session cookie to your domain
> > > > (it defaults to the hostname) and set the security level of the
> > > > security component below 2
>
> > > > On 3/8/10, Kyle Decot  wrote:
>
> > > > > Well my sessions.save is set to database in my core.php file. Also, I
> > > > > did $session->read() on my www page and I get all of my auth info,
> > > > > however if I do the same thing on, blog.mysite.com then auth is now
> > > > > empty. Any ideas on next steps to take towards solving this? Thanks
> > > > > guy.
>
> > > > > On Mar 7, 8:36 pm, Nabil Alsharif  wrote:
> > > > >> My first guess would be that you lost session data when you went to
> > > the
> > > > >> subdomain. Maybe because the session cookies weren't sent with the
> > > > >> requests going to the subdomain or maybe something else, I'm can't 
> > > > >> see
> > > > >> whats happening on your servers The point is it's easy to check 
> > > > >> if
> > > > >> the session was lost, that wold be the first thing I'd look at. Good
> > > > >> luck.
>
> > > > >> On Sun, 2010-03-07 at 15:25 -0800, Kyle Decot wrote:
> > > > >> > Yep. It's all one Cake App. Any ideas?
>
> > > > >> > On Mar 7, 11:43 am, cricket  wrote:
> > > > >> > > A subdomain is usually a completely separate site. Do you already
> > > > >> > > have
> > > > >> > > the same Cake app serving all of your subdomains?
>
> > > > >> > > On Mar 6, 5:34 pm, Kyle Decot  wrote:
>
> > > > >> > > > I have a couple different subdomains on my site but I am having
> > > > >> > > > some
> > > > >> > > > problems w/ the Auth Component. I login fine under the standard
> > > www
> > > > >> > > > subdomain but then if I go to a different subdomain, then I am
> > > no
> > > > >> > > > longer logged in. How do I make sure that my Auth login 
> > > > >> > > > persists
> > > > >> > > > across all of my subdomains?
>
> > > > >> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > > others
> > > > >> > with their CakePHP related questions.
>
> > > > >> > 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 > > > >> >  om>For more options, visit this group
> > > > >> > athttp://groups.google.com/group/cake-php?hl=en
>
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > > others
> > > &

Re: Subdomain Auth Problem

2010-03-08 Thread Kyle Decot
I inserted that but still when I go to blog.mysite.com and do $this-
>Session->read(); in my app_controller.php's beforeRender() It doesn't
contain my user information. Any other ideas or suggestions?

On Mar 8, 3:05 pm, Bernardo Vieira  wrote:
> I have it in my beforeFilter callback in app_controller:
> $this->Cookie->domain = '.mydomain.tld';
>
> Note that the '.' before your domain name is what tells the browser that the
> cookie is valid for *.mydomain.tld.
>
>
>
> On Mon, Mar 8, 2010 at 4:50 PM, Kyle Decot  wrote:
> > Where do I set the realm for the session cookie? The security level in
> > my core.php file is set to low.
>
> > On Mar 8, 6:47 am, Bernardo Vieira  wrote:
> > > You also need to set the realm of the session cookie to your domain
> > > (it defaults to the hostname) and set the security level of the
> > > security component below 2
>
> > > On 3/8/10, Kyle Decot  wrote:
>
> > > > Well my sessions.save is set to database in my core.php file. Also, I
> > > > did $session->read() on my www page and I get all of my auth info,
> > > > however if I do the same thing on, blog.mysite.com then auth is now
> > > > empty. Any ideas on next steps to take towards solving this? Thanks
> > > > guy.
>
> > > > On Mar 7, 8:36 pm, Nabil Alsharif  wrote:
> > > >> My first guess would be that you lost session data when you went to
> > the
> > > >> subdomain. Maybe because the session cookies weren't sent with the
> > > >> requests going to the subdomain or maybe something else, I'm can't see
> > > >> whats happening on your servers The point is it's easy to check if
> > > >> the session was lost, that wold be the first thing I'd look at. Good
> > > >> luck.
>
> > > >> On Sun, 2010-03-07 at 15:25 -0800, Kyle Decot wrote:
> > > >> > Yep. It's all one Cake App. Any ideas?
>
> > > >> > On Mar 7, 11:43 am, cricket  wrote:
> > > >> > > A subdomain is usually a completely separate site. Do you already
> > > >> > > have
> > > >> > > the same Cake app serving all of your subdomains?
>
> > > >> > > On Mar 6, 5:34 pm, Kyle Decot  wrote:
>
> > > >> > > > I have a couple different subdomains on my site but I am having
> > > >> > > > some
> > > >> > > > problems w/ the Auth Component. I login fine under the standard
> > www
> > > >> > > > subdomain but then if I go to a different subdomain, then I am
> > no
> > > >> > > > longer logged in. How do I make sure that my Auth login persists
> > > >> > > > across all of my subdomains?
>
> > > >> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > others
> > > >> > with their CakePHP related questions.
>
> > > >> > 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 > > >> >  om>For more options, visit this group
> > > >> > athttp://groups.google.com/group/cake-php?hl=en
>
> > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp
> > others
> > > > with their CakePHP related questions.
>
> > > > 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 > > >  om>For more options, visit this group at
> > > >http://groups.google.com/group/cake-php?hl=en
>
> > > --
> > > Sent from my mobile device
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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 > om>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Subdomain Auth Problem

2010-03-08 Thread Kyle Decot
Where do I set the realm for the session cookie? The security level in
my core.php file is set to low.

On Mar 8, 6:47 am, Bernardo Vieira  wrote:
> You also need to set the realm of the session cookie to your domain
> (it defaults to the hostname) and set the security level of the
> security component below 2
>
> On 3/8/10, Kyle Decot  wrote:
>
>
>
>
>
> > Well my sessions.save is set to database in my core.php file. Also, I
> > did $session->read() on my www page and I get all of my auth info,
> > however if I do the same thing on, blog.mysite.com then auth is now
> > empty. Any ideas on next steps to take towards solving this? Thanks
> > guy.
>
> > On Mar 7, 8:36 pm, Nabil Alsharif  wrote:
> >> My first guess would be that you lost session data when you went to the
> >> subdomain. Maybe because the session cookies weren't sent with the
> >> requests going to the subdomain or maybe something else, I'm can't see
> >> whats happening on your servers The point is it's easy to check if
> >> the session was lost, that wold be the first thing I'd look at. Good
> >> luck.
>
> >> On Sun, 2010-03-07 at 15:25 -0800, Kyle Decot wrote:
> >> > Yep. It's all one Cake App. Any ideas?
>
> >> > On Mar 7, 11:43 am, cricket  wrote:
> >> > > A subdomain is usually a completely separate site. Do you already
> >> > > have
> >> > > the same Cake app serving all of your subdomains?
>
> >> > > On Mar 6, 5:34 pm, Kyle Decot  wrote:
>
> >> > > > I have a couple different subdomains on my site but I am having
> >> > > > some
> >> > > > problems w/ the Auth Component. I login fine under the standard www
> >> > > > subdomain but then if I go to a different subdomain, then I am no
> >> > > > longer logged in. How do I make sure that my Auth login persists
> >> > > > across all of my subdomains?
>
> >> > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others
> >> > with their CakePHP related questions.
>
> >> > 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
> >> > athttp://groups.google.com/group/cake-php?hl=en
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > 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
>
> --
> Sent from my mobile device

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Subdomain Auth Problem

2010-03-07 Thread Kyle Decot
Well my sessions.save is set to database in my core.php file. Also, I
did $session->read() on my www page and I get all of my auth info,
however if I do the same thing on, blog.mysite.com then auth is now
empty. Any ideas on next steps to take towards solving this? Thanks
guy.

On Mar 7, 8:36 pm, Nabil Alsharif  wrote:
> My first guess would be that you lost session data when you went to the
> subdomain. Maybe because the session cookies weren't sent with the
> requests going to the subdomain or maybe something else, I'm can't see
> whats happening on your servers The point is it's easy to check if
> the session was lost, that wold be the first thing I'd look at. Good
> luck.
>
>
>
> On Sun, 2010-03-07 at 15:25 -0800, Kyle Decot wrote:
> > Yep. It's all one Cake App. Any ideas?
>
> > On Mar 7, 11:43 am, cricket  wrote:
> > > A subdomain is usually a completely separate site. Do you already have
> > > the same Cake app serving all of your subdomains?
>
> > > On Mar 6, 5:34 pm, Kyle Decot  wrote:
>
> > > > I have a couple different subdomains on my site but I am having some
> > > > problems w/ the Auth Component. I login fine under the standard www
> > > > subdomain but then if I go to a different subdomain, then I am no
> > > > longer logged in. How do I make sure that my Auth login persists
> > > > across all of my subdomains?
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
> > with their CakePHP related questions.
>
> > 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 
> > athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Subdomain Auth Problems

2010-03-07 Thread Kyle Decot
Yep. It's all one Cake App. Any ideas?

On Mar 7, 11:43 am, cricket  wrote:
> A subdomain is usually a completely separate site. Do you already have
> the same Cake app serving all of your subdomains?
>
> On Mar 6, 5:34 pm, Kyle Decot  wrote:
>
>
>
> > I have a couple different subdomains on my site but I am having some
> > problems w/ the Auth Component. I login fine under the standard www
> > subdomain but then if I go to a different subdomain, then I am no
> > longer logged in. How do I make sure that my Auth login persists
> > across all of my subdomains?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Subdomain Auth Problems

2010-03-06 Thread Kyle Decot
I have a couple different subdomains on my site but I am having some
problems w/ the Auth Component. I login fine under the standard www
subdomain but then if I go to a different subdomain, then I am no
longer logged in. How do I make sure that my Auth login persists
across all of my subdomains?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Help w/ Pagination

2010-03-04 Thread Kyle Decot
My client wants it that way. Not my choice but they're paying the
bill. Any ideas how I can do this?

On Mar 4, 1:36 am, Walther  wrote:
> Why do you want to use those dog ugly query parameters? They are bad
> for users and bad for SEO. Rather use the CakePHP named parameters
> (Which the build in pagination does automatically).
>
> If you need some help in getting the 'search' term to stay persistent
> in your pagination come ask on the irc channel (freenode.net #cakephp)
>
> On Mar 3, 9:04 pm, Kyle Decot  wrote:
>
>
>
> > I need my page: parameter to appear in my url like /model/index/?
> > page=2&search=something How can I get all my parameters to appear in
> > my paging links? Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Building API - Problems w/ Passwords

2010-03-04 Thread Kyle Decot
Hey guys. I have an interesting problem that I don't know how to
solve. I'm building an API for my site and some of my methods require
a api_token which is basically md5(username . md5(password)). The
problem is how to do I verify that this is valid when I don't know the
original password. All my passwords are hashed w/ $this->Auth-
>password(). Any suggestions on how to go about this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Help w/ Pagination

2010-03-03 Thread Kyle Decot
I need my page: parameter to appear in my url like /model/index/?
page=2&search=something How can I get all my parameters to appear in
my paging links? Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


How to dynamically create validation rules

2010-02-26 Thread Kyle Decot
I am creating an API for my website and I want to create validation
rules for my various methods based on some rows in my api_arguments
table. How should I go about doing this? Thanks for any help.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: How to Handle images w/ a Route

2010-02-08 Thread Kyle Decot
The original is an image that someone is uploading. I don't want to
have to create the 75x75 version when they do the upload. I would like
to generate it on the fly when someone tries to access it. I would
also like to keep the path similar to the original so I don't have to
create something like /images/index/?filename=blahblahblah

On Feb 8, 2:48 am, Miles J  wrote:
> Quick question, why are you routing it to a controller, if the path is
> basically the same?
>
> On Feb 7, 7:19 pm, Kyle Decot  wrote:
>
>
>
> > I store all of my full size images at something like /img/photos/
> > filename_goes_here.jpg I would like to be able to add a route so that
> > if I visit /img/photos/75x75_filename_goes_here.jpg it will be handled
> > by my images controller. I've tried adding:
>
> > Router::connect('/img/photos/75x75_*', array('controller' => 'images',
> > 'action' => 'index'));
>
> > However I get the error:
>
> > Error: ImgController could not be found.
>
> > Why is cake trying to connect this to ImgController? How can I fix
> > this so that it will route to images_controller

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


How to Handle images w/ a Route

2010-02-07 Thread Kyle Decot
I store all of my full size images at something like /img/photos/
filename_goes_here.jpg I would like to be able to add a route so that
if I visit /img/photos/75x75_filename_goes_here.jpg it will be handled
by my images controller. I've tried adding:

Router::connect('/img/photos/75x75_*', array('controller' => 'images',
'action' => 'index'));

However I get the error:

Error: ImgController could not be found.

Why is cake trying to connect this to ImgController? How can I fix
this so that it will route to images_controller

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Creating a REST API w/ CakePHP

2010-01-01 Thread Kyle Decot
I am creating an API for my CakePHP site and I am wondering how I
should go about authentication? I will be mainly using my API for my
iPhone app but would also like to eventually open it up to anyone that
would be interested in using it. Any recommendations, or approaches
you would suggest would be appreciated.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: Span Tag

2009-11-28 Thread Kyle Decot
echo "" . $html->link("Link Text","/some/link/",array
(),false,false) . "";

On Nov 28, 6:48 pm, "Dave"  wrote:
> Any ideas how to accomplish this output code in Cake?
>
> Link Text
>
> I have tried using the $html->link and $html->tag('span', 'Link Text');?> in
> various ways but all I get is
> Link Text with the span
> outside the 
>
> Thanks,
>
> Dave

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Re: CakeFest IV - America - Help us pick a location!

2009-11-27 Thread Kyle Decot
Columbus, OH!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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


Subdomain for Controller

2009-11-19 Thread Kyle Decot
How would I go about making my ApiController link to api.example.com/?
Thanks for any insight you can provide

--

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-...@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=.




Re: how to get weekdays in drop down, with a default day selected.

2009-11-09 Thread Kyle Decot

echo $form->input('Weekday', array('options' => array
('Monday'=>'Monday','Tuesday'=>'Tuesday','Wednesday'=>'Wednesday','Thursday'=>'Thursday',
'Friday'=>'Friday','Saturday'=>'Saturday',
'Sunday'=>'Sunday')));

On Nov 10, 1:04 am, cake  wrote:
> Hi all,
>
> I want  the weekdays to be displayed in a drop down, with a default
> day selected.
> My code is as follows
> echo $form->input('Weekday', array('options' => array
> ('Monday','Tuesday','Wednesday','Thursday', 'Friday','Saturday',
> 'Sunday')));
> When I do like this it stores 0 value in database instead of day name.
> Also I want to set a default selected weekday .
> Please help!!!
>
> Thanking you..
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Sanitize:: clean help

2009-10-31 Thread Kyle Decot

Try echo $form->input("description",array("value"=>html_entity_decode(@
$this->data["Model"]["description"])));

On Oct 31, 5:29 pm, "Dave"  wrote:
> Can someone help me out with this fairly simple question.
>
> I am doing:
>
> $clean = new Sanitize();
> $this->data = $clean->clean($this->data);
>
> Now if a user enters quotes brackets or what not it gets converted to
>