Sunday, November 30, 2014

Re: Cakephp 3, getting error referencing relation

Hey Frocco,

In CakePHP 3, the entity properties for related entities are named according to the type of relation. BelongsTo and HasOne become lowercased_and_singular, whilst HasMany and BelongsToMany become lowercased_and_plural.

It looks like Products BelongsTo Brands, so you need to use $row->brand->image_path. See http://book.cakephp.org/3.0/en/orm/table-objects.html#belongsto-associations

On Monday, 1 December 2014 01:39:14 UTC+2, frocco wrote:
Hello,

I took advice on these forums and decided to learn Cake 3.0 instead of 2.

In my controller I am getting product items and trying to reference child table brands.

$data = $this->Products->find('all')
->where(['Products.is_active' => 0])
->where(['Products.attributes LIKE' => $size.'%'])
->where(['Products.category_id =' => $catid])
   ->contain(['Brands']);

foreach($products as $row): 
$row->Brands->image_path; // this line is causing an error 

Trying to get property of non-object

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

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

Re: blog tutorial errors

Ah!  Well in that case, please allow me to suggest *not* CakePHP.  For the moment.  Do something well-structured and bite-sized like the php course on http://www.codecademy.com/ -- It's free.  Then do it once more (because repetition aids learning -- corny but true).  *then* go shopping for cakePHP tutorials.  Learn a little PHP first (and maybe do the javascript course too!).  You'll be glad you did!

On Sun, Nov 30, 2014 at 10:05 PM, Lorne Dudley <dudleyl@queensu.ca> wrote:
Hello Matt

Thanks for the suggestion.   Can you give me a link to something simpler ?  I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background.     As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works.

Regards

Lorne

On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote:
Hello Lorne,

Might I suggest working on something that is simpler for the moment?  Something that doesn't require both core app logic *and* auth code.  Back off.  Find something that isn't so meaty and ease into it.  Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it.

Good luck!
Matt

On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley <dud...@queensu.ca> wrote:
Hello John !

Thanks for responding.   My major problem seems to be interpreting the tutorial properly and not making typo errors.  The tutorial neglected to mention that <?php tags should enclose some of the samples.   I have made some progress since yesterday but still have not got the authorization stuff completely coded.

I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work.

I will keep working at this and perhaps post later if I encounter more problems.   I think there might be some design problems in part one of the tutorial on how
the flow between various screens works but I will hold off detailing that "problem" until I get the authorization part "completed".

A download of the completed working code sure would have been nice !

Regards

Lorne


On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote:
Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief?

If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible.

Thanks in advance
Enjoy, John

On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

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

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

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

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

Re: blog tutorial errors

Hello Matt

Thanks for the suggestion.   Can you give me a link to something simpler ?  I am really struggling to understand how cakePHP works, coming from a raw HTML (with minimal javascript) background.     As you suggest, I would like to start up simple and then progress to more complicated models once I can see how the simple stuff works.

Regards

Lorne

On Sunday, November 30, 2014 9:46:13 PM UTC-5, mbingham wrote:
Hello Lorne,

Might I suggest working on something that is simpler for the moment?  Something that doesn't require both core app logic *and* auth code.  Back off.  Find something that isn't so meaty and ease into it.  Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it.

Good luck!
Matt

On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley <dud...@queensu.ca> wrote:
Hello John !

Thanks for responding.   My major problem seems to be interpreting the tutorial properly and not making typo errors.  The tutorial neglected to mention that <?php tags should enclose some of the samples.   I have made some progress since yesterday but still have not got the authorization stuff completely coded.

I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work.

I will keep working at this and perhaps post later if I encounter more problems.   I think there might be some design problems in part one of the tutorial on how
the flow between various screens works but I will hold off detailing that "problem" until I get the authorization part "completed".

A download of the completed working code sure would have been nice !

Regards

Lorne


On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote:
Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief?

If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible.

Thanks in advance
Enjoy, John

On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

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

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

Re: blog tutorial errors

Hi John !

I have the blog tutorial "completed" so that no errors appear.   I am not happy with the way the control passes (or does not pass) between various screens.  If you are interested in looking at the code and checking the way the application works  I can give you a link to a public repository,   There is some sql database setup required that is documented in the installation notes at the repository.

Regards

Lorne

On Thursday, November 27, 2014 2:52:06 PM UTC-5, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

Re: blog tutorial errors

Hello Lorne,

Might I suggest working on something that is simpler for the moment?  Something that doesn't require both core app logic *and* auth code.  Back off.  Find something that isn't so meaty and ease into it.  Failing that, try to implement this blog tutorial without the auth component and then start over (yes over -- you'll benefit from solving the same problems with different eyes) with it.

Good luck!
Matt

On Sat, Nov 29, 2014 at 12:16 AM, Lorne Dudley <dudleyl@queensu.ca> wrote:
Hello John !

Thanks for responding.   My major problem seems to be interpreting the tutorial properly and not making typo errors.  The tutorial neglected to mention that <?php tags should enclose some of the samples.   I have made some progress since yesterday but still have not got the authorization stuff completely coded.

I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work.

I will keep working at this and perhaps post later if I encounter more problems.   I think there might be some design problems in part one of the tutorial on how
the flow between various screens works but I will hold off detailing that "problem" until I get the authorization part "completed".

A download of the completed working code sure would have been nice !

Regards

Lorne


On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote:
Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief?

If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible.

Thanks in advance
Enjoy, John

On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

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

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

Re: Is there a way to put request variables in paginate class property?

You're on the right track with the second code bit.. but i'd abstract that assignment into its own controller method and then call that from whatever action you need it set -- or if the request params are avaialble early enough (i don't know -- i don't do automagical platforms these days -- I'm on ZF2) then call it on __invoke or __constructor or something.

On Sun, Nov 30, 2014 at 4:23 PM, Sam Clauw <info@bellewaerdefun.be> wrote:
I want to sort an array of data in my index action and one condition depends on the id given by the request object (attraction_id). Is there a way to set up the paginate component as a controller class method (see under)?

<?php

class AttractionCommentsController extends CoasterCmsAppController
{
   
public $paginate = array(
       
'AttractionComment' => array(
           
'conditions' => array(
               
'Attraction.id' => $this->request->params['named']['attraction_id'],
               
'AttractionComment.deleted' => null
           
),
           
'order' => array(
               
'AttractionComment.created' => 'DESC',
               
'AttractionComment.id' => 'ASC'
           
),
           
'limit' => 15
       
)
   
);
   
   
public function index()
   
{
        $this
->Paginator->settings = $this->paginate;
       
        $comments
= $this->Paginator->paginate('AttractionComment');
       
        $this
->set('comments', $comments);
   
}

?>


The above code can't handle the request variable ($this->request->params['named']['attraction_id']) within the class method.
So... is there a solution for this or is it required to drop the class property and do something like this:

<?php

class AttractionCommentsController extends CoasterCmsAppController
{
   
public function index()
   
{

        $this
->Paginator->settings = array(
           
'AttractionComment' => array(
               
'conditions' => array(
                   
'Attraction.id' => $this->request->params['named']['attraction_id'],
                   
'AttractionComment.deleted' => null
               
),
               
'order' => array(
                   
'AttractionComment.created' => 'DESC',
                   
'AttractionComment.id' => 'ASC'
               
),
               
'limit' => 15
           
)
       
);        
        $comments
= $this->Paginator->paginate('AttractionComment');
       
        $this
->set('comments', $comments);
   
}

?>

Thx 4 helping!

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

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

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

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

Re: Cakephp 3, getting error referencing relation

from.

On Sun, Nov 30, 2014 at 9:35 PM, Matt Murphy <mattyhead@gmail.com> wrote:
I don't know crap about Cakephp3, but as i read this, I wonder: What do you get form $row->image_path?

On Sun, Nov 30, 2014 at 6:39 PM, frocco <farocco@gmail.com> wrote:
Hello,

I took advice on these forums and decided to learn Cake 3.0 instead of 2.

In my controller I am getting product items and trying to reference child table brands.

$data = $this->Products->find('all')
->where(['Products.is_active' => 0])
->where(['Products.attributes LIKE' => $size.'%'])
->where(['Products.category_id =' => $catid])
   ->contain(['Brands']);

foreach($products as $row): 
$row->Brands->image_path; // this line is causing an error 

Trying to get property of non-object

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

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


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

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

Re: Cakephp 3, getting error referencing relation

I don't know crap about Cakephp3, but as i read this, I wonder: What do you get form $row->image_path?

On Sun, Nov 30, 2014 at 6:39 PM, frocco <farocco@gmail.com> wrote:
Hello,

I took advice on these forums and decided to learn Cake 3.0 instead of 2.

In my controller I am getting product items and trying to reference child table brands.

$data = $this->Products->find('all')
->where(['Products.is_active' => 0])
->where(['Products.attributes LIKE' => $size.'%'])
->where(['Products.category_id =' => $catid])
   ->contain(['Brands']);

foreach($products as $row): 
$row->Brands->image_path; // this line is causing an error 

Trying to get property of non-object

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

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

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

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

Cakephp 3, getting error referencing relation

Hello,

I took advice on these forums and decided to learn Cake 3.0 instead of 2.

In my controller I am getting product items and trying to reference child table brands.

$data = $this->Products->find('all')
->where(['Products.is_active' => 0])
->where(['Products.attributes LIKE' => $size.'%'])
->where(['Products.category_id =' => $catid])
   ->contain(['Brands']);

foreach($products as $row): 
$row->Brands->image_path; // this line is causing an error 

Trying to get property of non-object

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

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

Is there a way to put request variables in paginate class property?

I want to sort an array of data in my index action and one condition depends on the id given by the request object (attraction_id). Is there a way to set up the paginate component as a controller class method (see under)?

<?php

class AttractionCommentsController extends CoasterCmsAppController
{
   
public $paginate = array(
       
'AttractionComment' => array(
           
'conditions' => array(
               
'Attraction.id' => $this->request->params['named']['attraction_id'],
               
'AttractionComment.deleted' => null
           
),
           
'order' => array(
               
'AttractionComment.created' => 'DESC',
               
'AttractionComment.id' => 'ASC'
           
),
           
'limit' => 15
       
)
   
);
   
   
public function index()
   
{
        $this
->Paginator->settings = $this->paginate;
       
        $comments
= $this->Paginator->paginate('AttractionComment');
       
        $this
->set('comments', $comments);
   
}

?>


The above code can't handle the request variable ($this->request->params['named']['attraction_id']) within the class method.
So... is there a solution for this or is it required to drop the class property and do something like this:

<?php

class AttractionCommentsController extends CoasterCmsAppController
{
   
public function index()
   
{

        $this
->Paginator->settings = array(
           
'AttractionComment' => array(
               
'conditions' => array(
                   
'Attraction.id' => $this->request->params['named']['attraction_id'],
                   
'AttractionComment.deleted' => null
               
),
               
'order' => array(
                   
'AttractionComment.created' => 'DESC',
                   
'AttractionComment.id' => 'ASC'
               
),
               
'limit' => 15
           
)
       
);        
        $comments
= $this->Paginator->paginate('AttractionComment');
       
        $this
->set('comments', $comments);
   
}

?>

Thx 4 helping!

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

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

Friday, November 28, 2014

Re: blog tutorial errors

Hello John !

Thanks for responding.   Arrg !  I just typed in a lengthy reply and it appears to have been "lost".

So ... repeating (and saving eleswhere),  I have made some progress with part one of the tutorial, although I am not happy with some of the flow between screens.
 In one case I had to back arrow back to a reasonable location rather that the default given.

I am currently working to complete the authorization code in part two of the tutorial.

I think my major problem is properly interpreting the tutorial and avoiding typos.
 For example, some of the script neglected to mention that it should be enclosed with <?php tags.

It sure would be nice if their was a download of the complete code available.  That is what I was hoping for on my first post.

I will continue working on part two and when that is "completed" I will be able to properly document my problems.

Regards

Lorne

On Thursday, November 27, 2014 2:52:06 PM UTC-5, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

Re: blog tutorial errors

Hello John !

Thanks for responding.   My major problem seems to be interpreting the tutorial properly and not making typo errors.  The tutorial neglected to mention that <?php tags should enclose some of the samples.   I have made some progress since yesterday but still have not got the authorization stuff completely coded.

I was hoping someone on the list might have accomplished a clean installation and would be willing to share their work.

I will keep working at this and perhaps post later if I encounter more problems.   I think there might be some design problems in part one of the tutorial on how
the flow between various screens works but I will hold off detailing that "problem" until I get the authorization part "completed".

A download of the completed working code sure would have been nice !

Regards

Lorne

On Friday, November 28, 2014 12:45:35 PM UTC-5, John Andersen wrote:
Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief?

If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible.

Thanks in advance
Enjoy, John

On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

Re: blog tutorial errors

Can I understand you correctly, that there are no actual error in the blog tutorial, just that it gives you grief?

If I am mistaken, please be so kind and explain to us, how you experience the error? How far have you got in the tutorial? What is not displayed correctly? ... and provide screenshots if possible.

Thanks in advance
Enjoy, John

On Thursday, 27 November 2014 21:52:06 UTC+2, Lorne Dudley wrote:
Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

how do I use admin_index with bake?

Yo need enable admin prefix in route.php first, then run bake

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

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

Thursday, November 27, 2014

blog tutorial errors

Hello !

I am a new user to cakePHP (version 2.6.0-RC1) and am attempting to learn by tutorial.

The blog tutorial at http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/part-two.html is giving me grief in that it does not display as expected.

Does anyone have a properly working example who would be willing to send me copies of the following files ?

/app/Config/routes.php
/app/view/Posts/edit.ctp
/app/view/Posts/add.ctp
/app/view/Posts/index.ctp
/app/view/Posts/view.ctp
/app/Controller-PostsController.php
/app/Model/Post.php

Regards

Lorne Dudley
Kingston, Ontario




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

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

how do I use admin_index with bake?

I generated my controller and choose admin and it generated admin_index, admin_add...
but the views are just index.cp, edit.ctp

is bake supposed to generated admin_index?

I am new to cake and trying to understand.

Thanks

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

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

Re: display pure html page without layout

Sorry all my bad :-((
my DreamWeaver settings were updating the wrong app dir.

Now it is working fine as it should :) 

Thank you for checking into it !

 

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

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

Re: display pure html page without layout

have also checked the .htaccess file one dir above, it looks like this :

 

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

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

Re: display pure html page without layout

Hi RChavik,
checked the .htaccess and all seemed ok in there :

 

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

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

Wednesday, November 26, 2014

Re: new to cakephp, should I learn this over yin/laravel4?

What about the (probably even more relevant) third option, using cakephp3 from here on?


Am Donnerstag, 27. November 2014 00:10:42 UTC+1 schrieb frocco:
Hello,

Just installed cakephp 2 and have played around with it for about two hours.

I have a project and wanted to know if I should continue using cakephp or start on a more recent framework like yin or laravel 4?

I really like the cakephp concepts, and would like to hear from long time users.

Thanks

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

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

new to cakephp, should I learn this over yin/laravel4?

Hello,

Just installed cakephp 2 and have played around with it for about two hours.

I have a project and wanted to know if I should continue using cakephp or start on a more recent framework like yin or laravel 4?

I really like the cakephp concepts, and would like to hear from long time users.

Thanks

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

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

Save double times on Configure::write('debug', 2);

Hi,

every with code is ok?
but on Configure::write('debug', 2); save double times 

is this bug?

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

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

Tuesday, November 25, 2014

Re: display pure html page without layout


On Tuesday, November 25, 2014 8:56:37 PM UTC+7, Frank Hassani wrote:
tried it with staticpages as dir name, but same, it still loads the layout :O


Weird.

Can you compare your .htaccess files and compare it with .htaccess described in http://book.cakephp.org/2.0/en/installation/url-rewriting.html.

I suspect croogo 1.4.x did not have the following lines:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

Those lines should disable the rewrite to index.php if the directory or file exists.

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

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

Re: display pure html page without layout

tried it with staticpages as dir name, but same, it still loads the layout :O

 

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

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

Baking views with filters

Hi,

I'm trying to find a way to generate index actions with filters through bake , does anyone have any idea ?

Att,
Felipe Silveira Mendes
Twitter - Linked-In
Web Developer
(31) 8370-9090 (Claro)


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

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

Monday, November 24, 2014

Re: display pure html page without layout



On Tuesday, November 25, 2014 12:42:30 AM UTC+7, Frank Hassani wrote:
Hi Steven, 
tried the full url path, but still not coming through without the layout. Checking out what Mike is pointing out regarding the use of Croogo there.

I think your apache is running with MultiViews on, so it uses test.php file instead of checking the 'test' directory.
So, rename the 'test' as the directory as 'staticpages' and put your static html file there:

Eg: /homepages/11/d441222193/htdocs/_sites/paswellness/paswellness.de/cake224_croogo143/app/webroot/staticpages/Massage_Video.html

Then browse the file at http://paswellness.de/staticpages/Massage_Video.html

Secondly, turn debug off :)

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

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