Re: CakePHP 3.0 autocomplete

2014-09-30 Thread José Lorenzo
I would have to see your code to understand what your are doing On Tuesday, September 30, 2014 3:17:26 PM UTC+2, Radharadhya Dasa wrote: Thank you. Silly things sometimes hard to find... echo $this-Form-autocomplete('name'); Now I do not have any error message but no code is generated the

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
1. /src/View/Widget/Autocomplete.php ?php namespace App\View\Widget; use Cake\View\Widget\WidgetInterface; use Cake\View\Form\ContextInterface; class Autocomplete implements WidgetInterface { protected $_templates; public function __construct($templates) { $this-_templates =

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Radharadhya Dasa
Show us the from template for autocomplete I do not have anything else. Should I? Rrd T On Tue, Sep 30, 2014 at 7:59 PM, Radharadhya Dasa r...@1108.cc wrote: 1. /src/View/Widget/Autocomplete.php ?php namespace App\View\Widget; use Cake\View\Widget\WidgetInterface; use

Re: CakePHP 3.0 autocomplete

2014-09-30 Thread Dr. Tarique Sani
Yes, you should have a form template called autocomplete which your widget is using. See http://book.cakephp.org/3.0/en/core-libraries/helpers/form.html#customizing-the-templates-formhelper-uses and http://www.sanisoft.com/blog/2014/08/11/twitter-bootstrap-forms-cakephp-3/ Specifically Step 2

UserTools plugin for CakePHP 3.0

2014-09-13 Thread Florian Krämer
change. Just make sure that your DB table matches what the plugin expects *or* configure the fieldmap of the behavior to reflect your tables fields. If you don't have an users table yet, the plugin comes with a DB migration for the official CakePHP 3.0 migrations plugin. I don't have an active 3.0

CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread Nguyễn Anh Tuấn
Dear all. This so stupid but please help me. In my cell: *app/src/View/Cell/MyCell.php* i'm use public $helpers = ['Html']; In my cell view: *app/src/Template/Cell/MyCell/display.ctp* ?php $this-Html-link('name', ['controller' = 'mycontroller', 'action' = 'myaction', 'param']); // This one work

Re: CakePHP 3.0 beta 1: Please help to use Html helper in function on view

2014-09-02 Thread José Lorenzo
Where did you put that generateLink() function? Helpers can only be used in the templates and from other helpers. What you are trying to do is not possible. You can create other helpers that can call the Html helper internally On Tuesday, September 2, 2014 1:57:30 PM UTC+2, Nguyễn Anh Tuấn

Re: CakePHP 3.0 orm query question

2014-08-26 Thread José Lorenzo
` - -118.244)) / 180) * 1, 5) AS `distance` FROM `hockeypickup`.`locations` AS `Location` HAVING distance 100 ORDER BY `distance` ASC, `name` ASC LIMIT 200 on CakePHP 3.0 this is far as I got : $query = $this-find('all', array( 'limit' = 200, 'order' = array( // 'distance' = 'ASC', 'name

Re: CakePHP 3.0 orm query question

2014-08-26 Thread Andras Kende
) * (`lng` - -118.244) * (`lng` - -118.244)) / 180) * 1, 5) AS `distance` FROM `hockeypickup`.`locations` AS `Location` HAVING distance 100 ORDER BY `distance` ASC, `name` ASC LIMIT 200 on CakePHP 3.0 this is far as I got : $query = $this-find('all', array( 'limit' = 200

CakePHP 3.0 - Get data from event subject

2014-08-26 Thread Dr. Tarique Sani
Trying something very simple here In my Listener I am trying to get $event-subject()-id but I keep getting Table App\Model\Table\PostsTable is not associated with id What am I missing here? Tarique -- = Hire a CakePHP dev team :

Re: CakePHP 3.0 - Get data from event subject

2014-08-26 Thread José Lorenzo
You probably want to use $event-data instead. Also, remember that listeners get the data as arguments, so if you want the entity Id add the $entity as the second argument of the function. On Tuesday, August 26, 2014 2:00:49 PM UTC+2, Dr. Tarique Sani wrote: Trying something very simple here

Re: CakePHP 3.0 - Get data from event subject

2014-08-26 Thread Dr. Tarique Sani
Thanks $event-data does the trick, $entity as second argument does not appear with Id hydrated. Cheers Tarique On Tue, Aug 26, 2014 at 6:08 PM, José Lorenzo jose@gmail.com wrote: You probably want to use $event-data instead. Also, remember that listeners get the data as arguments, so if

CakePHP 3.0 orm query question

2014-08-24 Thread Andras Kende
BY `distance` ASC, `name` ASC LIMIT 200 on CakePHP 3.0 this is far as I got : $query = $this-find('all', array( 'limit' = 200, 'order' = array( // 'distance' = 'ASC', 'name' = 'ASC', ), 'conditions' = $conditions, 'select

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Dr. Tarique Sani
Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used with bootstrap, the two form helpers can be found here: • CakePHP 2 - https://github.com

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Mikaël Capelle
=form-group input {{type}}{{required}}{{content}}/div’, or create a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing

CakePHP 3.0 fatal error

2014-08-04 Thread Jipson Thomas
Hi Team, After a composer update command on my cakephp 3.0 I am getting a fatal error as following. *Warning*: require(/Applications/XAMPP/xamppfiles/htdocs/prms.panovus.com/public_html/vendor/cakephp/cakephp/src/bootstrap.php): failed to open stream: No such file or directory

Improve consistency - Compatibility Breaks in CakePHP 3.0

2014-08-04 Thread nethues
In more than a few places compatibility was broken to create better cohesion across CakePHP. You can write the configuration as : $obj-config(); $obj-config('engine'); $obj-config(['key' = 'value', 'key2' = 'value']); $obj-config('key', 'value'); All classes that have settings can be

Re: CakePHP 3.0 fatal error

2014-08-04 Thread José Lorenzo
The config folder was moved out of src, it should be placed on the root folder with the name config: https://github.com/cakephp/app/tree/master/config On Monday, August 4, 2014 12:24:06 PM UTC+2, Jipson Thomas wrote: Hi Team, After a composer update command on my cakephp 3.0 I am getting

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Dr. Tarique Sani
, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used with bootstrap, the two form helpers can be found here: • CakePHP 2

Re: CakePHP 3.0 fatal error

2014-08-04 Thread Jipson Thomas
/cakephp/app/tree/master/config On Monday, August 4, 2014 12:24:06 PM UTC+2, Jipson Thomas wrote: Hi Team, After a composer update command on my cakephp 3.0 I am getting a fatal error as following. *Warning*: require(/Applications/XAMPP/xamppfiles/htdocs/ prms.panovus.com/public_html/vendor

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-04 Thread Dr. Tarique Sani
capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used with bootstrap, the two form helpers can be found here: • CakePHP 2 - https://github.com/Holt59/cake

CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Mikaël Capelle
Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used with bootstrap, the two form helpers can be found here: - CakePHP 2 - https://github.com/Holt59/cakephp-bootstrap3-helpers/blob

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Thomas von Hassel
wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used with bootstrap, the two form helpers can be found here: * CakePHP 2 - https://github.com/Holt59/cakephp-bootstrap3-helpers

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Mikaël Capelle
, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com javascript: wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made to be used

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread José Lorenzo
{{type}}{{required}}{{content}}/div’, or create a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Mikaël Capelle
this: 'inputContainer' = 'div class=form-group input {{type}}{{required}}{{content}}/div’, or create a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread José Lorenzo
’, or create a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made

Re: CakePHP 3.0 - Correct way to append / prepend HTML on FormHelper

2014-08-01 Thread Mikaël Capelle
a custom widget, depending on how much customisation you want On 01 Aug 2014, at 12:24, Mikaël Capelle capelle...@gmail.com wrote: Hi everyone, I am porting my CakePHP 2.0 helpers to CakePHP 3.0 and I am facing some troubles with my custom FormHelper. The helpers are made

CakePHP 3.0 Validation ?

2014-07-28 Thread Mikaël Capelle
Hi everyone, I'm trying to build a new CakePHP 3 application but I didn't manage to get the data validation working... I followed the CakePHP 3.0 book, and particulary this page http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-two.html but it didn't help. Currently, my Table

Re: CakePHP 3.0 Validation ?

2014-07-28 Thread José Lorenzo
'); On Monday, July 28, 2014 10:20:06 PM UTC+2, Mikaël Capelle wrote: Hi everyone, I'm trying to build a new CakePHP 3 application but I didn't manage to get the data validation working... I followed the CakePHP 3.0 book, and particulary this page http://book.cakephp.org/3.0/en/tutorials

Re: CakePHP 3.0 Validation ?

2014-07-28 Thread Mikaël Capelle
, July 28, 2014 10:20:06 PM UTC+2, Mikaël Capelle wrote: Hi everyone, I'm trying to build a new CakePHP 3 application but I didn't manage to get the data validation working... I followed the CakePHP 3.0 book, and particulary this page http://book.cakephp.org/3.0/en/tutorials-and-examples/blog

Re: CakePHP 3.0 Validation ?

2014-07-28 Thread José Lorenzo
to get the data validation working... I followed the CakePHP 3.0 book, and particulary this page http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-two.html but it didn't help. Currently, my Table is as follow: class DevoirsTable extends Table { public function

Re: fatal error after baking application using cakephp 3.0

2014-07-18 Thread raji gudivada
@José Lorenzo Thanks alot My problem is solved.changed cakephp version from 2.5.0 to 2.5.2 -- 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

fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am getting error as Unsupported operand types D:\xampp\htdocs\lib\Cake\View\Helper\FormHelper.php Line:1802. Please help me. Thanks in advance. --

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
That error does not correspond to CakePHP 3.0 What version are you actually using? On Thursday, July 17, 2014 2:45:39 PM UTC+2, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry i am using cakephp 2.5.o version On Thursday, July 17, 2014 6:15:39 PM UTC+5:30, raji gudivada wrote: Hi I am new to cakephp and i used baking concept for my tables. Now i got pages generated but i am unable to do edit and view actions.I am getting error as Unsupported operand

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread raji gudivada
Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- 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

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread euromark
So what is in that line? debug() it properly Am Donnerstag, 17. Juli 2014 15:10:13 UTC+2 schrieb raji gudivada: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: fatal error after baking application using cakephp 3.0

2014-07-17 Thread José Lorenzo
Please update to the lastest 2.5 version, what you experience is a known bug of that version On Thursday, July 17, 2014 3:10:13 PM UTC+2, raji gudivada wrote: Sorry @ jose Lorenzo My current version is cakephp 2.5.0. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

CakePHP 3.0 - Custom helpers not working

2014-06-11 Thread Mikaël Capelle
Hi everyone, I'm trying to update my helpers to CakePHP 3.0 but each time I try to load them I get the following error : Error: *Html* could not be found. Error: Create the class *Html* below in file: App\View\Helper\Html.php My AppController looks like : public $helpers = [ 'Html

Re: CakePHP 3.0 - Custom helpers not working

2014-06-11 Thread José Lorenzo
Can you open a ticket in github about it? I'll take a look at it as soon as possible On Wednesday, June 11, 2014 10:21:20 PM UTC+2, Mikaël Capelle wrote: Hi everyone, I'm trying to update my helpers to CakePHP 3.0 but each time I try to load them I get the following error : Error: *Html

CakePHP 3.0, Trying to implement a project using EAV data model.

2014-06-10 Thread Aman Srivastava
I am working on a project which is based on EAV data model like magento. I am currently using cakePHP 2.4, but waiting for stable release of cakePHP 3.0 as it has major changes in it. Will it support EAV or any behavior in model to work as EAV or something similar to that. I am eagerly waiting

Re: CakePHP 3.0, Trying to implement a project using EAV data model.

2014-06-10 Thread José Lorenzo
data model like magento. I am currently using cakePHP 2.4, but waiting for stable release of cakePHP 3.0 as it has major changes in it. Will it support EAV or any behavior in model to work as EAV or something similar to that. I am eagerly waiting to implement it using 3.0 -- Like Us

CakePHP 3.0-dev3 Xml Request Handling

2014-05-22 Thread mark_story
For those reading at home, reuben opened an issue and that issue has been fixed. -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

CakePHP 3.0-dev3 Request Routing

2014-05-20 Thread Reuben
Hi I don't do request router a lot, but I thought I'd try something with CakePHP 3.0, and am currently working with the dev3 release. I was under the impression that if you didnt pass any parameters to Router::parseExtensions(), then it would parse all extensions, including the basics, like

CakePHP 3.0-dev3 Xml Request Handling

2014-05-20 Thread Reuben
Hi I'm wondering what the correct method of serializing models for XML output should be? After getting XML request routing working, via explicitly specifying xml in the Router::parseExtensions() call, I'm getting an error when doing a serialize on a paginated model. The error is response

Re: CakePHP 3.0-dev3 Request Routing

2014-05-20 Thread euromark
don't do request router a lot, but I thought I'd try something with CakePHP 3.0, and am currently working with the dev3 release. I was under the impression that if you didnt pass any parameters to Router::parseExtensions(), then it would parse all extensions, including the basics, like xml, json

Re: CakePHP 3.0-dev3 Request Routing

2014-05-20 Thread Reuben Helms
don't do request router a lot, but I thought I'd try something with CakePHP 3.0, and am currently working with the dev3 release. I was under the impression that if you didnt pass any parameters to Router::parseExtensions(), then it would parse all extensions, including the basics, like xml

Re: CakePHP 3.0 error

2014-03-12 Thread Борислав Събев Borislav Sabev
I can bet some money that this could be somehow related to: https://groups.google.com/forum/#!topic/cake-php/hhnJEXDSGzU Good to know you've solved your issue btw. On Tuesday, 11 March 2014 19:19:01 UTC+2, André Luis wrote: Hi people, I am trying to follow the Blog tutorial from cakephp 3.0

CakePHP 3.0 error

2014-03-11 Thread André Luis
Hi people, I am trying to follow the Blog tutorial from cakephp 3.0 website, but i am getting an error wich isnt showed up, also its not on the log... The problem is whem i try to retrieve the articles with $this-Articles-find('all');, whem have this line the browser says that this page

Re: CakePHP 3.0 error

2014-03-11 Thread André Luis
Sorry for my incovenience, but it was a version error, i dont know why but i was using php 5.4.3, but now with 5.5 its ok. Thanks anyway Em terça-feira, 11 de março de 2014 14h19min01s UTC-3, André Luis escreveu: Hi people, I am trying to follow the Blog tutorial from cakephp 3.0 website

Re: CakePHP 3.0 error

2014-03-11 Thread José Lorenzo
14h19min01s UTC-3, André Luis escreveu: Hi people, I am trying to follow the Blog tutorial from cakephp 3.0 website, but i am getting an error wich isnt showed up, also its not on the log... The problem is whem i try to retrieve the articles with $this-Articles-find('all');, whem have

Re: Help saving data with CakePHP 3.0 ORM

2014-02-05 Thread Alberto Pagliarini
Yeah! using Entity class and $_accessible property all works as expected! thanks José 2014-02-04 José Lorenzo jose@gmail.com: Currently that is the most confusing part of the ORM and I'd like to make it easier to understand in the next release preview. By default entities are protected

Re: Help saving data with CakePHP 3.0 ORM

2014-02-05 Thread Alberto Pagliarini
Hi Carlos, PHP 5.4 permits the ['key' = 'value'] array syntax. The issue I had was resolved by using Entity class and $_accessible property. 2014-02-04 Carlos Javier Baeza Negroni carlos.ba...@gmail.com: Also check the array: $data = ['name' = 'Walter White']; Should be: $data =

Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread bato
Hi, I'm starting to play with 3.0 ORM and I encountered some issues saving data. I have two simple tables: - authors with fields id and name - posts with fields id, title, text and author_id I have fill tables with two authors and some posts by hand to try retrieving data with cake.

Re: Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread José Lorenzo
Currently that is the most confusing part of the ORM and I'd like to make it easier to understand in the next release preview. By default entities are protected agains mass assignment, this means that you cannot create them without configuring what properties can be set from the request. You

Re: Help saving data with CakePHP 3.0 ORM

2014-02-04 Thread Carlos Javier Baeza Negroni
Also check the array: $data = ['name' = 'Walter White']; Should be: $data = array('name' = 'Walter White'); best regards. 2014-02-04 José Lorenzo jose@gmail.com: Currently that is the most confusing part of the ORM and I'd like to make it easier to understand in the next release

<    1   2   3