web 2.0 concepts

2007-12-23 Thread venki
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 sub

Cake for large websites...Zend?

2007-12-23 Thread blange
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 adva

Re: Confused with associations, hasOne and belongsTo?

2007-12-23 Thread Adam Royle
It depends on the actual tables you create - ie. are you going to create a favourite_stores table with additional fields, or will it just be a join table? Also, keep in mind you can have more than relationship defined between the same models... eg. I would create two join tables: consumers_favo

Confused with associations, hasOne and belongsTo?

2007-12-23 Thread stonez
Let's say, I have three models named "stores", "consumers", "favorite_stores" What's the correct association I should declear? Here's the defination I made: - store hasAndBelongsToMany consumers. - consumers hasAndBelongsToMany stores. - consuemr hasMany favorite_stores. - sotre belongsTo favori

Re: Using Model in a Component

2007-12-23 Thread [EMAIL PROTECTED]
Ok, I guess placing the code in AppController is the best 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

Re: Creating a "Site down" error page?

2007-12-23 Thread Rich Vázquez
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

Re: Real world authorization and authentication using Auth and ACL

2007-12-23 Thread kiang
Maybe you could have a look at this topic: http://www.cakephpforum.net/index.php?showtopic=27 --- kiang On 12月23日, 下午7時51分, WarGoth <[EMAIL PROTECTED]> wrote: > Sorry for my english. I'll try to be short. > I'm talking about CakePHP 1.2, native Auth and ACL (for DB). > I've searched the group an

Re: Creating a "Site down" error page?

2007-12-23 Thread squidliberty
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

Re: Trying to use PHPMailer

2007-12-23 Thread subtropolis zijn
On Dec 23, 2007 3:45 AM, skoggins <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am trying to use PHPMailer according to the tutorial here: > > http://bakery.cakephp.org/articles/view/phpmailer-with-native-api-for-php-5-x > but keep getting errors. > > The error I get on my local machine is: > "The

Re: Using Model in a Component

2007-12-23 Thread subtropolis zijn
On Dec 23, 2007 4:17 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > I have a lot of queries, that must be executed in every controller's > every action. So I think the best thing to automate it is placing > these queries in one component. > Maybe this would be best in AppController (and ca

Using Model in a Component

2007-12-23 Thread [EMAIL PROTECTED]
I have a lot of queries, that must be executed in every controller's every action. So I think the best thing to automate it is placing these queries in one component. The code looks like this: class MenuComponent extends Object { var $categories = true; var $controller = true; function startup(&

Re: element: model or controller?

2007-12-23 Thread subtropolis zijn
On Dec 23, 2007 8:53 AM, Christophe Cholot <[EMAIL PROTECTED]> wrote: > > Hello, > > Assuming you have a newsletter Controller and a newsletter Model : > in NewsletterController (newsletter_controller.php) : > > class NewsletterController extends AppController { >var name = 'Newsletter'; > >

looking for cakephp developer to tutor

2007-12-23 Thread conankun
Hi, I'm looking for a seasoned cakephp 1.2 developer to give me private tutoring on cakephp (from beginning). Preferably live in melbourne, so that the teaching can be direct and on the spot. Let me know if you require incentives and how much would you charge. Cheers. --~--~-~--~~--

converting loadModel to App::import

2007-12-23 Thread conankun
Hi, does anyone know how to convert loadModel() to App::import properly? I have something like this (this works): class MenuComponent extends Object { function getMenu(&$controller) { loadModel('Menu'); blah... blah... } } then I try to ch

Re: element: model or controller?

2007-12-23 Thread Christophe Cholot
Hello, Assuming you have a newsletter Controller and a newsletter Model : in NewsletterController (newsletter_controller.php) : class NewsletterController extends AppController { var name = 'Newsletter'; function archive_list(){ $this->set('archives', $this->Newsletter->find('all'

Re: RequestAction + Plugin = Apache Crash

2007-12-23 Thread Matti Putkonen
On 22 joulu, 16:20, Martin Wood-Mitrovski <[EMAIL PROTECTED]> wrote: > thats the first thing i checked. i dont have it installed or enabled. > > subtropolis zijn wrote: > > I just came across a couple of posts in the archive (search the archive for > > "apache crash") last night discussing simil

Real world authorization and authentication using Auth and ACL

2007-12-23 Thread WarGoth
Sorry for my english. I'll try to be short. I'm talking about CakePHP 1.2, native Auth and ACL (for DB). I've searched the group and many other articles but did not find any suitable implementation for real world usage. I want to implement the following task: 1) authorization via native component

element: model or controller?

2007-12-23 Thread subtropolis
I'm a n00b here and have been redoing an existing site in order to learn the Cake way. I'm jumping straight into the 1.2 branch.This is my first cry for help. I have a section for an online newsletter. Several pages list links for the archived issues. From what i've read, i should use an element

Trying to use PHPMailer

2007-12-23 Thread skoggins
Hi All, I am trying to use PHPMailer according to the tutorial here: http://bakery.cakephp.org/articles/view/phpmailer-with-native-api-for-php-5-x but keep getting errors. The error I get on my local machine is: "There was a problem sending mail: Language string failed to load: instantiate" On