Friday, February 28, 2014

Re: 3.0 - Acl

To clarify, i have an app that manages permissions for a great many Entities with DbAcl and i never had any problems with it … 

/thomas



On 28 Feb 2014, at 13:30, José Lorenzo <jose.zap@gmail.com> wrote:

It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases.

On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote:
Hey

Am i right to assume that Acl is not done in 3.0 yet ? 

/thomas


--
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/groups/opt_out.

Re: 3.0 - Acl

Oh, that's a shame. Works fine for me, once you get a hang of it. 

/Thomas 

Sent from my iPad

On 28 Feb 2014, at 13:30, José Lorenzo <jose.zap@gmail.com> wrote:

It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases.

On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote:
Hey

Am i right to assume that Acl is not done in 3.0 yet ? 

/thomas

--
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/groups/opt_out.

Re: Media View Path - Strange behaviour

What is the value of your `ROOT` constant on the windows machine?

On Friday, February 28, 2014 7:01:22 AM UTC-5, Stephen S wrote:
Hey

I've pulled some working code from a repository this morning, which works at the office using OSX, to my windows machine.

The media view is having strange and unexpected behaviour, here is the code (expected path and actual path).


If you read the book (http://book.cakephp.org/2.0/en/views/media-view.html) it states the path by default should be absolute unless it's relative to the webroot folder. This only happens on my windows installation.

Perhaps this is a bug I should report, rather than something I have done wrong?

Cheers!

--
Kind Regards
 Stephen Speakman

--
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/groups/opt_out.

Re: What are the advantages and disadvantages(if any) to use cakephp3.0?

CakePHP 3.0 is still a preview. It is not intended for production use and is not complete. You could consider it alpha software (pre beta). More information about the 3.0 Developer preview 1 can be found here: http://bakery.cakephp.org/articles/markstory/2014/01/05/cakephp_3_0_0_dev_preview_1_released


On Friday, February 28, 2014 8:13:17 PM UTC-5, Sam wrote:
What are the advantages and disadvantages(if any) to use cakephp3.0 instead of cakephp2.x?

--
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/groups/opt_out.

Re: 3.0 - Acl

Great! Is a replacement proposed? Something like Sentry 2 package?

Tarique

On Friday, February 28, 2014, José Lorenzo <jose.zap@gmail.com> wrote:
It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases.

On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote:
Hey

Am i right to assume that Acl is not done in 3.0 yet ? 

/thomas

--
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/groups/opt_out.


--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.

Re: Boris REPL with 3.x

Ah! Ok I was trying to use Boris directly instead of cake console

Thanks 

Tarique

On Friday, February 28, 2014, José Lorenzo <jose.zap@gmail.com> wrote:
Status: Done

Install 3.x following the instructions in the README http://github.com/cakephp/app

You will be able to execute Console/cake console afterwards

On Friday, February 28, 2014 10:38:27 AM UTC+1, Dr. Tarique Sani wrote:
Can anyone give a quick update on what is the status of Boris in CakePHP 3.x 

Wanted to play around with the new ORM - a few quick lines on something which works would be appreciated.

Cheers
Tarique

--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.


--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.

What are the advantages and disadvantages(if any) to use cakephp3.0?

What are the advantages and disadvantages(if any) to use cakephp3.0 instead of cakephp2.x?

--
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/groups/opt_out.

Re: CakeDC Tags Plugin - recursive problem

Did you ever have any success with this? I've been having the exact same problem. If you did find a solution, what did you use?

--
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/groups/opt_out.

Re: 3.0 - Acl

It is not. The database version of ACL will be probably removed from cake 3 as it has proven to be an over complication for the great majority of cases.

On Thursday, February 27, 2014 6:49:15 PM UTC+1, Thomas von Hassel wrote:
Hey

Am i right to assume that Acl is not done in 3.0 yet ? 

/thomas

--
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/groups/opt_out.

Re: Boris REPL with 3.x

Status: Done

Install 3.x following the instructions in the README http://github.com/cakephp/app

You will be able to execute Console/cake console afterwards

On Friday, February 28, 2014 10:38:27 AM UTC+1, Dr. Tarique Sani wrote:
Can anyone give a quick update on what is the status of Boris in CakePHP 3.x 

Wanted to play around with the new ORM - a few quick lines on something which works would be appreciated.

Cheers
Tarique

--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.

Media View Path - Strange behaviour

Hey

I've pulled some working code from a repository this morning, which works at the office using OSX, to my windows machine.

The media view is having strange and unexpected behaviour, here is the code (expected path and actual path).


If you read the book (http://book.cakephp.org/2.0/en/views/media-view.html) it states the path by default should be absolute unless it's relative to the webroot folder. This only happens on my windows installation.

Perhaps this is a bug I should report, rather than something I have done wrong?

Cheers!

--
Kind Regards
 Stephen Speakman

--
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/groups/opt_out.

Re: Dynamic menu content in layout

What you are really wanting is the ViewModel. CakePHP does not implement that explicitly but you can get the same functionality by creating a helper and accessing your model in the helper keeping the view clean. 

HTH

Tarique



On Thu, Feb 27, 2014 at 1:09 AM, Sam Clauw <info@bellewaerdefun.be> wrote:
Okay, let's suppose I want to put my menu in an element called "top_menu.ctp". I want to get my data out of the database, so probably, I shouldn't connect with my 



 
--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.

Boris REPL with 3.x

Can anyone give a quick update on what is the status of Boris in CakePHP 3.x 

Wanted to play around with the new ORM - a few quick lines on something which works would be appreciated.

Cheers
Tarique

--
=============================================================
The Conference Schedule Creator : http://shdlr.com

PHP for E-Biz : http://sanisoft.com
=============================================================

--
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/groups/opt_out.

Thursday, February 27, 2014

3.0 - Acl

Hey

Am i right to assume that Acl is not done in 3.0 yet ? 

/thomas

--
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/groups/opt_out.

Re: Pagination Sort, Resetting Data


你是用 Paginator->sort() 產生的連結(我知道這裡你把它變成checkbox了),再點擊它的時候,已經不是 post request;
但取而代之是傳入 querystring 或是 named parameters,這時候你的 searchByBrowser 應該要在接收到這些與sort有關的參數時,
最後要再指定給 $this->request->data,這樣 view 在被 rendering 的時候就會把 request data 的值填回你的 Form 表單。



Eric Chan <eric.hf.chan@gmail.com> 於 2014/2/27 下午12:14 寫道:

Hello,

I just starting baking with CakePHP and I'm slowly grasping the basics.

So far I've created a view to display all the data in table format from a table in the database with pagination.
There is a column in the table that contains browser information (Firefox, Chrome, Safari...etc).
So on the view I made some checkboxes using Form->checkbox, with each check box representing a browser. 
When the the submit button is pressed, the POST request is sent to the searchByBrowser function in the controller and 
the view is updated with the appropiate data.

Now I am adding sort() functionality using Paginator->sort() and it sorts by the specified column just fine.  

However, when I use the searchByBrower function to get the appropiate view and then try and sort the displayed data, it resets everything
to showing all the full dataset and the checkbox is no longer checked.

Is there a way to get everything to work the way it should with just CakePHP?

Thanks.


1 - Full data set view


2 - Just Firefox data

3 - Sorted on http_method, full dataset again (instead of just firefox data)







--
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/groups/opt_out.

3.0 - setting data from models to the view

I think passing an array of entities is perfectly reasonable. This is what the bake templates and paginatorcomponent will do.

If you have specific view only logic you can decorate the entities with viewmodels, but viewmodels aren't included in the framework just yet.

-mark

--
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/groups/opt_out.

Wednesday, February 26, 2014

Question about cakephp forms and JS

Hi,

I am trying to make a form which collects data on submit. Maybe someone can help me.

I have a  <canvas id="canvas">

Then I have a form:

<?php
echo $this->Form->create('Drawing');
echo $this->Form->input('id');
echo $this->Form->input('name');
echo $this->Form->input('description');
echo $this->Form->input('canvas');
echo $this->Form->end(__('Submit'));
?>

When the user clicks submit, I want the page to collect the canvas data, and send it along with the rest of the post data.

How would I do this?

var canvas = document.getElementById('canvas');
var dataURL = canvas.toDataURL();

Also after submit I would like to store it. Normally I use the upload plugin from Jose gonzalez, but not sure if it can handle the raw data. So maybe I need save it first to the server. This will not be a problem. The main problem is how I can get the dataURL into the forms canvas. 

Greets,
Thomas


--
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/groups/opt_out.

Pagination Sort, Resetting Data

Hello,

I just starting baking with CakePHP and I'm slowly grasping the basics.

So far I've created a view to display all the data in table format from a table in the database with pagination.
There is a column in the table that contains browser information (Firefox, Chrome, Safari...etc).
So on the view I made some checkboxes using Form->checkbox, with each check box representing a browser. 
When the the submit button is pressed, the POST request is sent to the searchByBrowser function in the controller and 
the view is updated with the appropiate data.

Now I am adding sort() functionality using Paginator->sort() and it sorts by the specified column just fine.  

However, when I use the searchByBrower function to get the appropiate view and then try and sort the displayed data, it resets everything
to showing all the full dataset and the checkbox is no longer checked.

Is there a way to get everything to work the way it should with just CakePHP?

Thanks.


1 - Full data set view


2 - Just Firefox data

3 - Sorted on http_method, full dataset again (instead of just firefox data)






--
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/groups/opt_out.

How to configure file router with array url

I have one form with content as follows
<?php
echo $this->Form->create('Post',array('url'=>'/Posts/result'));
...
echo $this->Form->end(__('Submit'));
?>
I to run the application on localhost.
I want path after updated takes the form :  localhost/project/bai-viet/ket-qua
What can I do ?
Thank you to all !

--
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/groups/opt_out.

Re: Dynamic menu content in layout

Take a look at the ideas here:
https://github.com/MenschDankeGmbH/cake-menu_builder
Maybe that helps.


Am Samstag, 22. Februar 2014 11:46:16 UTC+1 schrieb Sam Clauw:

What I'm trying to do is to put two dynamic navigation menus in my CakePHP layout (default.ctp). The main menu should have multiple levels (with a dropdown functionality). The secondary menu is the one that shows the dropdown content of the main menu in a left sidebar.

I've read the CakePHP documentation but I'm confused how to fit those menus in the layout. I know that you have 4 different parts in a view layer (as documented in http://book.cakephp.org/2.0/en/views.html):

  • views
  • elements
  • layouts
  • helpers

But with the knowledge I have right now, I think none of this parts can be used to fill my needs. A navigation menu is a part that you only load ONES in a layout, so it isn't an element or a helper. So what's the best practice...

  • ... where to create the menu tree?
  • ... where / how to echo it in the layout file?

Can anybody clearify my issue? Thanks in advance! ;)

--
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/groups/opt_out.

Re: Dynamic menu content in layout

No, you don’t want to anything in the view that involves querying the database. The controller action for that given page should know what menu to fetch from database and set that to the view.


/thomas


On 26 Feb 2014, at 20:39, Sam Clauw <info@bellewaerdefun.be> wrote:

Okay, let's suppose I want to put my menu in an element called "top_menu.ctp". I want to get my data out of the database, so probably, I shouldn't connect with my database in that .ctp file. I wonder if that's the right way to do so? MVC normally split us the model logic and the view logic, but now you'll all get it in one file? Or am I missing something? ;)

Re: Dynamic menu content in layout

Okay, let's suppose I want to put my menu in an element called "top_menu.ctp". I want to get my data out of the database, so probably, I shouldn't connect with my database in that .ctp file. I wonder if that's the right way to do so? MVC normally split us the model logic and the view logic, but now you'll all get it in one file? Or am I missing something? ;)

--
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/groups/opt_out.

3.0 - setting data from models to the view

In 2.x when you have an array from a model query, you just set that to the view, and work from there.

What is best practice in 3.x ? Just set the array of model objects directly to the view or ... ?

/thomas

--
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/groups/opt_out.

Tuesday, February 25, 2014

How to copy a record and its associated records to another 2 tables?

I have 2 tables with a one-to-many relationship. I have another 2 similar tables with the same relationship in the same database. I would like to copy a record and its associated records from one pair to another. Can someone advise?

Thank you very much.

--
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/groups/opt_out.

I'm looking for a good draft / revision behavior??

Can someone recommend a good draft / revision behavior for CakePHP 2.4.5. 

It is desirable that the primary table does not create a new entry before the user clicks submit. 

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/groups/opt_out.

Re: Help! Auth Component in Lib directory

Can't edit my first post, so just be aware that this line:
$result = $Auth->identify($userArr,$resp);

should be :

$result = $Auth->identify($userObj,$resp);

And I'm using Cake 2.4.4

--
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/groups/opt_out.

Help! Auth Component in Lib directory

Hi all, I'm struggling getting this code working, wondering if anyone had any insights


I've written an application that has a lot of web services, It used Zend to create a server and loads classes from my lib folder

So my structure is like this:

app/Controller/WebServicesController.php
app/Lib/WebServices/SomeService.php

The controller loads the requested service and passes it as an argument to the Zend SOAP server code. It works fine, except where I need the response from the Auth Component.

I want a partner site to be able to validate a username/password as part of a unified login. So if a user tries logging in to site X, that site will call my web service with the username and password and return the result of Auth:identify.

This is the relevant code in my SomeService.php file, I've attempted to initialize the Auth Component as I do in the standard login procedure, but it ALWAYS returns false, even if the credentials are correct:

function check_credentials($username, $password) {
    $userObj = new CakeRequest();
    $userObj->data['User'] = array('username'=>$username, 'password'=>$password);

    $resp = new CakeResponse();

    App::import('Component', 'Auth');
    $Auth = new AuthComponent(new ComponentCollection());
    $Auth::initialize();

    $Auth->authenticate = array(
                                'all' => array('userModel' => 'User'),
                                );

    $result = $Auth->identify($userArr,$resp);

    return $result;

}

Any help would be greatly appreciated!

--
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/groups/opt_out.

Monday, February 24, 2014

Re: Restful Api

Cake is an excellent choice for building a rest API, I suggest you take a look at the CRUD plugin, it makes building APis a snap http://friendsofcake.com/crud/docs/

It complements the Rest instructions that are in the cakephp book by taking away all the repetitive logic.

On Saturday, February 22, 2014 9:57:03 PM UTC+1, Prabhat Patel wrote:
Hi,

I want to create a restful api using cakephp. I was not able to find proper tutorial on google for this.

Is cakephp sutaible for Restful Api ?

As there is many other framework available for restful Api for example http://laravel.com, Frapi and etc. but i am familiar with cakephp so want to create my own using Cakephp.

Please help me.

--
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/groups/opt_out.

Re: hasMany through: my neverending problem?

Cake does not support multi-field primray keys, please read the hasManyBelongsToMany section of the model documentation http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasandbelongstomany-habtm 

True, except that Sam Clauw is not using HABTM, but a "HABTM Alternative"  or "HasMany Through" (http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasmany-through-the-join-model) which does need a single field PK.

On Tuesday, 25 February 2014 08:38:58 UTC+2, wilderland wrote:

Hi,

This are not bugs, this are features. The inflector only pluralizes/singularizes the last word of the table. Also the other point is not an issue. Cake does not support multi-field primray keys, please read the hasManyBelongsToMany section of the model documentation http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasandbelongstomany-habtm . In the way Cake handls updates and deletes a multi-field primary key will make more problem than will help. With a unique key on both columns and autoincrement PK's you can reach the same goal.

I hope that will help you.


Am Dienstag, 25. Februar 2014 05:11:50 UTC+1 schrieb Dakota:
In multi barrelled names (like AccessibilityAttraction) the Cake inflector only pluralizes/singularizes the last word. Easiest change would be to rename the model to AccessibilitiesAttraction.

Another issue I noticed, Cake does not currently support multi-field primary keys. So in your AccessibilitiesAttraction table you should add a separate id field as the pk.

--
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/groups/opt_out.

Re: hasMany through: my neverending problem?

Hi,

This are not bugs, this are features. The inflector only pluralizes/singularizes the last word of the table. Also the other point is not an issue. Cake does not support multi-field primray keys, please read the hasManyBelongsToMany section of the model documentation http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasandbelongstomany-habtm . In the way Cake handls updates and deletes a multi-field primary key will make more problem than will help. With a unique key on both columns and autoincrement PK's you can reach the same goal.

I hope that will help you.


Am Dienstag, 25. Februar 2014 05:11:50 UTC+1 schrieb Dakota:
In multi barrelled names (like AccessibilityAttraction) the Cake inflector only pluralizes/singularizes the last word. Easiest change would be to rename the model to AccessibilitiesAttraction.

Another issue I noticed, Cake does not currently support multi-field primary keys. So in your AccessibilitiesAttraction table you should add a separate id field as the pk.

--
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/groups/opt_out.

hasMany through: my neverending problem?

In multi barrelled names (like AccessibilityAttraction) the Cake inflector only pluralizes/singularizes the last word. Easiest change would be to rename the model to AccessibilitiesAttraction.

Another issue I noticed, Cake does not currently support multi-field primary keys. So in your AccessibilitiesAttraction table you should add a separate id field as the pk.

--
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/groups/opt_out.

Differences in 2.3.9 -> 2.4.5?

The missing aro/aco messages were converted from errors into exceptions at some point I think.

-mark

--
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/groups/opt_out.

Re: vcalendar appended to multipart email as text/calendar MIME type



2014-02-22 19:49 GMT-03:00 Brian Love <brian@brianflove.com>:
Hello,

Does anyone know if it is possible to attach a vcalendar via CakeEmail?  I have dug through the documentation and don't see a way to do this.  The vcalendar needs to be added as another part (as part of multipart email) to the email message body with the MIME content type of text/calendar.  Any suggestions would be helpful!

Thanks,
Brian

--
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/groups/opt_out.



--



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

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+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/groups/opt_out.

Re: phpCAS with CakePHP

Excuse me, but what is phpCas ?

Thanks.


2014-02-24 9:03 GMT-03:00 Stephen S <hellospeakman@gmail.com>:
Github[1] and the bakery[2]?



On 21 February 2014 20:41, Taylor Thomas <datater1@gmail.com> wrote:
So I have a phpCAS auth component we wrote and I want to make it available so people can use it. Where would be the best place I could do 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/groups/opt_out.



--
Kind Regards
 Stephen Speakman

--
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/groups/opt_out.



--



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

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+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/groups/opt_out.

Re: phpCAS with CakePHP

Github[1] and the bakery[2]?



On 21 February 2014 20:41, Taylor Thomas <datater1@gmail.com> wrote:
So I have a phpCAS auth component we wrote and I want to make it available so people can use it. Where would be the best place I could do 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/groups/opt_out.



--
Kind Regards
 Stephen Speakman

--
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/groups/opt_out.

Re: Restful Api

Start from here http://book.cakephp.org/2.0/en/development/rest.html

Dana subota, 22. veljače 2014. 21:57:03 UTC+1, korisnik Prabhat Patel napisao je:
Hi,

I want to create a restful api using cakephp. I was not able to find proper tutorial on google for this.

Is cakephp sutaible for Restful Api ?

As there is many other framework available for restful Api for example http://laravel.com, Frapi and etc. but i am familiar with cakephp so want to create my own using Cakephp.

Please help me.

--
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/groups/opt_out.

Sunday, February 23, 2014

Re: Any problems if foreign key is defined in the table creation SQL script?

I always view them separately. The model associations tell Cake how different tables are related but doesn’t enforce it. The SQL absolutely defines the relationships and enforces the integrity.  I wouldn’t omit the integrity as that is the golden source.


Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 23 Feb 2014, at 12:30, Sam <lightaiyee@gmail.com> wrote:

In cakephp, the table relationship is defined in the Models and no foreign key needs to be defined in the table creation SQL script. However, I have a SQL script created using MySQL workbench that defines the foreign key. Will this be a problem in cakephp?

--
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/groups/opt_out.

Any problems if foreign key is defined in the table creation SQL script?

In cakephp, the table relationship is defined in the Models and no foreign key needs to be defined in the table creation SQL script. However, I have a SQL script created using MySQL workbench that defines the foreign key. Will this be a problem in cakephp?

--
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/groups/opt_out.

Saturday, February 22, 2014

vcalendar appended to multipart email as text/calendar MIME type

Hello,

Does anyone know if it is possible to attach a vcalendar via CakeEmail?  I have dug through the documentation and don't see a way to do this.  The vcalendar needs to be added as another part (as part of multipart email) to the email message body with the MIME content type of text/calendar.  Any suggestions would be helpful!

Thanks,
Brian

--
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/groups/opt_out.

Restful Api

Hi,

I want to create a restful api using cakephp. I was not able to find proper tutorial on google for this.

Is cakephp sutaible for Restful Api ?

As there is many other framework available for restful Api for example http://laravel.com, Frapi and etc. but i am familiar with cakephp so want to create my own using Cakephp.

Please help me.

--
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/groups/opt_out.

Re: Socket Connection exception while attempting to use CakeEmail

Try to change the port in the email.php file
In my case, I have changed the port to 587 and that worked fine.



--
View this message in context: http://cakephp.1045679.n5.nabble.com/Socket-Connection-exception-while-attempting-to-use-CakeEmail-tp5520642p5717566.html
Sent from the CakePHP mailing list archive at Nabble.com.

--
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/groups/opt_out.

Differences in 2.3.9 -> 2.4.5?

I have a test that is failing on 2.4.5 but not 2.3.9...

The error is:

  • CAKEEXCEPTION
    AclNode::node() - Couldn't find Aro node identified by "Array ( [Aro0.model] => User [Aro0.foreign_key] => 1 ) "
    Test case: LuSpeciesControllerTest(testAddMissingField)
    Stack trace:
    /var/lib/cakephp_2.4.5/lib/Cake/Model/Permission.php : 82
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Component/Acl/DbAcl.php : 74
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Component/AclComponent.php : 110
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Component/Auth/ActionsAuthorize.php : 40
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Component/AuthComponent.php : 462
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Component/AuthComponent.php : 307
    AuthComponent::startup
    /var/lib/cakephp_2.4.5/lib/Cake/Utility/ObjectCollection.php : 132
    ObjectCollection::trigger
    /var/lib/cakephp_2.4.5/lib/Cake/Event/CakeEventManager.php : 247
    /var/lib/cakephp_2.4.5/lib/Cake/Controller/Controller.php : 675
    /var/lib/cakephp_2.4.5/lib/Cake/Routing/Dispatcher.php : 182
    /var/lib/cakephp_2.4.5/lib/Cake/Routing/Dispatcher.php : 160
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/ControllerTestCase.php : 271
    ControllerTestCase::_testAction
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/ControllerTestCase.php : 188
    /opt/www/jsposato/pbec/app/Test/Case/Controller/LuSpeciesControllerTest.php : 137
    /opt/www/jsposato/pbec/app/Test/Case/Controller/LuSpeciesControllerTest.php : 137
    LuSpeciesControllerTest::testAddMissingField
    /usr/share/php/PHPUnit/Framework/TestCase.php : 983
    /usr/share/php/PHPUnit/Framework/TestCase.php : 838
    /usr/share/php/PHPUnit/Framework/TestResult.php : 648
    /usr/share/php/PHPUnit/Framework/TestCase.php : 783
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestCase.php : 82
    /usr/share/php/PHPUnit/Framework/TestSuite.php : 775
    /usr/share/php/PHPUnit/Framework/TestSuite.php : 745
    /usr/share/php/PHPUnit/TextUI/TestRunner.php : 349
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestRunner.php : 60
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestSuiteCommand.php : 95
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 243
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 96
    /var/lib/cakephp_2.4.5/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php : 113
    /opt/www/jsposato/pbec/app/webroot/test.php : 94
Anyone have any ideas as to what changed in the core that may have caused 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/groups/opt_out.

Parse text / html saved in the database

Hi,

Can someone tell me the best way to parse the content, which is stored in a database using a WYSIWYG editor? 

Let's say, I have saved formatted text, which contains photos, lists, quotes, page break marker, etc. On the index page I need to extract one main photo and the first quote for each post. 

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/groups/opt_out.

Re: Dynamic menu content in layout

hi, 
You can put the tree menu directly in the layout or in a separate menu elements and include them in a specific place on your layout. 

If you want to highlight active link in your menu, you can do the following: 

// menu

<li class="<?php if($active == 'contacts') {?>active<?php } ?>">..link to contacts views</li>
<li class="<?php if($active == 'posts') {?>active<?php } ?>">..link to contacts views</li>
...

// in Posts/index.ctp
// in Posts/view.ctp
..
$this->set('active','posts');

If you want to dynamically add or modify the sidebar, use and expand the view blocks
http://book.cakephp.org/2.0/en/views.html#extending-views

--
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/groups/opt_out.

Dynamic menu content in layout

What I'm trying to do is to put two dynamic navigation menus in my CakePHP layout (default.ctp). The main menu should have multiple levels (with a dropdown functionality). The secondary menu is the one that shows the dropdown content of the main menu in a left sidebar.

I've read the CakePHP documentation but I'm confused how to fit those menus in the layout. I know that you have 4 different parts in a view layer (as documented in http://book.cakephp.org/2.0/en/views.html):

  • views
  • elements
  • layouts
  • helpers

But with the knowledge I have right now, I think none of this parts can be used to fill my needs. A navigation menu is a part that you only load ONES in a layout, so it isn't an element or a helper. So what's the best practice...

  • ... where to create the menu tree?
  • ... where / how to echo it in the layout file?

Can anybody clearify my issue? Thanks in advance! ;)

--
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/groups/opt_out.

Re: Is there any online bake?

Also take a look at

http://patisserie.keensoftware.com/en



sâmbătă, 22 februarie 2014, 02:21:52 UTC+2, Robert Gravel a scris:
I used this when i developed mu 1.3 application. http://cakeapp.com


On Fri, Feb 21, 2014 at 9:45 AM, MihaiTL <maf...@gmail.com> wrote:
Hi there!

There is CRUD plugin I stumbled upon it and I am going to study today.

It can be downloaded from

https://github.com/FriendsOfCake/crud

Hope it does what I need.

Regards!



luni, 17 februarie 2014, 16:36:10 UTC+2, MihaiTL a scris:
Let's name it WebBake ==> WeBake



luni, 17 februarie 2014, 13:21:42 UTC+2, MihaiTL a scris:
Hi all,

Something like a service application hosted on localhost or on your hosted development server with several plugins for different versions of CakePHP.

SuperBake is an inspiration. Also Gii Module Generator from yii.

Without a shell file like bake.

Regards!

luni, 17 februarie 2014, 12:47:06 UTC+2, MihaiTL a scris:
Hi,

I updated php and the files from /usr/share/php aren't as they should be.

I remember when exploring yii that there was an application / plugin (like bake) that permited creation of models, views, controllers and many more but using a web interface.

Do you know something similar for cakePHP? It can be made? I am new so I cannot contribute to 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+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/groups/opt_out.

--
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/groups/opt_out.