Re: New to Cake PHP.

2013-10-12 Thread Leandro Machado Pereira
enable in php.ini in your installation.


2013/10/11 Shikhar kumar 

> Hello,
>
> I have installed cake php version 2.4.1 but I am stuck to install it.My
> PHP version is 5.3.18.
> It shows the error:Class PDO not found.My question is:
>
> 1.What is Class PDO.?
> 2.How can I enable it?
>
> Please help.
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
***Se você pretende redirecionar este e-mail, por favor, apague todos os
endereços que aparecem nele. Outra dica de segurança é endereçá-lo no Cco.
Desta forma você estará protegendo a mim, seus amigos e a você mesmo. Eu e
a Campanha Contra o SPAM agradecemos.Não envie correntes.***

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Cake PHP.

2013-10-12 Thread majna
Enable pdo-mysql extension in php.ini and restart web server.
http://www.php.net/manual/en/pdo.installation.php

majna

On Friday, October 11, 2013 10:26:37 AM UTC+2, Shikhar kumar wrote:
>
> Hello,
>
> I have installed cake php version 2.4.1 but I am stuck to install it.My 
> PHP version is 5.3.18.
> It shows the error:Class PDO not found.My question is:
>
> 1.What is Class PDO.?
> 2.How can I enable it?
>
> Please help.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


New to Cake PHP.

2013-10-11 Thread Shikhar kumar
Hello,

I have installed cake php version 2.4.1 but I am stuck to install it.My PHP 
version is 5.3.18.
It shows the error:Class PDO not found.My question is:

1.What is Class PDO.?
2.How can I enable it?

Please help.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Cake -- Security Questions

2013-10-09 Thread schenkerstudio
Sorry for the double post!  My previous post seemed lost until after I 
posted this one!

On Wednesday, October 9, 2013 12:48:03 PM UTC-4, schenke...@gmail.com wrote:
>
> Greetings,
> I am new to CakePHP.  I've tested several other frameworks (Laravel, 
> CodeIgniter, Symfony, Yii, and even a clever little one called PHPixie).  
> My choice is to go with CakePHP for various reasons, but mostly because it 
> makes sense to me.
>
> I like everything I see about CakePHP, but I am wondering how experienced 
> Cake developers handle security.  I know that this is a big topic and there 
> is no single answer, but what are the general steps you take to secure an 
> app in CakePHP?  I am talking about an app where I will be accepting form 
> inputs from logged-in users.
>
> Here's what I understand so far:
> 1. I really like the Cake Data Validation 
> class.  
> This seems to allow very nice control of form inputs.
> 2. I'm confused about the removal of the Data Sanitization 
> tool.  
> Was this done because there are better built-in methods for this, or is it 
> because the framework no longer handles sanitization?
>
> Can anyone please shed some light on general "good practices" on securing 
> CakePHP apps?
>
> Thank you!
>
> Matthew
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


New to Cake -- Security Questions

2013-10-09 Thread schenkerstudio
Greetings,
I am new to CakePHP.  I've tested several other frameworks (Laravel, 
CodeIgniter, Symfony, Yii, and even a clever little one called PHPixie).  
My choice is to go with CakePHP for various reasons, but mostly because it 
makes sense to me.

I like everything I see about CakePHP, but I am wondering how experienced 
Cake developers handle security.  I know that this is a big topic and there 
is no single answer, but what are the general steps you take to secure an 
app in CakePHP?  I am talking about an app where I will be accepting form 
inputs from logged-in users.

Here's what I understand so far:
1. I really like the Cake Data Validation 
class.  
This seems to allow very nice control of form inputs.
2. I'm confused about the removal of the Data Sanitization 
tool.  
Was this done because there are better built-in methods for this, or is it 
because the framework no longer handles sanitization?

Can anyone please shed some light on general "good practices" on securing 
CakePHP apps?

Thank you!

Matthew

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Cake(2.0) Form & Model Questions

2012-02-11 Thread rchavik

On Friday, 10 February 2012 19:16:31 UTC+7, janimal wrote:
>
>
> The problem is trying to do the following 
>
> Get the form to show the invoice_id passed to the controller method as 
> a read only - non-drop down and to pass that back to the controller 
> for the save once the user has entered the data. 
>
> The formhelper seems to automagically create a dropdown box for; 
> echo $this->Form->input('invoice_id'); 
>
> even if I don't send the list of invoices from the controller using; 
> $invoices = $this->Lineitem->Invoice->find('list'); 
> $this->set(compact('invoices')); 
>
>
Tell FormHelper to use a normal input for invoice_id, eg.:

echo $this->Form->input('invoice_id', array('type' => 'text', 'readonly' => 
'readonly'));

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


New to Cake(2.0) Form & Model Questions

2012-02-10 Thread janimal
Hi All,
 In order to learn cake I created a simple database to model invoices
It has three tables

clients -> hasMany -> invoices -> hasMany -> lineitems

I then used cake bake to create a starting app.

When viewing an Invoice it automatically displays the related
LineItems as expected. Then under that there is a button (link) to add
a new lineitem.

When you click this the add form shows but with a drop down box for
invoice_id. I am trying to change this because I want it to pass the
invoice_id of the currently viewed invoice and pre-fill that field.

I have successfully passed the invoice_id to the
Invoicecontroller::add method through the url query.

The problem is trying to do the following

Get the form to show the invoice_id passed to the controller method as
a read only - non-drop down and to pass that back to the controller
for the save once the user has entered the data.

The formhelper seems to automagically create a dropdown box for;
echo $this->Form->input('invoice_id');

even if I don't send the list of invoices from the controller using;
$invoices = $this->Lineitem->Invoice->find('list');
$this->set(compact('invoices'));

I can't seem to find any documentation or example of someone pre-
filling certain fields to send to the add.ctp view.

Links to examples or any other help would be much appreciated.

Thanks,
Janimal

PS. I come from a background of C++ (strictly OO) applications
development so maybe I am just thinking about this in the wrong way?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to Cake DB Help

2011-04-12 Thread LipeDjow
I just would change charset to utf8.

Ahh.. and group is a good choice. :P

LipeDjow

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to Cake DB Help

2011-04-09 Thread cricket
On Fri, Apr 8, 2011 at 9:23 PM, Logan Best  wrote:
> Hi,
>
> I am new to CakePHP and wasn't really understanding the database
> structure naming conventions entirely, or maybe I am, I don't know.
> I was mainly wondering if someone could rewrite this DB Structure to
> the appropriate naming convention:

Here you go:

CREATE TABLE `ambiances` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(64) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO ambiances (name) VALUES
('Casual Fine Dining'),
('Waterfront'),
('Rooftop'),
('Patio'),
('Beach'),
('Romantic'),
('Casual'),
('Eclectic'),
('By Boat'),
('For Kids'),
('Dog Friendly'),
('Fine Dining'),
('Outdoor Dining'),
('Water Front Dining');

CREATE TABLE `cuisines` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(64) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO cuisines (name) VALUES
('American'),
('Bakeries'),
('Banquet'),
('Bar Tavern'),
('Barbecue'),
('Breakfast'),
('Brunch'),
('Buffet'),
('Cajun'),
('Caribbean'),
('Catering'),
('Chinese'),
('Coffeeshops'),
('Deli'),
('Delivery'),
('Dessert'),
('English'),
('Fondue'),
('French'),
('Greek'),
('Hawaiian'),
('Indian'),
('Italian'),
('Japanese'),
('Live Entertainment'),
('Mediterranean'),
('Mexican'),
('Nightlife'),
('Organic'),
('Pizzeria'),
('Seafood'),
('Southern'),
('Southwest'),
('Sushi'),
('Tapas'),
('Thai'),
('Vegetarian'),
('Vietnamese');

CREATE TABLE `locations` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `name` VARCHAR(64) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

INSERT INTO locations (`name`) VALUES
('Bluffton'),
('Broughton'),
('Brunswick'),
('City Market'),
('Claxton'),
('Downtown'),
('Garden City'),
('Gateway'),
('Hilton Head'),
('Historic District'),
('Midtown'),
('Oglethorpe Mall'),
('Pooler'),
('Richmond Hill'),
('River Street'),
('Sandfly'),
('Savannah Airport'),
('Savannah Mall'),
('Southside'),
('Statesboro'),
('Sylvania'),
('Thunderbolt'),
('Tybee Island'),
('Victorian District'),
('Whitemarsh Island'),
('Wilmington Island');

CREATE TABLE `restaurants` (
  `id` INT(11) NOT NULL AUTO_INCREMENT,
  `location_id` INT(11) NOT NULL,
  `name` VARCHAR(150) NOT NULL,
  `phone` VARCHAR(20) NOT NULL,
  `address` VARCHAR(150) NOT NULL,
  `city` VARCHAR(25) NOT NULL,
  `state` VARCHAR(10) NOT NULL,
  `zip` INT(10) NOT NULL,
  `vip_special` VARCHAR(250) NOT NULL,
  `url` VARCHAR(50) NOT NULL,
  `preferred` INT(20) DEFAULT '0',
  `image` VARCHAR(255),
  `couples_special` VARCHAR(255),
  `group_special` VARCHAR(255),
  `girlscout_special` VARCHAR(255),
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=198;


Cake doesn't use ENUMs. Lucky for you, the columns can all be changed
to boolean (or Cake's version--booleans are handled differently
between RDBMs).

Wait--scratch that. Every one of these should be a row in its table,
not a column. Even a non-Cake DB should be normalised that way.

The table names must be all lowercase and plural. I think the columns
need to be lowercase, also. If not, you'd at least have to put public
$primaryKey = 'ID'; at the top of your models as Cake expects 'id'.
I'd recommend just making them lowercase.

For the associations, you're looking at hasAndBelongsToMany (HABTM)
ambience and cuisine, because several restaurants may share these.

CREATE TABLE ambiances_restaurants (
ambiance_id INT(11) NOT NULL,
restaurant_id INT(11) NOT NULL,
FOREIGN KEY (ambiance_id) REFERENCES ambiances (id) ON DELETE CASCADE,
FOREIGN KEY (restaurant_id) REFERENCES restaurants (id) ON DELETE 
CASCADE
) ENGINE=MyISAM;

CREATE TABLE cuisines_restaurants (
cuisine_id INT(11) NOT NULL,
restaurant_id INT(11) NOT NULL,
FOREIGN KEY (cuisine_id) REFERENCES cuisines (id) ON DELETE CASCADE,
FOREIGN KEY (restaurant_id) REFERENCES restaurants (id) ON DELETE 
CASCADE
) ENGINE=MyISAM;

You won't get real FKs with a MyISAM engine, but that'll at least
create an index on them for you.

Location should be hasOne because you've got the address info right
there in the table. So each record can only have one location. So I've
included a location_id column.

I'm not sure if I want the couples, group, or girl scout special.
Decisions, decisions ...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


New to Cake DB Help

2011-04-09 Thread Logan Best
Hi,

I am new to CakePHP and wasn't really understanding the database
structure naming conventions entirely, or maybe I am, I don't know.
I was mainly wondering if someone could rewrite this DB Structure to
the appropriate naming convention:


CREATE TABLE `Ambiance` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `Casual_Fine_Dining` enum('Yes','No') not null default 'No',
   `Waterfront` enum('Yes','No') not null default 'No',
   `Rooftop` enum('Yes','No') not null default 'No',
   `Patio` enum('Yes','No') not null default 'No',
   `Beach` enum('Yes','No') not null default 'No',
   `Romantic` enum('Yes','No') not null default 'No',
   `Casual` enum('Yes','No') not null default 'No',
   `Eclectic` enum('Yes','No') not null default 'No',
   `By_Boat` enum('Yes','No') not null default 'No',
   `For_Kids` enum('Yes','No') not null default 'No',
   `Dog_Friendly` enum('Yes','No') not null default 'No',
   `Fine_Dining` enum('Yes','No') not null default 'No',
   `Outdoor_Dining` enum('Yes','No') not null default 'No',
   `Water_Front_Dining` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE `Cuisine` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `American` enum('Yes','No') not null default 'No',
   `Bakeries` enum('Yes','No') not null default 'No',
   `Banquet` enum('Yes','No') not null default 'No',
   `Bar_Tavern` enum('Yes','No') not null default 'No',
   `Barbecue` enum('Yes','No') not null default 'No',
   `Breakfast` enum('Yes','No') not null default 'No',
   `Brunch` enum('Yes','No') not null default 'No',
   `Buffet` enum('Yes','No') not null default 'No',
   `Cajun` enum('Yes','No') not null default 'No',
   `Caribbean` enum('Yes','No') not null default 'No',
   `Catering` enum('Yes','No') not null default 'No',
   `Chinese` enum('Yes','No') not null default 'No',
   `Coffeeshops` enum('Yes','No') not null default 'No',
   `Deli` enum('Yes','No') not null default 'No',
   `Delivery` enum('Yes','No') not null default 'No',
   `Dessert` enum('Yes','No') not null default 'No',
   `English` enum('Yes','No') not null default 'No',
   `Fondue` enum('Yes','No') not null default 'No',
   `French` enum('Yes','No') not null default 'No',
   `Greek` enum('Yes','No') not null default 'No',
   `Hawaiian` enum('Yes','No') not null default 'No',
   `Indian` enum('Yes','No') not null default 'No',
   `Italian` enum('Yes','No') not null default 'No',
   `Japanese` enum('Yes','No') not null default 'No',
   `Live_Entertainment` enum('Yes','No') not null default 'No',
   `Mediterranean` enum('Yes','No') not null default 'No',
   `Mexican` enum('Yes','No') not null default 'No',
   `Nightlife` enum('Yes','No') not null default 'No',
   `Organic` enum('Yes','No') not null default 'No',
   `Pizzeria` enum('Yes','No') not null default 'No',
   `Seafood` enum('Yes','No') not null default 'No',
   `Southern` enum('Yes','No') not null default 'No',
   `Southwest` enum('Yes','No') not null default 'No',
   `Sushi` enum('Yes','No') not null default 'No',
   `Tapas` enum('Yes','No') not null default 'No',
   `Thai` enum('Yes','No') not null default 'No',
   `Vegetarian` enum('Yes','No') not null default 'No',
   `Vietnamese` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;


CREATE TABLE `Location` (
   `ID` int(11) not null,
   `RestName` varchar(150) not null,
   `Bluffton` enum('Yes','No') not null default 'No',
   `Broughton` enum('Yes','No') not null default 'No',
   `Brunswick` enum('Yes','No') not null default 'No',
   `City_Market` enum('Yes','No') not null default 'No',
   `Claxton` enum('Yes','No') not null default 'No',
   `Downtown` enum('Yes','No') not null default 'No',
   `Garden_City` enum('Yes','No') not null default 'No',
   `Gateway` enum('Yes','No') not null default 'No',
   `Hilton_Head` enum('Yes','No') not null default 'No',
   `Historic_District` enum('Yes','No') not null default 'No',
   `Midtown` enum('Yes','No') not null default 'No',
   `Oglethorpe_Mall` enum('Yes','No') not null default 'No',
   `Pooler` enum('Yes','No') not null default 'No',
   `Richmond_Hill` enum('Yes','No') not null default 'No',
   `River_Street` enum('Yes','No') not null default 'No',
   `Sandfly` enum('Yes','No') not null default 'No',
   `Savannah_Airport` enum('Yes','No') not null default 'No',
   `Savannah_Mall` enum('Yes','No') not null default 'No',
   `Southside` enum('Yes','No') not null default 'No',
   `Statesboro` enum('Yes','No') not null default 'No',
   `Sylvania` enum('Yes','No') not null default 'No',
   `Thunderbolt` enum('Yes','No') not null default 'No',
   `Tybee_Island` enum('Yes','No') not null default 'No',
   `Victorian_District` enum('Yes','No') not null default 'No',
   `Whitemarsh_Island` enum('Yes','No') not null default 'No',
   `Wilmington_Island` enum('Yes','No') not null default 'No',
   PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET

Re: New to cake and need advice

2011-01-29 Thread newguy
Thanks guys u all have given me lot of hope and encouragement

On Jan 29, 6:32 am, "Dr. Tarique Sani"  wrote:
> Go for it! start developing and come back with specific problems - you will
> find plenty of help
>
> Cheers
> Tarique
>
>
>
>
>
> On Thu, Jan 27, 2011 at 11:20 PM, newguy  wrote:
> > Hi everyone
> > Am new to cake and php but  I have 5 - 6 years of coding experience in
> > c/c++. I have basic php knowledge through w3schools, I am in doubt
> > whether starting with cake is a good decision or not, am comfortable
> > with MVC architecture and I really want to learn cake framework but my
> > limited experience with php is making me ask for advice.
>
> > Thanks
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > 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
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-29 Thread Dr. Tarique Sani
Go for it! start developing and come back with specific problems - you will
find plenty of help

Cheers
Tarique

On Thu, Jan 27, 2011 at 11:20 PM, newguy  wrote:

> Hi everyone
> Am new to cake and php but  I have 5 - 6 years of coding experience in
> c/c++. I have basic php knowledge through w3schools, I am in doubt
> whether starting with cake is a good decision or not, am comfortable
> with MVC architecture and I really want to learn cake framework but my
> limited experience with php is making me ask for advice.
>
> Thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>



-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-29 Thread sudarshana sampath
Hi,

I think If you can spend some time with (pure) PHP, It is the best option.
Participate on at least one project.
I found following is in one of excellent CakePHP book.

"Once readers have gone through the book, there will be no turning back! Web
development will never be the same again. Developing a web application will
become so easy, that it might make the readers very lazy. As a matter of
fact, readers might even forget the basic syntaxes of PHP! And the word Cake
will have a completely new meaning to them"

On Thu, Jan 27, 2011 at 11:20 PM, newguy  wrote:

> Hi everyone
> Am new to cake and php but  I have 5 - 6 years of coding experience in
> c/c++. I have basic php knowledge through w3schools, I am in doubt
> whether starting with cake is a good decision or not, am comfortable
> with MVC architecture and I really want to learn cake framework but my
> limited experience with php is making me ask for advice.
>
> Thanks
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>



-- 
Cheers,
Sudarshana Sampath.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-28 Thread Tonu Tusk
All of it should fit into place - on a pure php side of things, make
sure you are 100% up to php array usage, all other parts of the
language should fall straight into place
with any of the primers  you have learned so far.

After that it is just boning up on the "convention" side of things and
figuring out the best "association side" of related models to use to
access data based on the default recursive Model::find* methods.


On Jan 27, 5:50 pm, newguy  wrote:
> Hi everyone
> Am new to cake and php but  I have 5 - 6 years of coding experience in
> c/c++. I have basic php knowledge through w3schools, I am in doubt
> whether starting with cake is a good decision or not, am comfortable
> with MVC architecture and I really want to learn cake framework but my
> limited experience with php is making me ask for advice.
>
> Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-27 Thread Zaky Katalan-Ezra
Go for it
I made the transition after 10 years in C#.
I guess you want to do web applications so you have to learn new things any
way.
I think php and cakephp in particular is the best thing to start with.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-27 Thread newguy
Thanks Ryan I appreciate your help.

On Jan 27, 8:35 pm, Ryan Schmidt  wrote:
> On Jan 27, 2011, at 11:50, newguy wrote:
>
> > Am new to cake and php but  I have 5 - 6 years of coding experience in
> > c/c++. I have basic php knowledge through w3schools, I am in doubt
> > whether starting with cake is a good decision or not, am comfortable
> > with MVC architecture and I really want to learn cake framework but my
> > limited experience with php is making me ask for advice.
>
> I'd recommend you go through some of the tutorials that are available. Watch 
> some screencasts about building a basic CakePHP application (the blog app is 
> a common one) and try to follow along, built your own app that does what 
> they're doing. Try making small changes. The PHP documentation is pretty good 
> at helping you learn how to use individual functions, once you get to 
> something you need a PHP function for. And of course the CakePHP book is 
> there as a reference for how CakePHP fits together.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake and need advice

2011-01-27 Thread Ryan Schmidt

On Jan 27, 2011, at 11:50, newguy wrote:

> Am new to cake and php but  I have 5 - 6 years of coding experience in
> c/c++. I have basic php knowledge through w3schools, I am in doubt
> whether starting with cake is a good decision or not, am comfortable
> with MVC architecture and I really want to learn cake framework but my
> limited experience with php is making me ask for advice.

I'd recommend you go through some of the tutorials that are available. Watch 
some screencasts about building a basic CakePHP application (the blog app is a 
common one) and try to follow along, built your own app that does what they're 
doing. Try making small changes. The PHP documentation is pretty good at 
helping you learn how to use individual functions, once you get to something 
you need a PHP function for. And of course the CakePHP book is there as a 
reference for how CakePHP fits together.




-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


New to cake and need advice

2011-01-27 Thread newguy
Hi everyone
Am new to cake and php but  I have 5 - 6 years of coding experience in
c/c++. I have basic php knowledge through w3schools, I am in doubt
whether starting with cake is a good decision or not, am comfortable
with MVC architecture and I really want to learn cake framework but my
limited experience with php is making me ask for advice.

Thanks

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: New to cake

2010-02-28 Thread John Andersen
Hi Jerry,

Good that you want to use CakePHP in your final year project.

Do you mean to use the students registration number as a tables
primary key - the id column?

If that is your intentions, I will recomend you not to do that!

A primary key is the one that identifies a record at the database
level and should have no meaning at all.

If you use the primary key to hold the students registration number,
then suddenly the primary key has meaning - which can lead to problems
in the future, when for example a student changes the registration
number (administration had given the student a wrong number) - and now
you have to change not only the primary key but also every foreign key
in related tables.

I suggest you use a different named column to hold the students
registration number - for example "registration_number".
Enjoy,
   John

On Feb 28, 3:31 pm, jerry  wrote:
> Hey am very new to cakephp and am using it for creating a hospital
> management system for a school as my final year project.i want to use
> the student registration numbers  as their ids but i have meet a
> problem.when i use the scaffold feature i don't seem to be seeing the
> id field input box.it's only showed while listing.How do i go about
> displaying a text box that i can use for manually entering the IDs.
>
> 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


New to cake

2010-02-28 Thread jerry
Hey am very new to cakephp and am using it for creating a hospital
management system for a school as my final year project.i want to use
the student registration numbers  as their ids but i have meet a
problem.when i use the scaffold feature i don't seem to be seeing the
id field input box.it's only showed while listing.How do i go about
displaying a text box that i can use for manually entering the IDs.

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


Re: new to cake-php

2009-10-14 Thread Mateusz Kaczanowski
all you need is on book.cakephp.org //Manual. Some very simple apllications.


2009/10/14 aravind raj 

> i am new to cake-php
> ..
> can get some free simple cakephp applications ...
>
>
> --
> Aravind "Think Global Act Local"
>
> >
>


-- 
Pozdrawiam, Mateusz Kaczanowski

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



new to cake-php

2009-10-14 Thread aravind raj
i am new to cake-php
..
can get some free simple cakephp applications ...


-- 
Aravind "Think Global Act Local"

--~--~-~--~~~---~--~~
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: Im new to cake , need help on relating the models

2009-06-18 Thread icc97

Sounds like what you've done so far is correct - assuming that the
primary key on the blood_groups table is 'id'.

Now you need to bake yourself some models, controllers and views, try
this website for reference:
http://www.webdevelopment2.com/cakephp-bake-baking-models-controllers-views-cakephp-12/


On Jun 18, 7:07 am, Ali  wrote:
> hi cake gurus , i am new to world of cake php , my problem im facing
> is simple i have a tables , users and blood_groups , users table has a
> field blood_group_id , which is acting as foreign key and refference
> table is blood_groups , i need to related the tables please help me
> out.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Im new to cake , need help on relating the models

2009-06-17 Thread Ali

hi cake gurus , i am new to world of cake php , my problem im facing
is simple i have a tables , users and blood_groups , users table has a
field blood_group_id , which is acting as foreign key and refference
table is blood_groups , i need to related the tables please help me
out.

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



understanding shoppping carts w/ MVC, new to cake

2009-03-19 Thread squall2...@gmail.com

 I know this is a long post, i'm sorry. I'm just trying to get advice
on how to structure this code the right way. Alright, I've been
programming php off and on for a few years now, but i'm new to cakephp
1.2. I'm working on a project that involves a shopping cart for
ordering food. After talking to a friend of mine he explained it would
be best to design the shopping cart ordering process using a concept
called 'LineItems'. This concept pretty much says that you split the
order into 'lines' and each lineitem contains a product the person
ordered, and all the information about that product, (the quanitity,
the price, the name of the product, etc, etc). Then an 'order' is the
collection of Lineitems for that user. LineItems and orders are
associated with an 'order_id'. That way you look up an order from the
'orders' table using the 'order_id' and grab all of the assicated
"LineItems" with that order_id as the prmary key. okay so good so far.
Now the problem is the how do i translate this to Model View
Controller terms? The way i have things set up now is:

Controllers:
The user will be able to place multiple orders at once (orders for
future dates, and orders for that day). So right now i'm only working
with placing a single order with a controller called
'singleOrderController"

Models:
Then I have an 'order' model which writes to an 'orders' database
table
Then i have a 'LneItem' model that writes to a 'LineItems" database
table

Assocations
order->HasMany 'LineItem'
LineItem->BelongsTo 'order'

Database tables:
menuItems -> contains a list of food items offered by the company
lineItems-> contains a list of menuItems that user has ordered, the
quanity etc. AND the 'order_id'
orders->contains the "order_id" and the 'order_number'

so the code i have to do the processing so far is

CODE

foreach ($this->data['menuitems'] as $id => $quantity){
   if($quantity>0){ //and is numeric
   $this->LineItem->create(array("order_id" => $this-
>order->data['order_id'], "quantity"=>$quantity, "menuitem_id"=>$id));
   $this->order->save($this->LineItem->data);
   }


So the way this works is it grabs 1 line of input from the post data,
and assigns it to a lineitem, then it *HAS* to save the lineitem to
the database or else it erases it with new content. To me this just
seems stupid. The way that i would like to code this is to have an
order be an object, containing lineitems which are objects as well.
Then once you have ALL The information, you parse the data and insert
it into a database. But that doesn't seem to follow the model view
controller design pattern. Am i just not doing this right, or are
there a lot of concept behind the model view controller that i'm not
understanding? if someone could tell me how they would code this for
the best flexibility in mind, PLEASE i'm looking for ANY answers as to
how i'm messing this up, and how to design this better.

--~--~-~--~~~---~--~~
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: I am new to Cake PHP Can anybody help me on google chat

2008-07-16 Thread John David Anderson


On Jul 16, 2008, at 6:15 AM, Ayaz Khan, Indore, India wrote:

>
> HI,
>
> My Name is Ayaz.
> I am working as software developer on PHP from last 10 months but I
> have to work on cake php.
> I m doing installation of cake php. I have worked with cake php before
> 8 month. but Now I am facing some problem. May be version changed. So
> comming this.
>
> So Please Can Any body add me on google talk for help.
>
> Please Chat with me

Check out our IRC channel (#cakephp on freenode) for interactive help.

-- John

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



I am new to Cake PHP Can anybody help me on google chat

2008-07-16 Thread Ayaz Khan, Indore, India

HI,

My Name is Ayaz.
I am working as software developer on PHP from last 10 months but I
have to work on cake php.
I m doing installation of cake php. I have worked with cake php before
8 month. but Now I am facing some problem. May be version changed. So
comming this.

So Please Can Any body add me on google talk for help.

Please Chat with me


Regards
Ayaz

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



Re: New to Cake PHP

2008-07-02 Thread dr. Hannibal Lecter

Hello Musammil,

welcome to the beautiful world of Cake!

Your best sources of information are:

The Cookbook
http://book.cakephp.org/

The API reference:
http://api.cakephp.org/

The Bakery
http://bakery.cakephp.org/

And of course, the pages listed here:
http://groups.google.com/group/cake-php/web?hl=xx-bork

If everything else fails, use the search on this group and ask a
question if there is no previous answer.

Happy baking!

On Jul 2, 12:59 am, musammil <[EMAIL PROTECTED]> wrote:
> Hi Guys
>
> I am Mohamed Musammil.working as Web Application Developer with the
> Hands of 1 year 4 Months.i am new to Cake PHP,i want to study Cake PHP
> Framework.could anyone help me by providing the guidance .with
> expecting precious reply from our group.
>
> Thanks
>
> Musammil
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



New to Cake PHP

2008-07-02 Thread musammil

Hi Guys

I am Mohamed Musammil.working as Web Application Developer with the
Hands of 1 year 4 Months.i am new to Cake PHP,i want to study Cake PHP
Framework.could anyone help me by providing the guidance .with
expecting precious reply from our group.

Thanks

Musammil

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



Re: new to cake

2008-06-26 Thread Daniel Hofstetter

Hi,

> can any one suggest me about the tutors i am new to cake
> development ...
> i have knowledge in php+mysql+ajax+javascript...

Have a look at the blog tutorial in the manual: 
http://book.cakephp.org/view/219/blog

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



new to cake

2008-06-26 Thread codebreak

can any one suggest me about the tutors i am new to cake
development ...
i have knowledge in php+mysql+ajax+javascript...

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



Re: New to Cake, issue with TimeHelper

2008-06-02 Thread Jonathan Snook

That's usually a sign that you forgot to include the Time helper at
the controller.

eg: var $helpers = array('Time');

On Mon, Jun 2, 2008 at 1:41 AM, gokujou <[EMAIL PROTECTED]> wrote:
> but all I get is this as an error:
>
> Notice (8): Undefined variable: time [APP/views/posts/index.ctp, line 10]
> Is there a reason? I am probably missing something. Thank you for any
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



New to Cake, issue with TimeHelper

2008-06-02 Thread gokujou

Hello,

I am trying to use the time helper to format a date object string.
I am trying to use this script:

echo($time->niceShort($post['Post']['created']));

but all I get is this as an error:

Notice (8): Undefined variable: time [APP/views/posts/index.ctp, line
10]

Fatal error: Call to a member function niceShort() on a non-object in /
nfs/c01/h05/mnt/36683/domains/justinmueller.com/html/cake/app/views/
posts/index.ctp on line 10

Is there a reason? I am probably missing something. Thank you for any
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Joel

If you're looking to modify the data before it is saved to the DB,
then you need to use the Model::beforeSave() callback, or whichever
filter is appropriate for your needs.

Also, the automatic password hashing is only present in the official
Auth component of CakePHP 1.2.  The blog tutorial was written for
CakePHP 1.1.

-Joel.

On Apr 9, 5:05 pm, Brian <[EMAIL PROTECTED]> wrote:
> I have looked at both quite a bit. I will have to take another look and see
> if I can find some examples to work with.
>
> Thanks
>
> On Wed, Apr 9, 2008 at 5:01 PM, Sliv <[EMAIL PROTECTED]> wrote:
>
> > Have you looked athttp://book.cakephp.org and searched
> >http://bakery.cakephp.org
> > yet?  There's quite a bit more info there than in the manual.
--~--~-~--~~~---~--~~
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: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Marcin Domanski

come on irc #cakephp @ freenode

as for the original question:
>How does one go about modifying the data before it is saved?
the most appropriate place is the models beforeSave() callback

On Wed, Apr 9, 2008 at 11:05 PM, Brian <[EMAIL PROTECTED]> wrote:
> I have looked at both quite a bit. I will have to take another look and see
> if I can find some examples to work with.
>
> Thanks
>
>
>
> On Wed, Apr 9, 2008 at 5:01 PM, Sliv <[EMAIL PROTECTED]> wrote:
>
> >
> > Have you looked at http://book.cakephp.org  and searched
> http://bakery.cakephp.org
> > yet?  There's quite a bit more info there than in the manual.
> >
> >
> >
>
>
>  >
>



-- 
Marcin Domanski
http://kabturek.info

--~--~-~--~~~---~--~~
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: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Brian
I have looked at both quite a bit. I will have to take another look and see
if I can find some examples to work with.

Thanks

On Wed, Apr 9, 2008 at 5:01 PM, Sliv <[EMAIL PROTECTED]> wrote:

>
> Have you looked at http://book.cakephp.org  and searched
> http://bakery.cakephp.org
> yet?  There's quite a bit more info there than in the manual.
>
> >
>

--~--~-~--~~~---~--~~
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: New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Sliv

Have you looked at http://book.cakephp.org  and searched 
http://bakery.cakephp.org
yet?  There's quite a bit more info there than in the manual.

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



New to Cake, questions about views, htmlhelpers and saving data

2008-04-09 Thread Brian

First off I am familiar with php and mysql, I can create small
applications (although they might not be too efficient.) So, I decided
to get my feet wet with CakePHP.

I figured I would create a user based system and then can add on
aspects of my applications from there.

I first started off with the short blog tutorial (so I had something
to test my login/protection), after that I created a user/groups/
permissions based login system (with othAuth.) I am understanding how
everything works and it all seems to make sense.

Now I am at the point were I am trying to have a form so that a
certain group can create new members. Using the add posts view page
(from the blog tutorial) as an example, I was able to create a form
that saves the data to the database.

This is were it is becoming a little frustrating, I guess it's because
i am not fully grasping how the system handles the data.

What I am not fully grasping might have to do with the views/htmls
helpers. I can't seem to find any type of documentation as to how it
actually works. (I looked at the api but just found that confusing as
there were no examples. I learn easier by working backwards and like
to see examples.)

I collect the password but its saved into the database as clear text,
not an md5 hash. I would also like the username to be created based on
the first name and last name of the new user.

How does one go about modifying the data before it is saved?

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: New to Cake, questions about a document building website

2008-01-09 Thread dr. Hannibal Lecter

Hi,

as far as Cake is concerned, good place to start would be The Bakery
(http://bakery.cakephp.org/) and screencasts on the official site
(http://cakephp.org/screencasts). Points of reference: if you're using
1.1 stable then the manual (http://manual.cakephp.org/), otherwise the
temp docs for the 1.2 (http://tempdocs.cakephp.org/), it's a work in
progress, but still of great help!

Also, you might want to subscribe to the CakePHP Super Feed (http://
feeds.feedburner.com/cakephp) to stay in touch with the latest events
and rants.

The M$ Word generating stuff is not really Cake-related, google it up
and see what happens (http://www.google.com/search?q=php+word
+document)

Hope that helps,
dr. H.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



New to Cake, questions about a document building website

2008-01-08 Thread [EMAIL PROTECTED]

Hi folks,
I'm fairly experienced with PHP and Mysql but just started learning
about Cakephp tonight.
I'm interested in building a (simple, at least at first) web page
that:
1. Asks the user several questions, contains checkboxes, etc (using
ajax forms)
2. based on their answer criteria, builds a Word document and stores
it for download.

On the backend, a mysql database would contain a table with blocks of
document data (paragraphs). Depending on which options they select,
the final word document would be built using the selected criteria.

Example - I'll use a car building analogy:
Page Form - Building a car:
1. Color - choices, red, blue, green
2. Seats - leather, cloth
3. Steering wheel - yes, no (heh)

Let's say the user selects a red car with leather seats and no
steering wheel.
Once the form is submitted, the database would query the "color",
"seats", and "steering" tables and pull document paragraphs from them,
place them into a Word doc with headers, footers, pretty pictures,
etc. and make the document available for download.

Am I making sense here?
Would anyone here be willing to just give me a kick start on the
code?


--~--~-~--~~~---~--~~
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: New To Cake PHP

2007-12-28 Thread Chris Hartjes

On Dec 28, 2007 1:23 PM, gourab singha <[EMAIL PROTECTED]> wrote:
> Is ther any reference for cakephp job for freasher as like me.

http://tempdoc.cakephp.org

-- 
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: New To Cake PHP

2007-12-28 Thread Ron Chaplin
http://api.cakephp.org
That's the code documentation
On Fri, 2007-12-28 at 13:23 -0500, gourab singha wrote:

> Tanks All Of Members Bosses.I Think CakePHP is Greate .But I learn
> Much and Much about cake php.But there is limitation in manuals so
> give me the address of the site where i get lot of function on
> cakephp.
> example like
> www.php.com for php function search
> Is ther any reference for cakephp job for freasher as like me.
> I have 6 month exprience in php for Kolkata ,Westbengal,India Designe
> devlopment Solution .
> Please coparate  with me.
> 
> On 12/21/07, Serge Rodovnichenko <[EMAIL PROTECTED]> wrote:
> >
> > Theory is here: http://en.wikipedia.org/wiki/Model-view-controller
> >
> > On Dec 21, 6:10 pm, Gourab singha <[EMAIL PROTECTED]> wrote:
> > > I am new To Cake PHP .It is very difficult to me that communicate
> > > Module,Controller,View To Each Other,Please Send me a simple coded
> > > project that help me to understand the communication between
> > > Module,Controller,View .Please Don't attach  and Mysql database
> > > table .Then it is hard to me to understand.
> > >
> > > also send a code that display Name, Age of the user from the database
> > > that is in table User Of Mysql Database.
> > >
> > > Please Help Me Bose..
> > >
> > > Thanks You All Member of The Cake PHP Comunity.
> > >
> >
> 
> > 

Thanks,

Ronald Chaplin
Owner - T73 Software and Designs




  http://t73-softdesign.com/

  We'll Make All Of Your Wildest

e-Commerce Dreams Come True!

--~--~-~--~~~---~--~~
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: New To Cake PHP

2007-12-28 Thread gourab singha

Tanks All Of Members Bosses.I Think CakePHP is Greate .But I learn
Much and Much about cake php.But there is limitation in manuals so
give me the address of the site where i get lot of function on
cakephp.
example like
www.php.com for php function search
Is ther any reference for cakephp job for freasher as like me.
I have 6 month exprience in php for Kolkata ,Westbengal,India Designe
devlopment Solution .
Please coparate  with me.

On 12/21/07, Serge Rodovnichenko <[EMAIL PROTECTED]> wrote:
>
> Theory is here: http://en.wikipedia.org/wiki/Model-view-controller
>
> On Dec 21, 6:10 pm, Gourab singha <[EMAIL PROTECTED]> wrote:
> > I am new To Cake PHP .It is very difficult to me that communicate
> > Module,Controller,View To Each Other,Please Send me a simple coded
> > project that help me to understand the communication between
> > Module,Controller,View .Please Don't attach  and Mysql database
> > table .Then it is hard to me to understand.
> >
> > also send a code that display Name, Age of the user from the database
> > that is in table User Of Mysql Database.
> >
> > Please Help Me Bose..
> >
> > Thanks You All Member of The Cake PHP Comunity.
> >
>

--~--~-~--~~~---~--~~
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: New To Cake PHP

2007-12-21 Thread Serge Rodovnichenko

Theory is here: http://en.wikipedia.org/wiki/Model-view-controller

On Dec 21, 6:10 pm, Gourab singha <[EMAIL PROTECTED]> wrote:
> I am new To Cake PHP .It is very difficult to me that communicate
> Module,Controller,View To Each Other,Please Send me a simple coded
> project that help me to understand the communication between
> Module,Controller,View .Please Don't attach  and Mysql database
> table .Then it is hard to me to understand.
>
> also send a code that display Name, Age of the user from the database
> that is in table User Of Mysql Database.
>
> Please Help Me Bose..
>
> Thanks You All Member of The Cake PHP Comunity.
--~--~-~--~~~---~--~~
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: New To Cake PHP

2007-12-21 Thread Davide

Gourab singha wrote:
>
> I am new To Cake PHP .It is very difficult to me that communicate
> Module,Controller,View To Each Other,Please Send me a simple coded

Sorry, I have no time to post code samples and so on, but sometime ago, I
posted on the blog[1] the resources I used for learning this framework.

Maybe something now it's deprecated.

HTH
Bye
Davide

1. http://edivad.wordpress.com/2007/04/06/learning-cakephp/


-- 
Live life like you're gonna die. Because you're gonna.
William Shatner


--~--~-~--~~~---~--~~
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: New To Cake PHP

2007-12-21 Thread bingomanatee

There are two projects in the manual on the cakephp.org site:

* Setting up a user login system
* Setting up a blog

There are other examples of "first day CakePHP" at IBM.com; do a web
search for IBM CakePHP for those.

Given your questions, the first tutorial might help the most; for
displaying user data I'd suggest the following after you do that
tutorial.

In the users table add the field Age to the database. (Also consider a
"birthday" field.)

Add a function to the Users_controller class:

function index(){ $this->data = $this->Users->findAll(); }

then create a view in /views/users/index.thtml



Name
Username
Birthday
Age

data as $row){
$age = get_age($row);
?>

link( $row['User']['name'], '/users/view/' .
$row['User']['id']) ?>






http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: New To Cake PHP

2007-12-21 Thread Chris Hartjes

On Dec 21, 2007 10:10 AM, Gourab singha <[EMAIL PROTECTED]> wrote:
>
> I am new To Cake PHP .It is very difficult to me that communicate
> Module,Controller,View To Each Other,Please Send me a simple coded
> project that help me to understand the communication between
> Module,Controller,View .Please Don't attach  and Mysql database
> table .Then it is hard to me to understand.
>
>
> also send a code that display Name, Age of the user from the database
> that is in table User Of Mysql Database.
>
>
>
> Please Help Me Bose..
>
> Thanks You All Member of The Cake PHP Comunity.

I suggest you look at the example in the manual on building a blog
using CakePHP.  While the code isn't 100% perfect, it is a great
introduction to some key features of CakePHP.

Hope that helps.

Also, don't forget to use Google.

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



New To Cake PHP

2007-12-21 Thread Gourab singha

I am new To Cake PHP .It is very difficult to me that communicate
Module,Controller,View To Each Other,Please Send me a simple coded
project that help me to understand the communication between
Module,Controller,View .Please Don't attach  and Mysql database
table .Then it is hard to me to understand.


also send a code that display Name, Age of the user from the database
that is in table User Of Mysql Database.



Please Help Me Bose..

Thanks You All Member of The Cake PHP Comunity.

--~--~-~--~~~---~--~~
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: New to Cake PHP, Question Regarding Functions.

2007-10-16 Thread the_woodsman

Generally people will suggest the app controller, the superclass for
all your controllers, or one of the bootstrap / config files.

> I am new to Cake PHP and i figured i had better ask before i dive into
> it.

I think youll be able to answer most questions like this yourself once
you get started using Cake, and with the help of existing posts on
this group

On Oct 16, 11:14 am, Exodus <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to Cake PHP and i figured i had better ask before i dive into
> it.
>
> I am trying to migrate a website to Cake and i currently have a file
> full of functions. What is the best method to include each function
> into Cake php so they can be used anywhere within the framework
>
> Thanks
> -Exodus


--~--~-~--~~~---~--~~
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: New to Cake PHP, Question Regarding Functions.

2007-10-16 Thread Chambrln

It sounds like the way you have your current website setup is not
going to work for the way Cake works.  Cake is geared more towards the
Model, Controller, View approach which gives you a controller with
specific functions and models associated to that controller.  You may
want to take a look and see if you can separate your functions into
logical groups so they can exist in your controller.

If you aren't familiar with classes you would call the function like
this.  $this->functionName();

On Oct 16, 8:14 am, Exodus <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to Cake PHP and i figured i had better ask before i dive into
> it.
>
> I am trying to migrate a website to Cake and i currently have a file
> full of functions. What is the best method to include each function
> into Cake php so they can be used anywhere within the framework
>
> Thanks
> -Exodus


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



New to Cake PHP, Question Regarding Functions.

2007-10-16 Thread Exodus

Hello,

I am new to Cake PHP and i figured i had better ask before i dive into
it.

I am trying to migrate a website to Cake and i currently have a file
full of functions. What is the best method to include each function
into Cake php so they can be used anywhere within the framework


Thanks
-Exodus


--~--~-~--~~~---~--~~
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: New to Cake PHP

2007-10-05 Thread [EMAIL PROTECTED]

Hmm...I finally have it running. :-)


Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all


I just changed the "Options Indexes MultiViews" to "Options Indexes
FollowSymLinks". Though i don't totally understand what it means ^_^,
still have to do research about this but if you have some inputs or
ideas that can help, i would gladly appreciate it.

Thank you very much.

Wendell


--~--~-~--~~~---~--~~
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: New to Cake PHP

2007-10-05 Thread [EMAIL PROTECTED]

Hello John,

Thank you for your prompt response.

I already did create a register() function in my controller(app
\controllers\users_controller.php) and also have a view for that
controller (app\views\users\register.thtml) but still has the same
result. What I have in mind is I think theres something wrong with my
mod_rewrite setup since It's displaying the incorrect-looking home
page(without css and etc). I'm still researching about this right now.
Additional suggestions and or solutions is highly appreciated.

Thank you for your help.

Regards,

Wendell



--~--~-~--~~~---~--~~
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: New to Cake PHP

2007-10-05 Thread John David Anderson (_psychic_)


On Oct 5, 2007, at 12:22 PM, [EMAIL PROTECTED] wrote:

>
> Hello,
>
> I'm new to CakePHP, on my first cake setup, i tried to follow the
> tutorial and create files as stated but it seems I can't access the
> page that I'm suppose to access like app/views/users/register.thtml.
> Its giving me this error below:

Cake URLs don't necessarily mirror the filesystem.

> I already created the controller(app/controllers/users_controller) and
> the model (app/models/user.php) for this one. Maybe I miss something
> out.

Create a register() function in your controller, and make sure there  
is a view for that controller action in app/views/users/ 
register.thtml (or .ctp for 1.2 users).

Then visit it at /users/register.

-- John

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



New to Cake PHP

2007-10-05 Thread [EMAIL PROTECTED]

Hello,

I'm new to CakePHP, on my first cake setup, i tried to follow the
tutorial and create files as stated but it seems I can't access the
page that I'm suppose to access like app/views/users/register.thtml.
Its giving me this error below:


Not Found

The requested URL /cake/users was not found on this server.


I already created the controller(app/controllers/users_controller) and
the model (app/models/user.php) for this one. Maybe I miss something
out.

Your help is greatly appreciated. Thank you very much.


Regards,

Wendell


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Samuel DeVore

also some php5 installs do not have the mysql connectors installed by
default, have you verified that you can connect to the mysql db using
just plain php?
http://us.php.net/mysql
Sam D

On 7/19/07, Erich C. Beyrent <[EMAIL PROTECTED]> wrote:
>
> Can you connect to the database via the console using that username and
> password?  Did you add permissions to the database for that user?
>
> -Erich-
>
> Chris Hartjes wrote:
> > On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
> >> Thank you.
> >>
> >> Tried that. Same result, same errors.
> >>
> >> Bob
> >
> > Well, I'm pretty sure that when PHP is saying that it can't connect to
> > the database server, it's being honest.  I would triple check that the
> > username and password you are using are correct.  That's the only
> > possible explanation given the error message.
> >
>
> >
>


-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Erich C. Beyrent

Can you connect to the database via the console using that username and
password?  Did you add permissions to the database for that user?

-Erich-

Chris Hartjes wrote:
> On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>> Thank you.
>>
>> Tried that. Same result, same errors.
>>
>> Bob
> 
> Well, I'm pretty sure that when PHP is saying that it can't connect to
> the database server, it's being honest.  I would triple check that the
> username and password you are using are correct.  That's the only
> possible explanation given the error message.
> 

--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Pablo Viojo
Try installing someother app that uses db (could be wordpress) and check if
it works correctly. If it doesn't then theres a problem with the
comuunication between php and mysql.

Pablo

On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>
>
> I logged in to the DB using the  user and pass, so I know it is
> correct. It matches what is in the database.PHP file. I took the IP
> address of the DB server and plugged it into database.PHP. I did not
> get the errors this time, but still can't connect to DB?
>
> Thanks
>
> On Jul 19, 12:57 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> > On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Thank you.
> >
> > > Tried that. Same result, same errors.
> >
> > > Bob
> >
> > Well, I'm pretty sure that when PHP is saying that it can't connect to
> > the database server, it's being honest.  I would triple check that the
> > username and password you are using are correct.  That's the only
> > possible explanation given the error message.
> >
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
> >
> > My motto for 2007:  "Just build it, damnit!"
> >
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard
>
>
> >
>


-- 
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net

--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Bob

I logged in to the DB using the  user and pass, so I know it is
correct. It matches what is in the database.PHP file. I took the IP
address of the DB server and plugged it into database.PHP. I did not
get the errors this time, but still can't connect to DB?

Thanks

On Jul 19, 12:57 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thank you.
>
> > Tried that. Same result, same errors.
>
> > Bob
>
> Well, I'm pretty sure that when PHP is saying that it can't connect to
> the database server, it's being honest.  I would triple check that the
> username and password you are using are correct.  That's the only
> possible explanation given the error message.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @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: New to Cake

2007-07-19 Thread Vincent Fleuranceau

Hi,

- Is MySQL accepting (socket) connections on localhost?

- Does the /usr/local/mysql-5.0/data/mysql.sock file exist?


See:
http://dev.mysql.com/doc/refman/5.0/en/can-not-connect-to-server.html

-- Vincent




--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Chris Hartjes

On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>
> Thank you.
>
> Tried that. Same result, same errors.
>
> Bob

Well, I'm pretty sure that when PHP is saying that it can't connect to
the database server, it's being honest.  I would triple check that the
username and password you are using are correct.  That's the only
possible explanation given the error message.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

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

@TheBallpark - http://www.littlehart.net/attheballpark
@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: New to Cake

2007-07-19 Thread Bob

Thank you.

Tried that. Same result, same errors.

Bob

On Jul 19, 12:47 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>
>
>
> > 127.0.0.1? please explain.
> > thanks
>
> 127.0.0.1 is an IP address that usually represents your local machine.
>
> --
> Chris Hartjes
> Senior Developer
> Cake Development Corporation
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheBallpark -http://www.littlehart.net/attheballpark
> @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: New to Cake

2007-07-19 Thread Chris Hartjes

On 7/19/07, Bob <[EMAIL PROTECTED]> wrote:
>
> 127.0.0.1? please explain.
> thanks

127.0.0.1 is an IP address that usually represents your local machine.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

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

@TheBallpark - http://www.littlehart.net/attheballpark
@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: New to Cake

2007-07-19 Thread John David Anderson (_psychic_)


On Jul 19, 2007, at 11:42 AM, Bob wrote:

>
> 127.0.0.1? please explain.

Instead of

'host' => 'localhost'

do

'host' => '127.0.0.1'

-- John

--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Bob

127.0.0.1? please explain.
thanks

On Jul 19, 12:31 pm, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Jul 19, 2007, at 11:28 AM, Bob wrote:
>
>
>
> > yes, here it is.
>
> > class DATABASE_CONFIG
> > {
> >var $default = array('driver' => 'mysql',
> >'connect' => 
> > 'mysql_connect',
> >'host' => 
> > 'localhost',
>
> Try 127.0.0.1, just for fun.
>
> Oh, and change your password now that you've shared it with us. ;)
>
> -- John


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread John David Anderson (_psychic_)


On Jul 19, 2007, at 11:28 AM, Bob wrote:

>
> yes, here it is.
>
> class DATABASE_CONFIG
> {
>   var $default = array('driver' => 'mysql',
>   'connect' => 
> 'mysql_connect',
>   'host' => 
> 'localhost',

Try 127.0.0.1, just for fun.

Oh, and change your password now that you've shared it with us. ;)

-- John

--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Bob

you are correct!

On Jul 19, 12:30 pm, "Christopher E. Franklin, Sr."
<[EMAIL PROTECTED]> wrote:
> You should not include your password :)
>
> On Jul 19, 10:28 am, Bob <[EMAIL PROTECTED]> wrote:
>
>
>
> > yes, here it is.
>
> > class DATABASE_CONFIG
> > {
> > var $default = array('driver' => 'mysql',
> > 'connect' 
> > => 'mysql_connect',
> > 'host' => 
> > 'localhost',
> > 'login' => 
> > 'br_cake',
> > 'password' 
> > => 'xx',
> > 'database' 
> > => 'cakeDB',
> > 'prefix' => 
> > '');
>
> > var $test = array('driver' => 'mysql',
> > 'connect' => 
> > 'mysql_connect',
> > 'host' => 
> > 'localhost',
> > 'login' => 
> > 'br_cake',
> > 'password' => 
> > 'xx',
> > 'database' => 
> > 'cakeDB',
> > 'prefix' => '');}
>
> > ?>
>
> > On Jul 19, 12:06 pm, rtconner <[EMAIL PROTECTED]> wrote:
>
> > > Did you config the configure/database.php file?
>
> > > On Jul 19, 10:43 am, Bob <[EMAIL PROTECTED]> wrote:
>
> > > > Thanks for the reply.
>
> > > > I set up the database this morning and it is up and running, but still
> > > > unable to connect.
>
> > > > Any other suggestions?
>
> > > > On Jul 19, 11:37 am, "John David Anderson (_psychic_)"
>
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > On Jul 19, 2007, at 10:28 AM, Bob wrote:
>
> > > > > > I am attempting to start Cake for the first time. I get the 
> > > > > > following
> > > > > > errors when trying to open:
>
> > > > > > Warning: mysql_connect(): Can't connect to local MySQL server 
> > > > > > through
> > > > > > socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/
> > > > > > b/r/
> > > > > > o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 
> > > > > > 100
>
> > > > > > Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> > > > > > Link resource in 
> > > > > > /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> > > > > > model/dbo/dbo_mysql.php on line 105
>
> > > > > > I am very new and any help would be appreciated.
>
> > > > > Make sure your database server is up and running, and give Cake a try
> > > > > once you're sure it's up.
>
> > > > > The error messages you've supplied here mean that PHP can't connect
> > > > > to the server.
>
> > > > > -- John- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Christopher E. Franklin, Sr.

You should not include your password :)

On Jul 19, 10:28 am, Bob <[EMAIL PROTECTED]> wrote:
> yes, here it is.
>
> class DATABASE_CONFIG
> {
> var $default = array('driver' => 'mysql',
> 'connect' => 
> 'mysql_connect',
> 'host' => 
> 'localhost',
> 'login' => 
> 'br_cake',
> 'password' => 
> 'xx',
> 'database' => 
> 'cakeDB',
> 'prefix' => 
> '');
>
> var $test = array('driver' => 'mysql',
> 'connect' => 
> 'mysql_connect',
> 'host' => 'localhost',
> 'login' => 'br_cake',
> 'password' => 
> 'xx',
> 'database' => 
> 'cakeDB',
> 'prefix' => '');}
>
> ?>
>
> On Jul 19, 12:06 pm, rtconner <[EMAIL PROTECTED]> wrote:
>
> > Did you config the configure/database.php file?
>
> > On Jul 19, 10:43 am, Bob <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for the reply.
>
> > > I set up the database this morning and it is up and running, but still
> > > unable to connect.
>
> > > Any other suggestions?
>
> > > On Jul 19, 11:37 am, "John David Anderson (_psychic_)"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > On Jul 19, 2007, at 10:28 AM, Bob wrote:
>
> > > > > I am attempting to start Cake for the first time. I get the following
> > > > > errors when trying to open:
>
> > > > > Warning: mysql_connect(): Can't connect to local MySQL server through
> > > > > socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/
> > > > > b/r/
> > > > > o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> > > > > Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> > > > > Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> > > > > model/dbo/dbo_mysql.php on line 105
>
> > > > > I am very new and any help would be appreciated.
>
> > > > Make sure your database server is up and running, and give Cake a try
> > > > once you're sure it's up.
>
> > > > The error messages you've supplied here mean that PHP can't connect
> > > > to the server.
>
> > > > -- John- Hide quoted text -
>
> > - Show quoted text -


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Bob

yes, here it is.

class DATABASE_CONFIG
{
var $default = array('driver' => 'mysql',
'connect' => 
'mysql_connect',
'host' => 
'localhost',
'login' => 
'br_cake',
'password' => 
'Cle01cat',
'database' => 
'cakeDB',
'prefix' => '');

var $test = array('driver' => 'mysql',
'connect' => 
'mysql_connect',
'host' => 'localhost',
'login' => 'br_cake',
'password' => 
'Cle01cat',
'database' => 'cakeDB',
'prefix' => '');
}
?>


On Jul 19, 12:06 pm, rtconner <[EMAIL PROTECTED]> wrote:
> Did you config the configure/database.php file?
>
> On Jul 19, 10:43 am, Bob <[EMAIL PROTECTED]> wrote:
>
>
>
> > Thanks for the reply.
>
> > I set up the database this morning and it is up and running, but still
> > unable to connect.
>
> > Any other suggestions?
>
> > On Jul 19, 11:37 am, "John David Anderson (_psychic_)"
>
> > <[EMAIL PROTECTED]> wrote:
> > > On Jul 19, 2007, at 10:28 AM, Bob wrote:
>
> > > > I am attempting to start Cake for the first time. I get the following
> > > > errors when trying to open:
>
> > > > Warning: mysql_connect(): Can't connect to local MySQL server through
> > > > socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/
> > > > b/r/
> > > > o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> > > > Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> > > > Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> > > > model/dbo/dbo_mysql.php on line 105
>
> > > > I am very new and any help would be appreciated.
>
> > > Make sure your database server is up and running, and give Cake a try
> > > once you're sure it's up.
>
> > > The error messages you've supplied here mean that PHP can't connect
> > > to the server.
>
> > > -- John- Hide quoted text -
>
> - Show quoted text -


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread rtconner

Did you config the configure/database.php file?

On Jul 19, 10:43 am, Bob <[EMAIL PROTECTED]> wrote:
> Thanks for the reply.
>
> I set up the database this morning and it is up and running, but still
> unable to connect.
>
> Any other suggestions?
>
> On Jul 19, 11:37 am, "John David Anderson (_psychic_)"
>
> <[EMAIL PROTECTED]> wrote:
> > On Jul 19, 2007, at 10:28 AM, Bob wrote:
>
> > > I am attempting to start Cake for the first time. I get the following
> > > errors when trying to open:
>
> > > Warning: mysql_connect(): Can't connect to local MySQL server through
> > > socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/
> > > b/r/
> > > o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> > > Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> > > Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> > > model/dbo/dbo_mysql.php on line 105
>
> > > I am very new and any help would be appreciated.
>
> > Make sure your database server is up and running, and give Cake a try
> > once you're sure it's up.
>
> > The error messages you've supplied here mean that PHP can't connect
> > to the server.
>
> > -- John


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread Bob

Thanks for the reply.

I set up the database this morning and it is up and running, but still
unable to connect.

Any other suggestions?

On Jul 19, 11:37 am, "John David Anderson (_psychic_)"
<[EMAIL PROTECTED]> wrote:
> On Jul 19, 2007, at 10:28 AM, Bob wrote:
>
>
>
> > I am attempting to start Cake for the first time. I get the following
> > errors when trying to open:
>
> > Warning: mysql_connect(): Can't connect to local MySQL server through
> > socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/
> > b/r/
> > o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> > Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> > Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> > model/dbo/dbo_mysql.php on line 105
>
> > I am very new and any help would be appreciated.
>
> Make sure your database server is up and running, and give Cake a try  
> once you're sure it's up.
>
> The error messages you've supplied here mean that PHP can't connect  
> to the server.
>
> -- John


--~--~-~--~~~---~--~~
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: New to Cake

2007-07-19 Thread John David Anderson (_psychic_)


On Jul 19, 2007, at 10:28 AM, Bob wrote:

>
> I am attempting to start Cake for the first time. I get the following
> errors when trying to open:
>
> Warning: mysql_connect(): Can't connect to local MySQL server through
> socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/ 
> b/r/
> o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100
>
> Warning: mysql_select_db(): supplied argument is not a valid MySQL-
> Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
> model/dbo/dbo_mysql.php on line 105
>
> I am very new and any help would be appreciated.

Make sure your database server is up and running, and give Cake a try  
once you're sure it's up.

The error messages you've supplied here mean that PHP can't connect  
to the server.

-- John

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



New to Cake

2007-07-19 Thread Bob

I am attempting to start Cake for the first time. I get the following
errors when trying to open:

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/b/r/
o/brob3435594/html/cake/cake/libs/model/dbo/dbo_mysql.php on line 100

Warning: mysql_select_db(): supplied argument is not a valid MySQL-
Link resource in /home/content/b/r/o/brob3435594/html/cake/cake/libs/
model/dbo/dbo_mysql.php on line 105

I am very new and any help would be appreciated.

Thanks


--~--~-~--~~~---~--~~
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: new to Cake, help with setting up site's infrastucture

2007-05-04 Thread Bootstrapper

Some more details that might help:

Inside your CitiesController you would have a view() action (a
function) that you can pass the city id too.

Just in case you need to get really basic with how the MVC aspects
work (broken into MVC):

After requesting the url suggested by gwoo: /cities/view/1

C - the Controller:

The action called view, in your CitiesController, requests that city's
data from the model using something like find()

M - the Model

The City model searches the Cities database table for the record with
the matching city id and returns the data to the Controller. (This is
done automatically for you by calling find() or an equivalent in the
controller. Once the model is initially set up, you won't need to add
anything to make this process work.)

The CityController then passes that to the view using set()

V - the View

The view called view.thtml then prepares the html served to the
browser.

-
You also mentioned the homepage having a listing of all cities. That
could also be in your CitiesController. You could have an action
called ViewAll that uses findAll() to get all the cities. The
controller would pass that data in an array to the view to display.

Actually, I think you can really use the beauty of Cake here by just
making a DB table for Cities, then using the bake feature to bake
everything we just talked about including the model, views, controller
and actions + adding, editing and deleting cities! You'll be amazed!

Hope that helped and good luck!



On May 4, 1:15 pm, gwoo <[EMAIL PROTECTED]> wrote:
> You would create a CitiesController with a City model.
> Your URL would be /cities/view/1 for the city with id 1.
> You could use this to set a Session that would allow the current city
> to persist across other controllers.
>
> hope this helps.


--~--~-~--~~~---~--~~
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: new to Cake, help with setting up site's infrastucture

2007-05-04 Thread gwoo

You would create a CitiesController with a City model.
Your URL would be /cities/view/1 for the city with id 1.
You could use this to set a Session that would allow the current city
to persist across other controllers.

hope this helps.


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



new to Cake, help with setting up site's infrastucture

2007-05-04 Thread Scitt

Let me start by saying I am a complete novice to Cake PHP but plan to
change that very soon, I am an intermediate php developer and can't
wait to start using this framework for new apps I am developing.

I don't see the whole picture yet and could use some assistance in
getting started.

i'm using mysql 4.0.25 and php 4.3.8.

This site revolves around a user's selected city.  The homepage pretty
much is a listing of all the available cities which then takes you to
that specific cities page.  All the code for a specific city is the
same as any other city, the only difference is the data being pulled
from the database only relates to that specific cities id.  A sample
file/folder structure would be:

index.php (listing of cities)
/city/index.php?city=1
/city/index.php?city=2
/city/index.php?city=3

My confusion lies with incorporating this functionality in the MVC
programming pattern.  Any help or assistance in getting this started
would be very helpful!

Thanks,

Scitt


--~--~-~--~~~---~--~~
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: new to cake php, need help on tag clouds database design

2007-03-22 Thread barduck


I am not sure I understand what are you trying to achieve, why would
you need a table with tag, user id and post id?

For typical tag cloud implementation, I assume that you would have
tags, users and posts, each user has set tags associated with it and
each post has (different) set of tags for it. Right?

In this case, your database will be something like that

"tags" table, with "id" and "tag"
"users" table, with "id" and all the other information you want to
save for the user
"posts" table, with "id" and all post related information

Now, you have 2 tables for the relationship between tags, users and
posts.
"tags_users" HABTM table, with "tag_id" and "user_id"
"posts_tags" HABTM table, with "post_id" and "tag_id"


- barduck






On Mar 22, 11:42 am, "feelexit" <[EMAIL PROTECTED]> wrote:
> I just start a simple web application. Need to make tag clouds for it,
> so it will look more like web 2.0
>
> here's the problem, I have this table called "tags".
>
> tags has id, tag, users_id, posts_id,  I dont want to have id to be my
> primary key, I only want 3 columns, tag, users_id, posts_id,  and I
> want all these 3 columns to form my primary key.
>
> but based on wht I learned, I need to follow Cake's database naming
> conventions, and I have to have "id" in the table, is there a way to
> get rid of this "id" column?
>
> by the way, where is Cake's database naming conventions, I found linke
> to Cake's naming conventions, but theres nothing about "database name
> convention".


--~--~-~--~~~---~--~~
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: new to cake php, need help on tag clouds database design

2007-03-22 Thread Langdon Stevenson

Hi feelexit

> here's the problem, I have this table called "tags".
> 
> tags has id, tag, users_id, posts_id,  I dont want to have id to be my
> primary key, I only want 3 columns, tag, users_id, posts_id,  and I
> want all these 3 columns to form my primary key.
> 
> but based on wht I learned, I need to follow Cake's database naming
> conventions, and I have to have "id" in the table, is there a way to
> get rid of this "id" column?

As you have discovered, Cake requires an 'id' column by convention. 
Bottom line is that's just the way it is built.  Is there a particular 
reason why you don't want an id column?

There was a discussion about composite primary keys in this group not 
long ago.  Google should help you find it easily enough.  I think that 
the outcome was along the lines of "don't hold your breath for support 
of composite primary keys ..."  (but double check that to be sure).

Unless you have a really good reason for ditching the id column, I would 
just go with the flow.  It makes Cake's job very easy managing 
relationships, and if you have well considered validation/data integrity 
rules in your controller then you shouldn't ever run into issues with 
duplicate records.

If you are looking for database naming conventions, have a look in the 
Models section of the manual.  You should find everything you need in there.

Regards,
Langdon



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



new to cake php, need help on tag clouds database design

2007-03-22 Thread feelexit

I just start a simple web application. Need to make tag clouds for it,
so it will look more like web 2.0

here's the problem, I have this table called "tags".

tags has id, tag, users_id, posts_id,  I dont want to have id to be my
primary key, I only want 3 columns, tag, users_id, posts_id,  and I
want all these 3 columns to form my primary key.

but based on wht I learned, I need to follow Cake's database naming
conventions, and I have to have "id" in the table, is there a way to
get rid of this "id" column?

by the way, where is Cake's database naming conventions, I found linke
to Cake's naming conventions, but theres nothing about "database name
convention".


--~--~-~--~~~---~--~~
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: New to Cake, Missing View Errors (?)

2007-01-01 Thread Derrick Shields


I figured it out.

A reference for anyone who runs into this error in the future:

I had to change the permissions on the view.php file located in the
/cake core to 755.  For some reason, the version of Cake I had
downloaded had the incorrect permissions set.


--~--~-~--~~~---~--~~
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: New to Cake, Missing View Errors (?)

2007-01-01 Thread skyblueink


If you're following along with the blog tutorial withoit any
modifications of the example code, your intex.thtml and view.thtml
should be in app/views/posts/ instead of app/views/pages/. The error
message is already saying that ithey shoud be in
/.../httpdocs/app/views/posts/. As you know, Cake is
folder-name-critical and file-name-critical.

On 1 1 ,   1 08 , "Derrick Shields"
<[EMAIL PROTECTED]> wrote:

In case it helps anyone pondering this, I have copied the index.thtml
and view.thtml to the app/views/pages/ folder, and CakePHP CAN access
the pages now at mysite.com/pages/index (or /view) however obviously
this won't load the controller, etc...

Any ideas on why the two pages won't load in the views/posts directory?



--~--~-~--~~~---~--~~
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: New to Cake, Missing View Errors (?)

2006-12-31 Thread Derrick Shields


In case it helps anyone pondering this, I have copied the index.thtml
and view.thtml to the app/views/pages/ folder, and CakePHP CAN access
the pages now at mysite.com/pages/index (or /view) however obviously
this won't load the controller, etc...

Any ideas on why the two pages won't load in the views/posts directory?


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



New to Cake, Missing View Errors (?)

2006-12-30 Thread Derrick Shields


Greetings,

I'm trying to follow along with the blog tutorial, but I keep getting
"Missing View" errors when trying to look at the index.thtml and
view.thml:

You are seeing this error because the view for PostsController::index()
could not be found.

Fatal: Confirm you have created the file :
/.../httpdocs/app/views/posts/index.thtml

-or-

Fatal: Confirm you have created the file :
/.../httpdocs/app/views/posts/view.thtml

...Both these files exists, I have triple-confirmed they exist in the
correct path. Any ideas?


--~--~-~--~~~---~--~~
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: new to cake, and mvc in general

2006-10-24 Thread Walker Hamilton


[EMAIL PROTECTED] wrote:

> > Yeah, set DEBUG to 0 in /app/config/core.php (production mode).
> >
> > -- John
>
>
> So turning off debug also stops these calls to the database? Or does it
> just not log that it's doing them anymore?

DESC is what cake is running to figure out your DB. Once you go into
production mode it no longer runs this as it assumes that your db won't
be adding columns or changing the data types of columns.

So, no, in production mode it won't be running them, so they wouldn't
be there to log anyway.


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



Re: new to cake, and mvc in general

2006-10-23 Thread John David Anderson (_psychic_)


On Oct 23, 2006, at 12:04 PM, [EMAIL PROTECTED] wrote:

>
>
> John David Anderson (_psychic_) wrote:
>>
>>> I did try some of the snippets out there for overriding  
>>> invalidate in
>>> app_model.php. I mainly just encountered preg-match errors all over
>>> the
>>> place and they didn't work.
>>
>> You shouldn't need to override it.. just perform your non-regex
>> validation (date checking, CC number checking, uniqueness, etc.) and
>> use invalidate to flag fields as problmatic so Cake can take it from
>> there.
>>
>
> I might be using the wrong reference to the method I was talking  
> about,
> I'm at work, this is a home project. But I think I get what you're
> saying, and I think it's what I was believing I should do. Do my extra
> validation in the controller before passing it on to the model?

Yep. Do your custom logic before trying to call $this->ModelName->save 
().

> Using
> this->invalidate (think that's the syntax)?

$this->ModelName->invalidate('fieldname'). Check the API link I  
provided in the original message.

> This does give me a chance
> to pass specific error messages on also.

When used with tagErrorMsg(), yes.

> I'll post an example in the
> next day or so in this thread just to make sure i'm on the right page
> and doing things the Cake way.

Good luck! Seems you're on the right track.

-- John

>
>
>
>>> Database Access - Right now I'm just building a simple registration
>>> form for users. I noticed with sql debugging turned on that on the
>>> initial page view, before any of the data is submitted, a sql  
>>> query is
>>> made to describe the table (DESC `users`). It appears that every  
>>> page
>>> view using the model/controller/view setup does this query? This  
>>> looks
>>> to me like unnecessary sql queries. Is there a way to set it so it
>>> only
>>> queries when it actually needs to interact with the database?
>>
>> Yeah, set DEBUG to 0 in /app/config/core.php (production mode).
>>
>> -- John
>
>
> So turning off debug also stops these calls to the database? Or  
> does it
> just not log that it's doing them anymore?
>
> ( rest of questions and answers snipped to save bandwidth as they were
> answered more than well enough :) )
>
>
> >


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



Re: new to cake, and mvc in general

2006-10-23 Thread [EMAIL PROTECTED]


John David Anderson (_psychic_) wrote:
>
> > I did try some of the snippets out there for overriding invalidate in
> > app_model.php. I mainly just encountered preg-match errors all over
> > the
> > place and they didn't work.
>
> You shouldn't need to override it.. just perform your non-regex
> validation (date checking, CC number checking, uniqueness, etc.) and
> use invalidate to flag fields as problmatic so Cake can take it from
> there.
>

I might be using the wrong reference to the method I was talking about,
I'm at work, this is a home project. But I think I get what you're
saying, and I think it's what I was believing I should do. Do my extra
validation in the controller before passing it on to the model? Using
this->invalidate (think that's the syntax)? This does give me a chance
to pass specific error messages on also. I'll post an example in the
next day or so in this thread just to make sure i'm on the right page
and doing things the Cake way.



> > Database Access - Right now I'm just building a simple registration
> > form for users. I noticed with sql debugging turned on that on the
> > initial page view, before any of the data is submitted, a sql query is
> > made to describe the table (DESC `users`). It appears that every page
> > view using the model/controller/view setup does this query? This looks
> > to me like unnecessary sql queries. Is there a way to set it so it
> > only
> > queries when it actually needs to interact with the database?
>
> Yeah, set DEBUG to 0 in /app/config/core.php (production mode).
>
> -- John


So turning off debug also stops these calls to the database? Or does it
just not log that it's doing them anymore?

( rest of questions and answers snipped to save bandwidth as they were
answered more than well enough :) )


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



Re: new to cake, and mvc in general

2006-10-23 Thread John David Anderson (_psychic_)


On Oct 23, 2006, at 10:28 AM, [EMAIL PROTECTED] wrote:

> Data Validation - It's way too simple for what I want. I'm looking for
> ways to say, validate a date field is a real date, and then also
> validate that it's in an acceptable range (ie: over 14 years old). I'd
> also like to be able to set custom error messages based on error.
>
> Now, it looks like i can do a lot of this if i move more validation
> into the controller. I can then feed error messages using
> this->set('errorMsg', 'whatever'); and then display errorMsg in my
> view's return for an invalidate. However, as I understand it, i should
> be doing validation at the model level?

Validation is kinda one of those gray area things... Sounds like what  
you're looking for can be accomodated using Model::invalidate().

http://api.cakephp.org/class_model.html#0044104d42199107f8696994f4fa0437
http://manual.cakephp.org/chapter/validation

> I did try some of the snippets out there for overriding invalidate in
> app_model.php. I mainly just encountered preg-match errors all over  
> the
> place and they didn't work.

You shouldn't need to override it.. just perform your non-regex  
validation (date checking, CC number checking, uniqueness, etc.) and  
use invalidate to flag fields as problmatic so Cake can take it from  
there.

> Database Access - Right now I'm just building a simple registration
> form for users. I noticed with sql debugging turned on that on the
> initial page view, before any of the data is submitted, a sql query is
> made to describe the table (DESC `users`). It appears that every page
> view using the model/controller/view setup does this query? This looks
> to me like unnecessary sql queries. Is there a way to set it so it  
> only
> queries when it actually needs to interact with the database?

Yeah, set DEBUG to 0 in /app/config/core.php (production mode).

> Views - The tutorials I've found have dealt with pages that interact
> with the database for one thing. Like a blog. However, some of my  
> pages
> are going to need to interact with different tables to display all
> types of information. My index page for example would show site
> announcements, new members, advertisements, maybe even latest forums
> posts, etc etc. Users will have a home page that once again would be a
> consolidation of various queries of unrelated information. Are there
> any tutorials for accomplishing this kind of thing?

Controllers can use multiple models at once. Just add something like:

var $uses = array('ModelA', 'ModelB', 'ModelC');

At the top of your controller definition. This will allow you to  
access any of those models at $this->ModelName.

> As I said, I'm entirely new to the MVC way of thinking.
>
> So far though, I'm generally impressed and believe I should definetly
> be able to speed up the process of development with Cake, now that I'm
> getting my head wrapped around it.

Yeah, its wy nicer than CI. Good luck and happy baking.

-- John

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



RE: new to cake, and mvc in general

2006-10-23 Thread Grant Davies

I would be very interested in responses to this, especially the
validation areas so please keep the discussion on-list if possible.

Thanks
Grant

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, October 23, 2006 12:28 PM
To: Cake PHP
Subject: new to cake, and mvc in general


Greetings,

After putting work in for the past few months on a system I was going
to build on phpBB3 (when it was released) I've decided to move over to
a framework. Most of the work I've done is portable, as I was building
around phpBB3, instead of modding it, with it being in development
still.

I did a lot of research, and it came down to 3 frameworks to try.
Django, Code Igniter, and Cake.

I went with Cake first. I didn't want to learn python, as it would
basically invalidate most of the code I wrote already. Between Cake and
Code Igniter, Cake appears to be the more robust of the two.

I've had no problems with installation, even with using Xampp on my
windows xp box for development.

However here's some things I'm looking at, that I haven't found
immediate answers for in the documentation.

Data Validation - It's way too simple for what I want. I'm looking for
ways to say, validate a date field is a real date, and then also
validate that it's in an acceptable range (ie: over 14 years old). I'd
also like to be able to set custom error messages based on error.

Now, it looks like i can do a lot of this if i move more validation
into the controller. I can then feed error messages using
this->set('errorMsg', 'whatever'); and then display errorMsg in my
view's return for an invalidate. However, as I understand it, i should
be doing validation at the model level?

I did try some of the snippets out there for overriding invalidate in
app_model.php. I mainly just encountered preg-match errors all over the
place and they didn't work.

Database Access - Right now I'm just building a simple registration
form for users. I noticed with sql debugging turned on that on the
initial page view, before any of the data is submitted, a sql query is
made to describe the table (DESC `users`). It appears that every page
view using the model/controller/view setup does this query? This looks
to me like unnecessary sql queries. Is there a way to set it so it only
queries when it actually needs to interact with the database?

Views - The tutorials I've found have dealt with pages that interact
with the database for one thing. Like a blog. However, some of my pages
are going to need to interact with different tables to display all
types of information. My index page for example would show site
announcements, new members, advertisements, maybe even latest forums
posts, etc etc. Users will have a home page that once again would be a
consolidation of various queries of unrelated information. Are there
any tutorials for accomplishing this kind of thing?

As I said, I'm entirely new to the MVC way of thinking.

So far though, I'm generally impressed and believe I should definetly
be able to speed up the process of development with Cake, now that I'm
getting my head wrapped around it.




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



new to cake, and mvc in general

2006-10-23 Thread [EMAIL PROTECTED]

Greetings,

After putting work in for the past few months on a system I was going
to build on phpBB3 (when it was released) I've decided to move over to
a framework. Most of the work I've done is portable, as I was building
around phpBB3, instead of modding it, with it being in development
still.

I did a lot of research, and it came down to 3 frameworks to try.
Django, Code Igniter, and Cake.

I went with Cake first. I didn't want to learn python, as it would
basically invalidate most of the code I wrote already. Between Cake and
Code Igniter, Cake appears to be the more robust of the two.

I've had no problems with installation, even with using Xampp on my
windows xp box for development.

However here's some things I'm looking at, that I haven't found
immediate answers for in the documentation.

Data Validation - It's way too simple for what I want. I'm looking for
ways to say, validate a date field is a real date, and then also
validate that it's in an acceptable range (ie: over 14 years old). I'd
also like to be able to set custom error messages based on error.

Now, it looks like i can do a lot of this if i move more validation
into the controller. I can then feed error messages using
this->set('errorMsg', 'whatever'); and then display errorMsg in my
view's return for an invalidate. However, as I understand it, i should
be doing validation at the model level?

I did try some of the snippets out there for overriding invalidate in
app_model.php. I mainly just encountered preg-match errors all over the
place and they didn't work.

Database Access - Right now I'm just building a simple registration
form for users. I noticed with sql debugging turned on that on the
initial page view, before any of the data is submitted, a sql query is
made to describe the table (DESC `users`). It appears that every page
view using the model/controller/view setup does this query? This looks
to me like unnecessary sql queries. Is there a way to set it so it only
queries when it actually needs to interact with the database?

Views - The tutorials I've found have dealt with pages that interact
with the database for one thing. Like a blog. However, some of my pages
are going to need to interact with different tables to display all
types of information. My index page for example would show site
announcements, new members, advertisements, maybe even latest forums
posts, etc etc. Users will have a home page that once again would be a
consolidation of various queries of unrelated information. Are there
any tutorials for accomplishing this kind of thing?

As I said, I'm entirely new to the MVC way of thinking.

So far though, I'm generally impressed and believe I should definetly
be able to speed up the process of development with Cake, now that I'm
getting my head wrapped around it.


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