CakePHP training

2012-04-29 Thread zer0_gravity
can you give me a schedule for possible CakePHP training and how well
are the training rated/recognize internationally?

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


CakePHP support

2012-04-29 Thread zer0_gravity
Could you recommend a few good web hosting site that support CakePHP?

-- 
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: CakePHP and Sqlite

2011-11-14 Thread zer0_gravity
thanks

On Nov 14, 9:58 am, zer0_gravity  wrote:
> Thanks
>
> On Nov 13, 5:10 am, Matteo Landi  wrote:
>
>
>
>
>
>
>
> > On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity  wrote:
> > > Having trouble setting up CakePHP to work with Sqlite? could you
> > > explain or point me to where I can get info in rewards to this.
>
> > > thanks
>
> > FWIW a couple of weeks ago I wrote a mini-tutorial about how to setup
> > a SQLite connection within CakePHP application; if you are interested,
> > check it 
> > out:http://matteolandi.blogspot.com/2011/10/about-cakephp-and-sqlite.html
>
> > Cheers,
> > Matteo
>
> > --http://www.matteolandi.net/

-- 
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: CakePHP and Sqlite

2011-11-14 Thread zer0_gravity
Thanks

On Nov 13, 5:10 am, Matteo Landi  wrote:
> On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity  wrote:
> > Having trouble setting up CakePHP to work with Sqlite? could you
> > explain or point me to where I can get info in rewards to this.
>
> > thanks
>
> FWIW a couple of weeks ago I wrote a mini-tutorial about how to setup
> a SQLite connection within CakePHP application; if you are interested,
> check it 
> out:http://matteolandi.blogspot.com/2011/10/about-cakephp-and-sqlite.html
>
> Cheers,
> Matteo
>
> --http://www.matteolandi.net/

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


CakePHP and Sqlite

2011-11-12 Thread zer0_gravity
Having trouble setting up CakePHP to work with Sqlite? could you
explain or point me to where I can get info in rewards to this.

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: Running Bake for Database Configuration File Setup

2011-10-25 Thread zer0_gravity
Hi guys if you are having a problem with cakephp 2.0 in regards to
cakephp not being able to establish a database connection it maybe
that you are missing the required PDO extention to access the
respective database.

On Oct 18, 9:10 am, zer0_gravity  wrote:
> I got the same error when trying to configure cakephp 2.0.0  using the
> bake script.
>
> On Oct 17, 11:23 pm, Matthew Kaufman  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have always been worried about releases between Cake versions; however I
> > have/had/have the feeling that Cake 2.0 Stable is finally what I have been
> > waiting for: However, it is late at night and I am slightly tired [not
> > common]; and I just wanted to post this for documentation purposes.
>
> > Am I doing something stupid or is there a bug here?
>
> > root@mkfmnweb:/var/www/cake_2_0# ./lib/Cake/Console/cake bake
>
> > Welcome to CakePHP v2.0.0 Console
> > ---
> > App : app
> > Path: /var/www/cake_2_0/app/
> > ---
> > Interactive Bake Shell
> > ---
> > [D]atabase Configuration
> > [M]odel
> > [V]iew
> > [C]ontroller
> > [P]roject
> > [F]ixture
> > [T]est case
> > [Q]uit
> > What would you like to Bake? (D/M/V/C/P/F/T/Q)> D
>
> > ---
> > Database Configuration:
> > ---
> > Name:
> > [default] >
> > Driver: (Mysql/Postgres/Sqlite/Sqlserver)
> > [Mysql] > Mysql
> > Persistent Connection? (y/n)
> > [n] > n
> > Database Host:
> > [localhost] >
> > Port?
> > [n] >
> > User:
> > [root] > root
> > Password:> [removed]
>
> > Database Name:
> > [cake] > cake_2_0
> > Table Prefix?
> > [n] > n
> > Table encoding?
> > [n] > n
>
> > ---
> > The following database configuration will be created:
> > ---
> > Name:         default
> > Driver:       Mysql
> > Persistent:   false
> > Host:         localhost
> > User:         root
> > Pass:         ***
> > Database:     cake_2_0
> > ---
> > Look okay? (y/n)
> > [y] > y
> > Do you wish to add another database configuration?
> > [n] > n
> > PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
>
> > Fatal error: Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
> > root@mkfmnweb:/var/www/cake_2_0#
>
> > Am I running the correct path to bake or is this a bug?
>
> > Thanks.
>
> > Matthew M. Kaufmanhttp://mkfmn.com/
>
> > 503-881-6906

-- 
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: CakePHP 2.0.0 release

2011-10-25 Thread zer0_gravity
I Thanks everyone who responded to my enquiry. I Hope in future
release of cakephp the developers should disclaim any modules required
for any new releases to work. I finally got it to work with much pain
and sleepless nights I was able to install PDO_Mysql extension.

On Oct 19, 10:32 pm, Ryan Schmidt  wrote:
> On Oct 19, 2011, at 22:23, f.f wrote:
>
> > I got the same error [Cake is NOT able to connect to the database]
>
> > and I have check the phpinfo
>
> > PDO
> > PDO support         enabled
> > PDO drivers         sqlite, sqlite2
>
> > PDO_SQLITE
> > PDO Driver for SQLite 3.x   enabled
> > PECL Module version         (bundled) 1.0.1 $Id: pdo_sqlite.c 272374 
> > 2008-12-31 11:17:49Z sebastian $
> > SQLite Library      3.3.7
>
> Great, you've got the PDO driver itself (which is built into PHP) and the PDO 
> sqlite3 driver. But if you want to connect to a mysql database with PDO, you 
> need to install the PDO mysql driver.

-- 
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: CakePHP 2.0.0 release

2011-10-19 Thread zer0_gravity
thanks

On Oct 18, 11:19 pm, "#2Will"  wrote:
> sorry, beyond me also.  I run mamp on my apple.  Its simple and works
> and i guess it has pdo on it as it runs 2.0.  Try that.
>
> will
>
> On Oct 19, 1:42 pm, zer0_gravity  wrote:
>
>
>
>
>
>
>
> > You are right I don't have pdo installed on my php server. I have done
> > some googling i found out it requires possibly compiling and building
> > php source . I have a new probably now tried compiling and building
> > php source but i broke php and now it not working. luckly I made a
> > backup.
>
> > I need a working library file (similar to the dll that came with the
> > windows version of pdo php extension) for my mac x os
>
> > I need your help please?
>
> > specs on my mac
> > Mac OS X  ver 10.5.8
>
> > On Oct 17, 11:46 pm, "#2Will"  wrote:
>
> > > Any error messages?
>
> > > Did you rename the file to database.php?
>
> > > do you have pdo installed?
>
> > > On Oct 18, 3:15 pm, zer0_gravity  wrote:
>
> > > > Hi everyone
> > > > I just install Cake 2.0.0 and I am having an issue with it. The issue
> > > > is that cakePHP is not able to connect to the database (Mysql). I
> > > > check the database config file to make sure that it is configured
> > > > properly but the strangest thing is that when I installed an older
> > > > version(1.3.13) there is no problem for cake connecting to the
> > > > database (Mysql)? What is happening here?

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity
You are right I don't have pdo installed on my php server. I have done
some googling i found out it requires possibly compiling and building
php source . I have a new probably now tried compiling and building
php source but i broke php and now it not working. luckly I made a
backup.

I need a working library file (similar to the dll that came with the
windows version of pdo php extension) for my mac x os

I need your help please?

specs on my mac
Mac OS X  ver 10.5.8

On Oct 17, 11:46 pm, "#2Will"  wrote:
> Any error messages?
>
> Did you rename the file to database.php?
>
> do you have pdo installed?
>
> On Oct 18, 3:15 pm, zer0_gravity  wrote:
>
>
>
>
>
>
>
> > Hi everyone
> > I just install Cake 2.0.0 and I am having an issue with it. The issue
> > is that cakePHP is not able to connect to the database (Mysql). I
> > check the database config file to make sure that it is configured
> > properly but the strangest thing is that when I installed an older
> > version(1.3.13) there is no problem for cake connecting to the
> > database (Mysql)? What is happening here?

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity
I did just that and on the default CakePHP page it reported an error
"Cake is NOT able to connect to the database"

On Oct 18, 9:25 am, pedro rojo  wrote:
> past all package of cakephp2.0 in your folder www and follow a simple
> installation  (dont use cake bake)
> after relaod your application test and see which  do you have the same
> problem ?
> this a simle test

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity
Thanks . I will try it out

On Oct 18, 12:20 pm, Matthew Kaufman  wrote:
> Hey FYI though; I just built a database.php config manually; here is my
> file: And it DOES connect SUCCESSFULLY; FYI.
>
>  /*
>     Database table: “people”
>     Model class: “Person”, found at /app/Model/Person.php
>     Controller class: “PeopleController”, found at
> /app/Controller/PeopleController.php
>     View template, found at /app/View/People/index.ctp
> */
>
> class DATABASE_CONFIG
> {
>     public $default = array(
>         'datasource' => 'Database/Mysql',
>         'persistent' => false,
>         'host' => 'localhost',
>         'port' => '3306',
>         'login' => 'root',
>         'password' => '[removed]',
>         'database' => 'cake_2_0'
>     );}
>
> ?>
>
> Matthew M. Kaufmanhttp://mkfmn.com/
>
> 503-881-6906
>
>
>
>
>
>
>
> On Tue, Oct 18, 2011 at 1:17 PM, Matthew Kaufman  wrote:
> > Hey, Last Night:
>
> > I tried to paste my entire output of my Cake Bake output for Baking a
> > Database Config:
>
> > I get the same Fatal Error in output:
>
> > (Paste of zer0_gravity):
>
> > PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/
> > Console/Command/Task/DbConfigTask.php on
> > line 262
>
> > Fatal error: Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on
> > line 262
>
> > Here's my post from last night:
>
> > Hello,
>
> > I have always been worried about releases between Cake versions; however I
> > have/had/have the feeling that Cake 2.0 Stable is finally what I have been
> > waiting for: However, it is late at night and I am slightly tired [not
> > common]; and I just wanted to post this for documentation purposes.
>
> > Am I doing something stupid or is there a bug here?
>
> > root@mkfmnweb:/var/www/cake_2_
> > 0# ./lib/Cake/Console/cake bake
>
> > Welcome to CakePHP v2.0.0 Console
> > ---
> > App : app
> > Path: /var/www/cake_2_0/app/
> > ---
> > Interactive Bake Shell
> > ---
> > [D]atabase Configuration
> > [M]odel
> > [V]iew
> > [C]ontroller
> > [P]roject
> > [F]ixture
> > [T]est case
> > [Q]uit
> > What would you like to Bake? (D/M/V/C/P/F/T/Q)
> > > D
> > ---
> > Database Configuration:
> > ---
> > Name:
> > [default] >
> > Driver: (Mysql/Postgres/Sqlite/Sqlserver)
> > [Mysql] > Mysql
> > Persistent Connection? (y/n)
> > [n] > n
> > Database Host:
> > [localhost] >
> > Port?
> > [n] >
> > User:
> > [root] > root
> > Password:
> > > [removed]
> > Database Name:
> > [cake] > cake_2_0
>
> > Table Prefix?
> > [n] > n
> > Table encoding?
> > [n] > n
>
> > ---
> > The following database configuration will be created:
> > ---
> > Name:         default
> > Driver:       Mysql
> > Persistent:   false
> > Host:         localhost
> > User:         root
> > Pass:         ***
> > Database:     cake_2_0
>
> > ---
> > Look okay? (y/n)
> > [y] > y
> > Do you wish to add another database configuration?
> > [n] > n
> > PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
>
> > Fatal error: Class 'DATABASE_CONFIG' not found in
> > /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
> > root@mkfmnweb:/var/www/cake_2_0#
>
> > Am I running the correct path to bake or is this a bug?
>
> > Thanks.
>
> > Matthew M. Kaufman
> >http://mkfmn.com/
>
> > 503-881-6906
>
> > On Tue, Oct 18, 2011 at 10:25 AM, pedro rojo 
> > wrote:
>
> >> past all package of cakephp2.0 in your folder www and follow a simple
> >> installation  (dont use cake bake)
> >> after relaod your application test and see which  do you have the same
> >> problem ?
> >> this a simle test
>
> >>  --
> >> 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 For more options, visit this group
> >> athttp://groups.google.com/group/cake-php

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity


On Oct 18, 8:52 am, zuha  wrote:
> Can you paste your database.php file code?

here is database.php code

class DATABASE_CONFIG {

public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'tester',
'prefix' => '',
//'encoding' => 'utf8',
);

public $test = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'test_database_name',
'prefix' => '',
//'encoding' => 'utf8',
);
}

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity


On Oct 18, 8:52 am, zuha  wrote:
> Can you paste your database.php file code?

This is an screen dump after using cake bake script

Welcome to CakePHP v2.0.0 Console
---
App : app
Path: /var/www/cake_2_0/app/
---
Interactive Bake Shell
---
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[F]ixture
[T]est case
[Q]uit
What would you like to Bake? (D/M/V/C/P/F/T/Q)
> D

---
Database Configuration:
---
Name:
[default] >
Driver: (Mysql/Postgres/Sqlite/Sqlserver)
[Mysql] > Mysql
Persistent Connection? (y/n)
[n] > n
Database Host:
[localhost] >
Port?
[n] >
User:
[root] > root
Password:
> [removed]

Database Name:
[cake] > tester
Table Prefix?
[n] > n
Table encoding?
[n] > n

---
The following database configuration will be created:
---
Name: default
Driver:   Mysql
Persistent:   false
Host: localhost
User: root
Pass: ***
Database: tester
---
Look okay? (y/n)
[y] > y
Do you wish to add another database configuration?
[n] > n
PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
/var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on
line 262

Fatal error: Class 'DATABASE_CONFIG' not found in
/var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on
line 262

-- 
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: Running Bake for Database Configuration File Setup

2011-10-18 Thread zer0_gravity
I got the same error when trying to configure cakephp 2.0.0  using the
bake script.

On Oct 17, 11:23 pm, Matthew Kaufman  wrote:
> Hello,
>
> I have always been worried about releases between Cake versions; however I
> have/had/have the feeling that Cake 2.0 Stable is finally what I have been
> waiting for: However, it is late at night and I am slightly tired [not
> common]; and I just wanted to post this for documentation purposes.
>
> Am I doing something stupid or is there a bug here?
>
> root@mkfmnweb:/var/www/cake_2_0# ./lib/Cake/Console/cake bake
>
> Welcome to CakePHP v2.0.0 Console
> ---
> App : app
> Path: /var/www/cake_2_0/app/
> ---
> Interactive Bake Shell
> ---
> [D]atabase Configuration
> [M]odel
> [V]iew
> [C]ontroller
> [P]roject
> [F]ixture
> [T]est case
> [Q]uit
> What would you like to Bake? (D/M/V/C/P/F/T/Q)> D
>
> ---
> Database Configuration:
> ---
> Name:
> [default] >
> Driver: (Mysql/Postgres/Sqlite/Sqlserver)
> [Mysql] > Mysql
> Persistent Connection? (y/n)
> [n] > n
> Database Host:
> [localhost] >
> Port?
> [n] >
> User:
> [root] > root
> Password:> [removed]
>
> Database Name:
> [cake] > cake_2_0
> Table Prefix?
> [n] > n
> Table encoding?
> [n] > n
>
> ---
> The following database configuration will be created:
> ---
> Name:         default
> Driver:       Mysql
> Persistent:   false
> Host:         localhost
> User:         root
> Pass:         ***
> Database:     cake_2_0
> ---
> Look okay? (y/n)
> [y] > y
> Do you wish to add another database configuration?
> [n] > n
> PHP Fatal error:  Class 'DATABASE_CONFIG' not found in
> /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
>
> Fatal error: Class 'DATABASE_CONFIG' not found in
> /var/www/cake_2_0/lib/Cake/Console/Command/Task/DbConfigTask.php on line 262
> root@mkfmnweb:/var/www/cake_2_0#
>
> Am I running the correct path to bake or is this a bug?
>
> Thanks.
>
> Matthew M. Kaufmanhttp://mkfmn.com/
>
> 503-881-6906

-- 
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: CakePHP 2.0.0 release

2011-10-18 Thread zer0_gravity
yes I renamed database.php.default to database.php. I even baked the
database configuration using cake bake script.
I not sure what is pdo but I downloaded cake 2.0.0  and extract the
downloaded. I did not do anything differently in regards to setting up
and configuring older version of cakephp 2.0.0.

On Oct 17, 11:46 pm, "#2Will"  wrote:
> Any error messages?
>
> Did you rename the file to database.php?
>
> do you have pdo installed?
>
> On Oct 18, 3:15 pm, zer0_gravity  wrote:
>
>
>
>
>
>
>
> > Hi everyone
> > I just install Cake 2.0.0 and I am having an issue with it. The issue
> > is that cakePHP is not able to connect to the database (Mysql). I
> > check the database config file to make sure that it is configured
> > properly but the strangest thing is that when I installed an older
> > version(1.3.13) there is no problem for cake connecting to the
> > database (Mysql)? What is happening here?

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


CakePHP 2.0.0 release

2011-10-17 Thread zer0_gravity
Hi everyone
I just install Cake 2.0.0 and I am having an issue with it. The issue
is that cakePHP is not able to connect to the database (Mysql). I
check the database config file to make sure that it is configured
properly but the strangest thing is that when I installed an older
version(1.3.13) there is no problem for cake connecting to the
database (Mysql)? What is happening here?

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


CakePHP and other frameworks

2011-10-06 Thread zer0_gravity
Greetings,
Question can CakePHP made to work with other CSS Framework
(Elements,Blueprint etc) without breaking the CakePHP convention?

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


Creating Alias and association in model

2011-10-06 Thread zer0_gravity
Is 'MyRecipe' , 'Member' and 'MemberOf' alias for the model
association and will all the aliases listed work?

 'Recipe',
);
var $hasAndBelongsToMany => array('Member' => 'User');
}

class Group extends AppModel {
var $name = 'Group';
var $hasMany = array(
'MyRecipe' => array(
'className'  => 'Recipe',
)
);
var $hasAndBelongsToMany => array('MemberOf' => 'Group');
}
?>

-- 
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: Howto forward data in action

2011-02-09 Thread zer0_gravity
Firstly I would like to make my apologies for not being clear enough
in my initial explanation.

I am trying to build a document library where multiple users can login
to upload or view document files(pdf,txt,doc) and other users can post
comments on documents uploaded.

I have a  controller named posts with 2 action (previewpost, addpost)
so far.

The addpost action should send the $this->data to another action named
previewpost and then redirect the current view to the
(previewpost.ctp) view. The content of $this->data was gathered from a
html form post in the (addpost.ctp) view.

Inside the (previewpost.ctp) view it will show the content of the new
post submit by (addpost.ctp) view and then the action for the
(previewpost.ctp) view will determine if the user  wishes save or
discard the info submitted by the (addpost.ctp) view.

I would like to know if an action can send info to other actions
inside other controllers. For instance controller A action
is insideA and controller B action is insideB then can the two
controllers send info to each thru their actions?

I hope this is any clearer unfortunately I am unable to provide you
with any code snippet because I am stump and I am not sure as to how
to proceed any further.

thanks for your help everyone.

On Feb 9, 2:30 pm, Sam Sherlock  wrote:
> This is the second time you have asked this question.
>
> Like the first time the question is lacking information, required to give
> you an informative answer
>
> you are better off describing what you are trying to do
> and providing info on what you have tried (with code samples)
>
> this way others can understand your goal and will be in a better position to
> provide
> an answer
> --
>
> With a Controller Posts (an action has a corresponding view a ctp file in
> views//)
>
> it may have multiple actions eg
>   index - all posts
>   view - a single post viewed by id
>
> so pass the id from  index to view, so that
> the view displays a post item.
>
> in the view for the action `views/posts/index.ctp`
> you use the echo $html->link('read more >>', array('action' => 'view',
> $post['Post']['id']));
> assuming you are within a foreach loop
>
> ---
>
> although you might be asking how to access a property in one method
> when you have assigned it from another method.
>
> actions of controllers are methods not all methods are actions
>
> you should read up on object orientated programming
> and the concept of MVC.
>
>  - S
>
> On 9 February 2011 18:56, zer0_gravity  wrote:
>
>
>
> > How can I in cake forward data from one action to another action
> > within the same
> > controller?
>
> > --
> > 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 For more options, visit this group
> > athttp://groups.google.com/group/cake-php

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


Howto forward data in action

2011-02-09 Thread zer0_gravity
How can I in cake forward data from one action to another action
within the same
controller?

-- 
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: simple page request

2011-02-08 Thread zer0_gravity
Well can actions forward data to another action within the same
controller?

On Feb 8, 1:00 pm, zer0_gravity  wrote:
> Could you give some examples/tutorial of what other task I could using
> page request...
>
> On Feb 7, 9:54 pm, Miles J  wrote:
>
>
>
> > Anything.
>
> > On Feb 7, 5:16 pm, cricket  wrote:
>
> > > On Mon, Feb 7, 2011 at 12:23 AM, zer0_gravity  wrote:
> > > > Using the controller to do a simple page request that show the results
> > > > from find()/read() after passing the $id of the record being queried ,
> > > > what else can I do using a simple page request?
>
> > > Say again?- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

-- 
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: simple page request

2011-02-08 Thread zer0_gravity
Could you give some examples/tutorial of what other task I could using
page request...

On Feb 7, 9:54 pm, Miles J  wrote:
> Anything.
>
> On Feb 7, 5:16 pm, cricket  wrote:
>
>
>
> > On Mon, Feb 7, 2011 at 12:23 AM, zer0_gravity  wrote:
> > > Using the controller to do a simple page request that show the results
> > > from find()/read() after passing the $id of the record being queried ,
> > > what else can I do using a simple page request?
>
> > Say again?- Hide quoted text -
>
> - Show quoted text -

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


simple page request

2011-02-06 Thread zer0_gravity
Using the controller to do a simple page request that show the results
from find()/read() after passing the $id of the record being queried ,
what else can I do using a simple page request?

-- 
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: Sharing data/values across different controllers

2011-01-17 Thread zer0_gravity
it worked thanks i realised i did not setup the session component
variable

thanks alot

On Jan 17, 11:11 pm, zer0_gravity  wrote:
> Could briefly explain the other ways because it is not working for me.
>
> On Jan 17, 10:49 pm, tnbrooks  wrote:
>
>
>
> > You could write them into session using something like:
> > $this->Session->write('the_value', $value);
> > then to access it in your other controller you just use:
> > $this->Session->read('the_value');
>
> > This is just one way..there are many others
>
> > On Jan 18, 2:27 pm, zer0_gravity  wrote:
>
> > > How Do I share a variable or data that exist in a particular
> > > controller but do not exist in other controller(s)?
>
> > > 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: Sharing data/values across different controllers

2011-01-17 Thread zer0_gravity
Could briefly explain the other ways because it is not working for me.

On Jan 17, 10:49 pm, tnbrooks  wrote:
> You could write them into session using something like:
> $this->Session->write('the_value', $value);
> then to access it in your other controller you just use:
> $this->Session->read('the_value');
>
> This is just one way..there are many others
>
> On Jan 18, 2:27 pm, zer0_gravity  wrote:
>
>
>
> > How Do I share a variable or data that exist in a particular
> > controller but do not exist in other controller(s)?
>
> > 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


Sharing data/values across different controllers

2011-01-17 Thread zer0_gravity
How Do I share a variable or data that exist in a particular
controller but do not exist in other controller(s)?

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: writing to SessionHelp inside the view

2011-01-17 Thread zer0_gravity
You are right I just realised what I needed to do...Thanks

On Jan 17, 7:51 pm, euromark  wrote:
> you got your logic all wrong then!
> all modifications to the session must (or "should" anyway) happen in
> the controller
>
> so, no. there is no reason to allow that.
>
> On 18 Jan., 00:44, zer0_gravity  wrote:
>
>
>
> > Can you write/store a value in the session helper inside the view? so
> > that this value can be accessed by any controller beside using a form
> > get/post method to do this.
>
> > Thank you

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


writing to SessionHelp inside the view

2011-01-17 Thread zer0_gravity
Can you write/store a value in the session helper inside the view? so
that this value can be accessed by any controller beside using a form
get/post method to do this.

Thank you

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


php echo alternative/shorthand

2011-01-09 Thread zer0_gravity
Question I have noticed that the following statement works
interchangeable. Is the equal sign '=' that shorthand version to using
the echo function?



or



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: Explain the empty function

2011-01-07 Thread zer0_gravity
I did this because I wanted to understand if the empty() is checking
for a null contained $this->data.

On Jan 7, 12:57 pm, Miles J  wrote:
> Why are you attempting to do that?
>
> !empty() checks to make sure the POST data exists, empty() checks to
> make sure the POST data is empty.
>
> On Jan 7, 9:10 am, zer0_gravity  wrote:
>
>
>
> > function add(){
> >         if(!empty($this->data)){   ///why does this statement works
> >               ///      if(empty($this->data)){ why does this statement
> > do nothing
> >                 if($this->Post->save($this->data)){
> >                 $this->Session->setFlash('Your post has been saved.');
> >                 $this->redirect(array('action' => 'index'));
> >                 }
>
> >         }
> >  }

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


Explain the empty function

2011-01-07 Thread zer0_gravity
function add(){
if(!empty($this->data)){   ///why does this statement works
  ///  if(empty($this->data)){ why does this statement
do nothing
if($this->Post->save($this->data)){
$this->Session->setFlash('Your post has been saved.');
$this->redirect(array('action' => 'index'));
}

}
 }

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


Dispatcher System

2010-12-28 Thread zer0_gravity
controller default page or any of the views will not  will not load. I
manage to configure cakephp according to the required docs (modified
and save changes to config/core.php and config/database.php). Even
after using the bake command from the cake console I am still not able
to load the control default page or any of the view.

what I do get is the welcome page that points to cakephp setup folder
and the following url
works :
http://localhost/cakeapp/ (get the welcome page here with no errors
indicated on the page )
or
http://localhost/cakephp_setup_folder/ (get welcome page about cakephp
that cake is able to write to the tmp folder, cake is able to
connected to the db and  no errors indicated on the page)


however I when I enter the following url the page returns blank  with
an http error saying page cannot be found.

http://localhost/cakeapp/controller
or
http://localhost/cakeapp/controller/action

I am usiing apache2 and php that comes with the macbook and mysql 6.
The only changes i  made to the apache/httpd.conf was to add
  directive. Add to this no changes to
the php.ini was requires becuz mod_rewrite was already turned on.

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