Re: "User Routing" -- or user account urls -- or multiple instances of cake?

2007-12-24 Thread Tom.Maiaroto

ok... so i'm thinking you can't put something before /:controller/ in
the routing?
am i correct?

i gave this a shot:

Router::connect('/:controller/:userid/', array('action' => 'index',
'userid' => 'null'), array('userid' => '.*'));

so i can type in abc.com/posts/usernameajkfdsk/  and get posts/index/
i'm assuming a param of "usernameajk whatever the hell i just
scribbled" gets passed then too.

maybe i did something wrong..
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: "User Routing" -- or user account urls -- or multiple instances of cake?

2007-12-24 Thread Tom.Maiaroto

i'll try the routing out. still a hazy area for me - but i forgot
about that beta manual - very helpful thanks.

I think I can prepend to the urls though with a username to semi-solve
my dilema. so the url would be abc.com/posts/view/username/unique-
title
that way abc.com/posts/view/usernameB/unique-title
can also exist.

simple enough and when you go to /posts/view/username/
it can just have an index for that user.

still, my preference would be abc.com/username/posts/view

-tom

On Dec 24, 1:39 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Dec 24, 2007 1:02 PM, Tom.Maiaroto <[EMAIL PROTECTED]> wrote:
>
>
>
> > I think now I HAVE to separate them because I also want friendly urls.
>
> > So: abc.com/tom/posts/about-me
> > can exist along with : abc.com/jerry/posts/about-me
>
> I think you should take a look at using custom routing to make this
> happen.  Probably the easiest way to do it.
>
> http://tempdocs.cakephp.org/#TOC35993
>
> Hope that helps.
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: routes.php and the root directory

2007-12-24 Thread Chris Hartjes

On Dec 24, 2007 1:35 PM, boris <[EMAIL PROTECTED]> wrote:
>
> Hi. I'm trying to make the URL http://localhost/cake/ point to the
> 'welcome' action in controller 'PagesController'. To achieve this, I
> add... $Route->connect('/', array('controller' => 'pages', 'action' =>
> 'welcome')); ... to app/config/routes.php. However, when I got to
> http://localhost/cake/, the browser displays a listing of the contents
> in app/webroot. Any light you can shed on this will be much
> appreciated!

Check your web server configuration.  Sounds like you might not have
set the Index property (or whatever the equivalent in IIS) so that it
looks for webroot/index.php.

Hope that helps.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

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



Re: "User Routing" -- or user account urls -- or multiple instances of cake?

2007-12-24 Thread Chris Hartjes

On Dec 24, 2007 1:02 PM, Tom.Maiaroto <[EMAIL PROTECTED]> wrote:
>
> I think now I HAVE to separate them because I also want friendly urls.
>
> So: abc.com/tom/posts/about-me
> can exist along with : abc.com/jerry/posts/about-me

I think you should take a look at using custom routing to make this
happen.  Probably the easiest way to do it.

http://tempdocs.cakephp.org/#TOC35993

Hope that helps.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

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



routes.php and the root directory

2007-12-24 Thread boris

Hi. I'm trying to make the URL http://localhost/cake/ point to the
'welcome' action in controller 'PagesController'. To achieve this, I
add... $Route->connect('/', array('controller' => 'pages', 'action' =>
'welcome')); ... to app/config/routes.php. However, when I got to
http://localhost/cake/, the browser displays a listing of the contents
in app/webroot. Any light you can shed on this will be much
appreciated!

Thank you.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



"User Routing" -- or user account urls -- or multiple instances of cake?

2007-12-24 Thread Tom.Maiaroto

Ok so I have what has become a big dilema.
Most people are saying use traditional methods with ACL. I just about
caved in and said ok ... until I realized this problem.

So first. The picture real quick.
I'm working on a social/community site like myspace, facebook, etc.
However the functionality of it is more in line with something like
wordpress.

Ok cut out all the features and say a blog. A host blog. Like blogger
or wordpress something.
Now we have abc.com/username/posts/index and abc.com/username/posts/
view, etc.

How can this be setup?
Should it just be the app copied over and over?

I'd like to not repeat myself.

So using some trickery maybe I thought... use basic ACL. keep
everything together. My original thought (and gut feeling) is to
separate all the user's sites.

I think now I HAVE to separate them because I also want friendly urls.

So: abc.com/tom/posts/about-me
can exist along with : abc.com/jerry/posts/about-me

So jerry doesn't have something like about-me-2 ...

So there's the big problem. I want to treat the entire site in a very
personal way. Following best practices for seo, etc.

I can't just have abc.com/posts/2313291   and abc.com/posts/2313292
At least I don't want to have that...

Any ideas?

Thanks.

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



Re: Cake for large websites...Zend?

2007-12-24 Thread klevo

Cake developers have answered this question thousands of times. Just
typing "cakephp scaling" into google gives you the answers. Read
http://www.littlehart.net/atthekeyboard/2007/05/23/who-is-responsible-for-scaling/
to learn why such a question is not relevant after all.

On 24. Dec., 07:57 h., blange <[EMAIL PROTECTED]> wrote:
> Can cake handle very large enterprise websites?  We have a site with
> user submitted articles, blogs, and an active forum with tens of
> thousands of users. Some of the developers are skeptical that cake can
> handle the load.
>
> Would zend be a better choice for a large site. If so, why?
>
> Thanks in advance,
>
> Brian

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



Re: how can we create datagrind in cakephp using ajax helper

2007-12-24 Thread [EMAIL PROTECTED]

hi hydra12,
thanks for your help
i got the solution as i follow your suggestions on 
http://www.ntatd.org/mark/?p=29.
and http://extjs.com/forum/showthread.php?p=53728#post53728.
thanks a lot :)


On Dec 23, 5:22 am, hydra12 <[EMAIL PROTECTED]> wrote:
> I need to see your code.  Best would be your javascript code and your
> controller code.  I'm on vacation for Christmas, but I'll see what I
> can do to help.
>
> hydra12
>
> On Dec 22, 4:20 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> >  thanks hydra12,
> > but still i m not getting greed,
> > actually in the code below,
>
> > Ext.data.JsonReader = function(meta, recordType){
> > meta = meta || {};
> > Ext.data.JsonReader.superclass.constructor.call(this, meta,
> > recordType||meta.fields);};
>
> > Ext.extend(Ext.data.JsonReader, Ext.data.DataReader, {
> > read : function(response){
> > var json = response.responseText;
> > var o = eval("("+json+")");
> > if(!o) {
> > throw {message: "JsonReader.read: Json object not 
> > found"};
> > }
> > if(o.metaData){
> > delete this.ef;
> > this.meta = o.metaData;
> > this.recordType =
> > Ext.data.Record.create(o.metaData.fields);
> > this.onMetaChange(this.meta, this.recordType, o);
> > }
> > return this.readRecords(o);
> > },
> > onMetaChange : function(meta, recordType, o){
>
> > },
>
> > 'o' does not have any value,
> > please help me out
> > thank you
>
> > On Dec 21, 5:47 pm, hydra12 <[EMAIL PROTECTED]> wrote:
>
> > > Yes, you can.  It's not so easy to get setup, but I've written a
> > > tutorial about it here:http://www.ntatd.org/mark/?p=29.
> > > Also checkout this 
> > > post:http://extjs.com/forum/showthread.php?p=53728#post53728.
> > > It starts with me asking questions trying to get thedatagridworking,
> > > then ends with me helping someone else get it working.  I'll be
> > > updating my blog with what I learned soon, but until I do (hey, it's
> > > Christmas . . .), maybe it will help.  I'm also willing to answer
> > > questions as I have time.
>
> > > Hope that helps!
> > > hydra12
>
> > > On Dec 21, 5:36 am, "[EMAIL PROTECTED]"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > thanks for your reply,
> > > > I still have one question -
> > > > Can i used this with cakePHP?
>
> > > > On Dec 21, 3:28 pm, dizz <[EMAIL PROTECTED]> wrote:
>
> > > > > There isn't anAjaxhelper for adatagridbut take a look atextjs.com
>
> > > > > On Dec 21, 11:35 am, "[EMAIL PROTECTED]"
>
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > > i just want to know ,
> > > > > > how can we create datagrind in cakephp usingajaxhelper
> > > > > > I have post this topic before this also
> > > > > > but I didn't find any solution
> > > > > > please help me, if anyone finds the solution

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



Re: web 2.0 concepts

2007-12-24 Thread stonez

Take a look at this, you will get some basic idea.

http://en.wikipedia.org/wiki/Web_2

On 12月24日, 下午3時49分, venki <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What is web 2.0 ?What is the use of web 2.0 concepts?
> Please tell me some examples and how we will use web 2.0 concepts in
> my coding.
> Please send me the example web 2.0 websites
>
> Regards,
> Venki

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



Re: web 2.0 concepts

2007-12-24 Thread esion

Hey,
Remember, your app is not a christmas tree. Implement some
functionnality because it's useful and not because it's fashion.
For exemple you should set the DOCTYPE you need and not the latest
one.

Also you can watch http://en.wikipedia.org/wiki/Web_3

On 24 déc, 10:49, Dave J <[EMAIL PROTECTED]> wrote:
> http://en.wikipedia.org/wiki/Web_2.0
>
> On Dec 24, 8:49 am, venki <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > What is web 2.0 ?What is the use of web 2.0 concepts?
> > Please tell me some examples and how we will use web 2.0 concepts in
> > my coding.
> > Please send me the example web 2.0 websites
>
> > Regards,
> > Venki

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



Re: Cake for large websites...Zend?

2007-12-24 Thread Chris Hawes

On Dec 24, 6:57 am, blange <[EMAIL PROTECTED]> wrote:
> Can cake handle very large enterprise websites?  We have a site with
> user submitted articles, blogs, and an active forum with tens of
> thousands of users. Some of the developers are skeptical that cake can
> handle the load.
>
> Would zend be a better choice for a large site. If so, why?
>
> Thanks in advance,
>
> Brian

If this helps: http://addons.mozilla.org/ is written in CakePHP, as
are several other high traffic sites.

Also take a look through the list found at:
http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild

Thanks,

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



Re: Creating a "Site down" error page?

2007-12-24 Thread majna

If db is down, you must redirect to external page in webroot.
if app is not in root, use for 1.x
$Dispatcher = new Dispatcher();
 $base = $Dispatcher->baseUrl();
$this->redirect($base.'/error_db.php');
exit();



On Dec 24, 1:45 am, Rich Vázquez <[EMAIL PROTECTED]> wrote:
> On Sun, 2007-12-23 at 16:14 -0800, squidliberty wrote:
> > Yep, adding a redirect to AppController was my inclination as well.
> > However, the tricky part is testing for a database connection. Anyone
> > have any idea how best to do this? Seems like it shouldn't be very
> > difficult - I just don't have a grasp on the esoteric inner-workings
> > of the framework. Thanks!
>
> Remember the original cake install has this - the first thing it does is
> look for the database configuration and connectivity.
>
> The logic is in:
> /cake_1.1.18.5850/cake/scripts/templates/views/home.thtml
>
> --
> Rich Vázquez
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: web 2.0 concepts

2007-12-24 Thread Dave J

http://en.wikipedia.org/wiki/Web_2.0

On Dec 24, 8:49 am, venki <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What is web 2.0 ?What is the use of web 2.0 concepts?
> Please tell me some examples and how we will use web 2.0 concepts in
> my coding.
> Please send me the example web 2.0 websites
>
> Regards,
> Venki
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---