Re: Short Names Navigation (like Twitter and Facebook)

2010-12-22 Thread tcornett
I actually got success using some of the techniques in this article.

http://snook.ca/archives/php/url-shortener

Mostly it was a Router::connect statement and then using a function to
do the search I need.

Thanks for the help!



On Dec 21, 9:15 pm, Amit Badkas  wrote:
> Hi,
>
> Please have a look at routing 
> configuration,http://book.cakephp.org/view/945/Routes-Configuration
>
> Hope this helps.
>
> Amit Badkas
>
> PHP Applications for E-Biz:http://www.sanisoft.com
>
> On Wed, Dec 22, 2010 at 4:53 AM, tcornett  wrote:
> > I am trying to get an app to work with Twitter-like and Facebook-like short
> > names for navigation (likehttp://twitter.com/) where  is a value
> > referenced in the database.
>
> > Where should I be looking to do the URL manipulation?  I am having trouble
> > getting to the request prior to the normal CakePHP Framework behavior which
> > will return 'No Such Controller'.
>
> > I can handle the development, just a little confused on where I need to
> > look in the process when Cake breaks down the URL request.
>
> > 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.comFor
> >  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


Short Names Navigation (like Twitter and Facebook)

2010-12-21 Thread tcornett
I am trying to get an app to work with Twitter-like and Facebook-like short 
names for navigation (like http://twitter.com/) where  is a value 
referenced in the database.  

Where should I be looking to do the URL manipulation?  I am having trouble 
getting to the request prior to the normal CakePHP Framework behavior which 
will return 'No Such Controller'.

I can handle the development, just a little confused on where I need to look 
in the process when Cake breaks down the URL request.

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


Advice for personalized email (i.e. newsletter, mass email)

2010-04-15 Thread tcornett
I am looking to setup an aspect of my cakephp application to handle
the emailing of a large number of individuals with a personalized
email message. [THIS IS NOT FOR SPAM]  I have been looking around and
I cant really seem to find anything that handles this situation well.

A couple of the major roadblocks that I have run into are :
 1) Persistent connection with the SMTP server.  Instead of connecting
for one message, I need to be able to connect, send X emails, and then
disconnect.  There does not seem to be anything out there for this
type of behavior
 2) The need for personalization in each email.  It can not be 1 email
with 50 recipients.  It would end up being 50 emails each with
different information in the body of the email.
 3) Request timeout - If I try to send them all at once, the request
will time out.  I would rather have a setup where an automated process
picks up the email and sends them.

I have looked into CRON jobs based solutions, found basic queue and
deferring processing techniques but nothing really handles this
situation, IMHO is a pretty basic problem for any application with
users.  I know I am basically building a mailing list manager but it
is just going to be one aspect of the app.

Does anyone have any directions to point me in or ideas for solutions?

Thanks in advance 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


Force a specific URL?

2009-09-28 Thread tcornett

Is it possible to force or redirect an entire site to a specified URL?

For example, http://example.com/ gets redirected to http://www.example.com/

Is this possible?  If so, can someone point me in the right direction?

Thank you for the help
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Extracting PATHS but not the full HTML object

2009-09-28 Thread tcornett

I am curious how I would extract the path of a LINK or an IMAGE
without getting the whole HTML object.  Instead of getting the 'http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Allowing RSS Feed without the restirctions of Authentication?

2009-06-24 Thread tcornett

I currently have my beforeFilter() function in my AppController setup
like the following for my Auth component:

function beforeFilter()
{
$this->Auth->fields = array('username' => 'email', 'password' =>
'passwordhash');
$this->Auth->loginError = 'Invalid e-mail / password 
combination';

$this->Auth->loginRedirect = array('controller' => 'pages', 
'action'
=> 'index');
$this->Auth->logoutRedirect  = array('controller' => 'pages',
'action' => 'index');

$this->Auth->allow( array( 'home', 'logout', 'contact', 
'register',
'confirm', 'forgot_password' ));

$this->Auth->authorize = 'controller';
$this->Auth->userScope = array( 'User.confirmed' => '1' );
$this->set('loggedIn', $this->Auth->user('id'));
$this->set('loggedInEmail', $this->Auth->user('email'));
}

and I have just setup a RSS feed with the RSS Helper using the
tutorial in the CAKE Docs (http://book.cakephp.org/view/483/Creating-
an-RSS-feed-with-the-RssHelper).  I am now running into an issue where
my Auth setup is preventing users from accessing the RSS Feed without
logging in (and therefore preventing sites like FeedBurner from
accessing it as well).

Adding 'index.rss' to the allow array does not seem to do anything.
Are there any other suggestions as to what may solve this issue?  Can
i somehow ignore or overwrite the beforeFilter() function?

Any help is appreciated in advance. Thanks!

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Migration to UUIDs from AUTO_INCREMENT

2009-05-15 Thread tcornett

I am trying to migrate data from a schema that used auto_increment
integers in a MySQL database to a newly built CakePHP framework
application which will use UUIDs for the primary keys.  I am having
issues updating the previous records and replacing the old ids ('1',
'2', '3', etc.) with generated UUIDs.

As I am relatively new to CakePHP (but not PHP itself), I may just
have things out of order. All current attempts to update the primary
key result in insertion of a new blank record with a UUID as the
primary key.

Can anyone provide guidance and/or snippets to iterate through the
records and replace the old id in the primary key with a UUID?

NOTE: The id field is already set to CHAR(36) and listed as PRIMARY
KEY

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---