Wednesday, June 30, 2010

External script in cakephp

Hey there,

I'm trying to install AJAX IM to cake php website...

Installing files to root (public_html/chat) gives me missing
controller!

Any clue on how to run external script

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

HTML File With All Elements Defined in default.css

Hello everyone,

I was hoping someone has made an HTML file that uses all of the
elements defined in default.css from which I could create a new
design.

I've made my own css files for cake but only in a rather hacky
haphazard way.

I would like to do a proper layout.

Thanks,
Damon

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Sessions across multiple apps, same domain

I'm fairly new to cake, but an experienced PHP developer. I have a
production setup of cake. It looks as follows:

/home/keven/cake1.3 - This contains the 'spark_plug' plugin, which
handles authentication
/home/keven/app1
/home/keven/app2

Webroot is located here:

/var/www/login
/var/www/contest
/var/www/game

The idea is that a user logs in, then goes to another app where their
login details are supposed to be kept within session data or the $user
object from spark plug plugin.

The problem is that sessions are not being passed app to app. I've
even tried to set a session explicitly in one app and tried to read it
in another and it is blank. (ie, first app: $_SESSION['try'] = 'this'
-- second app: print $_SESSION['try'];

Any ideas would be greatly appreciated. Thanks in advance everyone

----------------------------------------------------------------------------------------------------------------------------

More about my setup:

Cake 1.3.2
Configure::write('Session.checkAgent', false);
Configure::write('Security.level', 'medium'); *** I've also tried
'low'
Configure::write('Security.salt',
'LKJd2ou43kljLKDJfkljueoiru34asdfk3'); *** this is the same across all
apps

I've read the following articles to no avail:

http://bakery.cakephp.org/articles/view/how-to-bend-cakephp-s-session-handling-to-your-needs
http://www.amityadav.name/cakephp-sharing-sessions-between-apps-on-the-same-domain

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Undefined property: QuestionsController::$Session

Hi to all, I'm newer to CakePHP and i'm reading this book 'packt
publishing cakephp application development'.
I'm running into a problem where my controllers don't seem to be
inheriting from my AppController or someone else.
This is my code

app_controller.php
<?php
class AppController extends Controller {

var $helpers = array('Session', 'Form');
var $components = array('Auth', 'Cookie');

function beforeFilter(){
$this->Auth->loginRedirect = array('controller' => 'questions',
'action' => 'home');
$this->Auth->logoutRedirect = array('controller' => 'questions',
'action' => 'home');
$this->Auth->allow('signup', 'confirm', 'home', 'show');
$this->Auth->authorize = 'controller';
$this->Auth->userScope = array('User.confirmed' => '1');
$this->set('loggedIn', $this->Auth->user('id'));

$this->Auth->autoRedirect = false;
$this->Cookie->name = 'QuickWall';

if(!$this->Auth->user('id')) {
$cookie = $this->Cookie->read('User');
if($cookie) {
$this->Auth->login($cookie);
}
}

}

function isAuthorized() {
return true;
}

}
?>

users_controller.php
......
if ($this->Email->send()) {
$this->Session->setFlash('Confirmation mail sent. Please
check your inbox');
$this->redirect(array('controller' => 'questions',
'action'=>'home'));
} else {
$this->User->del($this->User->getLastInsertID());
$this->Session->setFlash('There was a problem sending the
confirmation mail. Please try again');
}
} else {
$this->Session->setFlash('There was an error signing up. Please,
try again.');
$this->data = null;
}
}
}


questions_controller.php
<?php
class QuestionsController extends AppController {

var $name = 'Questions';

function home() {

if (!empty($this->data) && $this->Auth->user('id')) {
$this->data['Question']['user_id'] = $this->Auth->user('id');
$this->Question->create();
if ($this->Question->save($this->data)) {
$this->Session->setFlash('Your Question has been added');
$this->redirect(array('action'=>'home'), null, true);
} else {
$this->Session->setFlash('The Question could not be saved. Please,
try again.');
}
}

$this->Question->recursive = 1;
$this->set('questions', $this->Question->find('all'));
}


When I try to sign up or to post a question I received this error

Notice (8): Undefined property: QuestionsController::$Session [APP/
controllers/questions_controller.php, line 12]
Fatal error: Call to a member function setFlash() on a non-object in /
web/htdocs/www.endlesslab.org/home/quickwall/app/controllers/
questions_controller.php
on line 12


as you can see in http://www.endlesslab.org/quickwall/

Someone can help me please?

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Functions in View could not able to load Helpers?

Hi,
I have a little function in one of my views. This function could not
able to use helpers. For example:

//add.ctp

// some html
<?php
function printCat(){

echo '<h1>'.$html->link[$catName,
array('controller'=>'categories','action'=>'view','id'=>$catId)).'</
h1>';

}
?>

I don't know how could I able to make the html helper accessible by
the function?!

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Undefined id and don´t know why....

i don´t understand this because after i enter my phpmyadmin i see an entry of the post but also i get this error undefined id but don´t know which id and i cant find which line nothing.

if i search in google it seems every one how try to use hasMany or hasOne or loadModel and used then this saving it or read it and they also got this error...

2010/6/30 Davor Ilic <webfacer@gmail.com>
is it possible that this not working like i do or is this an bug ?

2010/6/30 Davor Ilic <webfacer@gmail.com>

its only if i add this line

if(!empty($product)) {

$this->loadModel('Kattaxonomie');

   

$counted_katId = count($this->data['Kat']);

#pr($counted_katId);

for($i=0;$i<$counted_katId;$i++) {

$this->Kattaxonomie->set(array(

'product_id' => $this->Product->id,

'kat_id' => $this->data['Kat']['kat_id'][$i]

));

$this->Kattaxonomie->save();

}


i will understand which id it meen. but if i only save the product in it´s Table it works but if i ad this model Katttaxonomie and try to save this two vars in this Table i got this Debugerror...


2010/6/30 Zaky Katalan-Ezra <procsharp@gmail.com>
Did you bake the initial view?

If yes did it work before your changes?
Attach your create table script

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en



Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

It's the fear of the airfare that's more dominant!

Fingers crossed my little start-up will kick off, and be able to come
to the next one :)

On Jun 30, 3:45 pm, "Larry E. Masters aka PhpNut" <php...@gmail.com>
wrote:
> Shaz,
>
> Are you afraid to fly? :)
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */
>
> On Wed, Jun 30, 2010 at 9:42 AM, Shaz <shazam...@gmail.com> wrote:
> > I'd come if it wasn't so far away from London!
>
> > On Jun 30, 3:38 pm, "Larry E. Masters aka PhpNut" <php...@gmail.com>
> > wrote:
> > > Just want to start a thread and see how many people on the google group
> > > would like to attend or are planning to attend CakeFest 2010? This is the
> > > largest gathering of CakePHP developers and we plan to have most of the
> > core
> > > development team at the event this year.
>
> > >http://cakefest.org/schedule
>
> > > So who is coming or planning to come to the event?
>
> > > --
> > > /**
> > > * @author Larry E. Masters
> > > * @var string $userName
> > > * @param string $realName
> > > * @returns string aka PhpNut
> > > * @access public
> > > */
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others
> > with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For more options, visit this group at
> >http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

Mike,

Great! Looking forward to seeing you there.

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 10:23 AM, Mike Karthauser <mikek@brightstorm.co.uk> wrote:

On Wed, June 30, 2010 4:12 pm, Larry E. Masters aka PhpNut wrote:
> Mike,
>
> The site list the early bird prices now, soon the prices will be going up.
> http://cakefest.org/ticket-info

aha.

am planning on travelling out with my good friend who is last speaker on
the 5th.

looking forward to it.

>
> We are checking with the hotel to make sure we have the room for expansion
> because the response to the event is higher than anticipated this year.
> Everyone wants a piece of the CakePHP :)
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */
>
>
> On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser
> <mikek@brightstorm.co.uk>wrote:
>
>> Hi Larry
>> am thinking about it. Do you know what the early bird ticket prices are?
>> we'll be coming up from bristol, UK.
>> mikek
>>
>>
>>
>> On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
>> > Just want to start a thread and see how many people on the google
>> group
>> > would like to attend or are planning to attend CakeFest 2010? This is
>> the
>> > largest gathering of CakePHP developers and we plan to have most of
>> the
>> > core
>> > development team at the event this year.
>> >
>> > http://cakefest.org/schedule
>> >
>> > So who is coming or planning to come to the event?
>> >
>> > --
>> > /**
>> > * @author Larry E. Masters
>> > * @var string $userName
>> > * @param string $realName
>> > * @returns string aka PhpNut
>> > * @access public
>> > */
>> >
>> > 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For
>> more options, visit this group
>> > at http://groups.google.com/group/cake-php?hl=en
>> >
>>
>>
>> --
>> Mike Karthauser
>> Managing Director - Brightstorm Ltd
>>
>> Email: mikek@brightstorm.co.uk
>> Web: http://www.brightstorm.co.uk
>> Tel:  07939 252144 (mobile)
>> Fax: 0870 1320560
>>
>> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>>
>> 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For
>> more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>


--
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

On Wed, June 30, 2010 4:12 pm, Larry E. Masters aka PhpNut wrote:
> Mike,
>
> The site list the early bird prices now, soon the prices will be going up.
> http://cakefest.org/ticket-info

aha.

am planning on travelling out with my good friend who is last speaker on
the 5th.

looking forward to it.

>
> We are checking with the hotel to make sure we have the room for expansion
> because the response to the event is higher than anticipated this year.
> Everyone wants a piece of the CakePHP :)
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */
>
>
> On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser
> <mikek@brightstorm.co.uk>wrote:
>
>> Hi Larry
>> am thinking about it. Do you know what the early bird ticket prices are?
>> we'll be coming up from bristol, UK.
>> mikek
>>
>>
>>
>> On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
>> > Just want to start a thread and see how many people on the google
>> group
>> > would like to attend or are planning to attend CakeFest 2010? This is
>> the
>> > largest gathering of CakePHP developers and we plan to have most of
>> the
>> > core
>> > development team at the event this year.
>> >
>> > http://cakefest.org/schedule
>> >
>> > So who is coming or planning to come to the event?
>> >
>> > --
>> > /**
>> > * @author Larry E. Masters
>> > * @var string $userName
>> > * @param string $realName
>> > * @returns string aka PhpNut
>> > * @access public
>> > */
>> >
>> > 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For
>> more options, visit this group
>> > at http://groups.google.com/group/cake-php?hl=en
>> >
>>
>>
>> --
>> Mike Karthauser
>> Managing Director - Brightstorm Ltd
>>
>> Email: mikek@brightstorm.co.uk
>> Web: http://www.brightstorm.co.uk
>> Tel: 07939 252144 (mobile)
>> Fax: 0870 1320560
>>
>> Address: 1 Brewery Court, North Street, Bristol, BS3 1JS
>>
>> 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+unsubscribe@googlegroups.com<cake-php%2Bunsubscribe@googlegroups.com>For
>> more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>


--
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel: 07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

Mike,

The site list the early bird prices now, soon the prices will be going up. 

We are checking with the hotel to make sure we have the room for expansion because the response to the event is higher than anticipated this year. Everyone wants a piece of the CakePHP :)

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 10:07 AM, Mike Karthauser <mikek@brightstorm.co.uk> wrote:
Hi Larry
am thinking about it. Do you know what the early bird ticket prices are?
we'll be coming up from bristol, UK.
mikek



On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are planning to attend CakeFest 2010? This is the
> largest gathering of CakePHP developers and we plan to have most of the
> core
> development team at the event this year.
>
> http://cakefest.org/schedule
>
> So who is coming or planning to come to the event?
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */
>
> 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+unsubscribe@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>


--
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel:  07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

Hi Larry
am thinking about it. Do you know what the early bird ticket prices are?
we'll be coming up from bristol, UK.
mikek

On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are planning to attend CakeFest 2010? This is the
> largest gathering of CakePHP developers and we plan to have most of the
> core
> development team at the event this year.
>
> http://cakefest.org/schedule
>
> So who is coming or planning to come to the event?
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */
>
> 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+unsubscribe@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>


--
Mike Karthauser
Managing Director - Brightstorm Ltd

Email: mikek@brightstorm.co.uk
Web: http://www.brightstorm.co.uk
Tel: 07939 252144 (mobile)
Fax: 0870 1320560

Address: 1 Brewery Court, North Street, Bristol, BS3 1JS

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

Shaz,

Are you afraid to fly? :)

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/


On Wed, Jun 30, 2010 at 9:42 AM, Shaz <shazamjad@gmail.com> wrote:
I'd come if it wasn't so far away from London!

On Jun 30, 3:38 pm, "Larry E. Masters aka PhpNut" <php...@gmail.com>
wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are planning to attend CakeFest 2010? This is the
> largest gathering of CakePHP developers and we plan to have most of the core
> development team at the event this year.
>
> http://cakefest.org/schedule
>
> So who is coming or planning to come to the event?
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Undefined id and don´t know why....

is it possible that this not working like i do or is this an bug ?

2010/6/30 Davor Ilic <webfacer@gmail.com>
its only if i add this line

if(!empty($product)) {

$this->loadModel('Kattaxonomie');

   

$counted_katId = count($this->data['Kat']);

#pr($counted_katId);

for($i=0;$i<$counted_katId;$i++) {

$this->Kattaxonomie->set(array(

'product_id' => $this->Product->id,

'kat_id' => $this->data['Kat']['kat_id'][$i]

));

$this->Kattaxonomie->save();

}


i will understand which id it meen. but if i only save the product in it´s Table it works but if i ad this model Katttaxonomie and try to save this two vars in this Table i got this Debugerror...


2010/6/30 Zaky Katalan-Ezra <procsharp@gmail.com>
Did you bake the initial view?

If yes did it work before your changes?
Attach your create table script

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: CakeFest 2010, who is going?

I'd come if it wasn't so far away from London!

On Jun 30, 3:38 pm, "Larry E. Masters aka PhpNut" <php...@gmail.com>
wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are planning to attend CakeFest 2010? This is the
> largest gathering of CakePHP developers and we plan to have most of the core
> development team at the event this year.
>
> http://cakefest.org/schedule
>
> So who is coming or planning to come to the event?
>
> --
> /**
> * @author Larry E. Masters
> * @var string $userName
> * @param string $realName
> * @returns string aka PhpNut
> * @access public
> */

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

CakeFest 2010, who is going?

Just want to start a thread and see how many people on the google group would like to attend or are planning to attend CakeFest 2010? This is the largest gathering of CakePHP developers and we plan to have most of the core development team at the event this year.


So who is coming or planning to come to the event?

--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Session data not being displayed

Very strange - can you put up the code from a controller where the
session does work? I'm assuming they're identical - or they should be.

Also it might be a case of overkill by using both:

App::import('Core', 'l10n', 'Sanitize', 'CakeSession');

And:

public $components = array('Session','Cookie','ControllerList');

I don't think you need 'CakeSession' in the app:import as you already
have it as an included component?

On Jun 30, 10:49 am, Taff <taff.law...@googlemail.com> wrote:
> Using my app_controller I am trying to debug my session data. In all
> my controllers I am receiving
> Array
> (
>     [Config] => Array
>         (
>             [userAgent] => c03e2e173822ed9de51b506bf80e16f8
>             [time] => 1277726475
>             [timeout] => 300
>         )
> )
> which is correct but 1 which is returning empty. I am not changing my
> components array in the entries_controller.php (the one that isn't
> working).
>
> I have beenhunting since yesterday trying to find the root of the
> problem and have no idea where else to look.
> My app_controller looks like this:
>
> <?php
> App::import('Core', 'l10n', 'Sanitize', 'CakeSession');
> class AppController extends Controller {
>
>         public $components = array('Session','Cookie','ControllerList');
>
>         function beforeFilter() {
>         parent::beforeFilter();
>                 debug($this->Session->read());//returns all Session information
>         }
>
> }
>
> and my entries_controller looks like:
>
> class EntriesController extends AppController {
>
>         var $name = 'Entries';
>
>         function index() {
>                 $this->Session->write("test",2);
>                 debug($this->Session->read());
>         }
>
> }
>
> The second problem is that setting the session variable "test" to 2
> works but only in that controller.
>
> Has anybody got any ideas where I should start looking for the
> solution to the problem?
> I really am pulling out my hair :-)
>
> After searching the group I have checked and session.auto_start is set
> to 0
>
> Cheers,
> Taff

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Need CSV import: best practices?

CakePHP follows the MVC design pattern - most of the heavy lifting
should be done in the model with the controller just being the
intermediary between the model and view.

Remember: Fat Model, Skinny Controller
http://teknoid.wordpress.com/2009/01/06/another-way-to-think-about-mvc/

On Jun 30, 12:27 pm, Rick Dane <r.dane1...@gmail.com> wrote:
> This should all be in the controller as far as I can tell, cakephp
> seems to want everything in the control with the model just being
> representative of the database, so I believe the model wouldn't come
> into play until you are uploading the csv to the database
>
> On Jun 30, 2:49 am, euromark <dereurom...@googlemail.com> wrote:
>
> > i would use a library (lib) for cake1.3 (those can then use vendor
> > files if neccessary)
>
> > does it have to be in a model? or could that happen in the controller?
>
> > On 30 Jun., 11:40, Ernesto <e.fanz...@gmail.com> wrote:
>
> > > Hello.
> > > i need to import data from a CSV file in two of my app's model.
>
> > > what's the best place to code the import routine?
> > > - a behavior
> > > - a vendor class
> > > - appModel

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Association not by primary key

I'm trying to make an association between two models that do not use
the primary key as the association. I'm not sure why I'm getting the
results that I am from this:
class SubgroupPage extends AppModel {
var $name = 'SubgroupPage';
var $useTable = 'menu_subgroup_pages';
var $primaryKey = 'subgroup';
var $hasOne = array('PageSettings' => array('foreignKey' =>
'pageid',
'conditions' => array('PageSettings.pageid' =>
'SubgroupPage.pageid')));

Which end up looking like this:

SELECT [PageSettings].[pageid] AS [PageSettings__40], [PageSettings].
[page_name] AS [PageSettings__41], [PageSettings].[default_levelid] AS
[PageSettings__42], [PageSettings].[status] AS [PageSettings__43],
[PageSettings].[page_template] AS [PageSettings__44],
CONVERT(VARCHAR(20), [PageSettings].[mod_date], 20) AS
[PageSettings__45], [PageSettings].[secure] AS [PageSettings__46] FROM
[page_settings] AS [PageSettings] WHERE [PageSettings].[pageid] =
'SubgroupPage.pageid'

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Need CSV import: best practices?

yep - that's why i was asking him :)


On 30 Jun., 13:27, Rick Dane <r.dane1...@gmail.com> wrote:
> This should all be in the controller as far as I can tell, cakephp
> seems to want everything in the control with the model just being
> representative of the database, so I believe the model wouldn't come
> into play until you are uploading the csv to the database
>
> On Jun 30, 2:49 am, euromark <dereurom...@googlemail.com> wrote:
>
>
>
> > i would use a library (lib) for cake1.3 (those can then use vendor
> > files if neccessary)
>
> > does it have to be in a model? or could that happen in the controller?
>
> > On 30 Jun., 11:40, Ernesto <e.fanz...@gmail.com> wrote:
>
> > > Hello.
> > > i need to import data from a CSV file in two of my app's model.
>
> > > what's the best place to code the import routine?
> > > - a behavior
> > > - a vendor class
> > > - appModel

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

image and a tag problem without mod_rewrite

I have developed my site in a server where mod_rewrite and .httaccess
are available. I used '$this->webroot' variable for a tag and img path
extensively. But I have to make the live in a server where mod_rewrite
and .httaccess are not available and the site will be uploaded in a
subfolder (not in the root folder). Now I am facing very problem in a
tag path. Because '$this-webroot' is returning 'http://www.mysite.com/
subfolder/app/webroot/
'. It is ok for the img and other supporting
fiilepath, it is not working for a tag path, because we need "http://
www.mysite.com/subfolder/index.php/" from '$this->webroot", so that
the a tag links looks like "http://www.mysite.com/subfolder/index.php/
controller_name/view_name/param/
". What is fix for this prob?

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Undefined id and don´t know why....

its only if i add this line

if(!empty($product)) {

$this->loadModel('Kattaxonomie');

   

$counted_katId = count($this->data['Kat']);

#pr($counted_katId);

for($i=0;$i<$counted_katId;$i++) {

$this->Kattaxonomie->set(array(

'product_id' => $this->Product->id,

'kat_id' => $this->data['Kat']['kat_id'][$i]

));

$this->Kattaxonomie->save();

}


i will understand which id it meen. but if i only save the product in it´s Table it works but if i ad this model Katttaxonomie and try to save this two vars in this Table i got this Debugerror...


2010/6/30 Zaky Katalan-Ezra <procsharp@gmail.com>
Did you bake the initial view?
If yes did it work before your changes?
Attach your create table script

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: xls extension.

sorry.. putting in beforFilter the requestHandler it works? Can somebody explain me why?

On Wed, Jun 30, 2010 at 3:04 PM, emanuele <emanuele.g@gmail.com> wrote:
hello fellows,

is there any possibility to parse an url with xls extensions? Ive tried with pdf it works, but If I try with xls nothing happens.
In my routes.php

Router::parseExtensions('pdf', 'xls');

Router::connect(
        '/mcontrollers/view/:id',
        array('controller' => 'mcontrollers', 'action' => 'view'),
        array(
            'pass' => array('id')
        )
    );

the link

echo $html->link('Export in xls', array('controller' => 'mcontrollers', 'action' => 'view', 'id' => $id , 'ext' => 'xls'))

I ve also tried to set the content type with requesthandler component but, again, nothing happens ($this->RequestHandler->setContent('xls' ,'application/vnd.ms-excel');)!

thanks in advance.

--
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield



--
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

xls extension.

hello fellows,

is there any possibility to parse an url with xls extensions? Ive tried with pdf it works, but If I try with xls nothing happens.
In my routes.php

Router::parseExtensions('pdf', 'xls');

Router::connect(
        '/mcontrollers/view/:id',
        array('controller' => 'mcontrollers', 'action' => 'view'),
        array(
            'pass' => array('id')
        )
    );

the link

echo $html->link('Export in xls', array('controller' => 'mcontrollers', 'action' => 'view', 'id' => $id , 'ext' => 'xls'))

I ve also tried to set the content type with requesthandler component but, again, nothing happens ($this->RequestHandler->setContent('xls' ,'application/vnd.ms-excel');)!

thanks in advance.

--
Emanuele Gringeri
Computer Engineer
University of Pisa
Be my mirror, my sword and shield

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Undefined id and don´t know why....

Did you bake the initial view?
If yes did it work before your changes?
Attach your create table script

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Undefined id and don´t know why....

do you need something else?

lg,

Davor


2010/6/30 Davor Ilic <webfacer@gmail.com>
please ignore this line this have been copied wrong "<? foreach ('$ $ Checkboxen als Checkbox'):"

2010/6/30 Davor Ilic <webfacer@gmail.com>

Model:

<?php


class Product extends AppModel {

                

var $name 'Product';

                

var $primaryKey 'product_id';

#var $hasOne = array('Kattaxonomie');

}


?>



CTP:


<h1>Add Product</h1>

<?php



echo $form->create('Product');

echo $form->input('product_articlenum', array('type' => 'hidden', 'value' => ($last_proarticle['Product']['product_articlenum']+1)));

?>


<? foreach($checkboxes as $checkbox) :


$value = $checkbox['Kat']['kat_id'];

$label = $checkbox['Kat']['kat_name'];

$options[$value] = $label; 

endforeach; ?>

<?=$form->input('Kat.kat_id', array('type' => 'select', 'multiple'=>'checkbox', 'options'=> $options, 'label'=>'')); ?>


<?

echo $form->input('product_name');

echo $form->input('product_location');

echo $form->input('product_price');

echo $form->input('product_color');

echo $form->input('product_date',array('type'=>'hidden', 'value'=>date('Y-m-d h:i:s')));

echo $form->input('product_descr');

echo $form->end('Add Product');

?>


2010/6/30 Zaky Katalan-Ezra <procsharp@gmail.com>

Check that id in ctp have no disable=>disable.
Otherwise you have a typo someware.
Write you model action and ctp

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en



Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Cannot get set variable as field from array resulting from find('first')

Thanks, that worked.. Could've sworn I tried it like this:
"$retrieveemail = $this->Retrieveemail->find('first'); " before but I
guess not, probably just been on the computer too long getting
familiar with cakephp :)


On Jun 30, 4:30 am, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Apologies...I wasn't thinking straight. Try this:
>
> $retrieveemail = $this->Retrieveemail->find('first');
>
> $email_address = $retrieveemail['Retrieveemail']['emailid'] ;
> $email_password = $retrieveemail['Retrieveemail']['password'] ;
>
> $this->set('variable', $variable) is only available outside of the controller.
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 30 Jun 2010, at 12:26, Rick Dane wrote:
>
> > I get this:
>
> > "app\controllers\hushmail\retrieveemails_controller.php (line 170)
>
> > retrieveemail
> > "
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions.
>
> > You received this message because you are subscribed to the Google Groups "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Cannot get set variable as field from array resulting from find('first')

Apologies...I wasn't thinking straight. Try this:

$retrieveemail = $this->Retrieveemail->find('first');

$email_address = $retrieveemail['Retrieveemail']['emailid'] ;
$email_password = $retrieveemail['Retrieveemail']['password'] ;

$this->set('variable', $variable) is only available outside of the controller.


Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 30 Jun 2010, at 12:26, Rick Dane wrote:

> I get this:
>
> "app\controllers\hushmail\retrieveemails_controller.php (line 170)
>
> retrieveemail
> "
>
> 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Need CSV import: best practices?

This should all be in the controller as far as I can tell, cakephp
seems to want everything in the control with the model just being
representative of the database, so I believe the model wouldn't come
into play until you are uploading the csv to the database

On Jun 30, 2:49 am, euromark <dereurom...@googlemail.com> wrote:
> i would use a library (lib) for cake1.3 (those can then use vendor
> files if neccessary)
>
> does it have to be in a model? or could that happen in the controller?
>
> On 30 Jun., 11:40, Ernesto <e.fanz...@gmail.com> wrote:
>
> > Hello.
> > i need to import data from a CSV file in two of my app's model.
>
> > what's the best place to code the import routine?
> > - a behavior
> > - a vendor class
> > - appModel

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Cannot get set variable as field from array resulting from find('first')

I get this:

"app\controllers\hushmail\retrieveemails_controller.php (line 170)

retrieveemail
"

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Cannot get set variable as field from array resulting from find('first')

(and yes this is part of a cakephp class and within a function, I know
thats not where the error is so I left that out for simplicity)

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Cannot get set variable as field from array resulting from find('first')

What do you see if you die(debug(retrieveemail)); just after you do your find?

Jeremy Burns
Class Outfit

jeremyburns@classoutfit.com
http://www.classoutfit.com

On 30 Jun 2010, at 12:21, Rick Dane wrote:

> I am very lost at this point as I am just going in circles with trying
> to retrieve data from a database the "cakephp" way, I have looked at
> every tutorial I could find and I have basically done exactly what
> they say, as far as I can tell but I am still getting this error when
> I try to set a variable to a specific field, the error is
>
> #######error#########
>
> Notice (8): Undefined variable: retrieveemail [APP\controllers\hushmail
> \retrieveemails_controller.php, line 173]
> Code
> Notice (8): Undefined variable: retrieveemail [APP\controllers\hushmail
> \retrieveemails_controller.php, line 174]
>
> #############
>
> I am using the code below, which I am able to output using print_r to
> get the following array:
>
> "Array ( [Retrieveemail] => Array ( [emailid] =>
> testtester1010@tesst.com [password] => password) )"
>
> So I clearly have the data, it has been retrieved from the database,
> but in the code below there is something that is keeping this from
> being able to set the variable properly and it is beyond me to figure
> out what I am doing wrong, I would greatly appreciate any help..
> Thanks
>
> ########my code########
>
>
> <?php
>
> $this->set('retrieveemail', $this->Retrieveemail->find('first'));
>
>
> $email_address = $retrieveemail['Retrieveemail']['emailid'] ;
> $email_password = $retrieveemail['Retrieveemail']['password'] ;
>
> ?>
>
> ############
>
> 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Re: Which is the best hosting server for CakePHP?

I think that hostmonster is very good!
http://www.hostmonster.com/track/saidbakr/azzazi

On Jun 30, 12:44 pm, jodator <joda...@gmail.com> wrote:
> I have similar thoughts on VPS after switching to one.
> It's not as easy as shared hosting, but you can find tons of tutorials
> online.
>
> Btw, Big THX for the linode.com link. I was searching a affordable VPS
> in US and these one is just sweet!
>
> On Jun 29, 7:33 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
>
> > > It's actually pretty cheap now to get your own VPS, and set it up
> > > exactly how you want to.
>
> > I second that suggestion, after switching to VPSs I'd never switch back.
>
> > In the UK I likewww.bytemark.co.uk
> > In the euwww.linode.comhaveUS and uk data centres
> > Also in the US iswww.slicehost.com
>
> > I have sites with bytemark and slidehost, linode were lacking a backup
> > solution but they now have that in place.
>
> > Hth,
>
> > J
>
> > --
> > jon bennett -www.jben.net-blog.jben.net

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Cannot get set variable as field from array resulting from find('first')

I am very lost at this point as I am just going in circles with trying
to retrieve data from a database the "cakephp" way, I have looked at
every tutorial I could find and I have basically done exactly what
they say, as far as I can tell but I am still getting this error when
I try to set a variable to a specific field, the error is

#######error#########

Notice (8): Undefined variable: retrieveemail [APP\controllers\hushmail
\retrieveemails_controller.php, line 173]
Code
Notice (8): Undefined variable: retrieveemail [APP\controllers\hushmail
\retrieveemails_controller.php, line 174]

#############

I am using the code below, which I am able to output using print_r to
get the following array:

"Array ( [Retrieveemail] => Array ( [emailid] =>
testtester1010@tesst.com [password] => password) )"

So I clearly have the data, it has been retrieved from the database,
but in the code below there is something that is keeping this from
being able to set the variable properly and it is beyond me to figure
out what I am doing wrong, I would greatly appreciate any help..
Thanks

########my code########


<?php

$this->set('retrieveemail', $this->Retrieveemail->find('first'));


$email_address = $retrieveemail['Retrieveemail']['emailid'] ;
$email_password = $retrieveemail['Retrieveemail']['password'] ;

?>

############

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en