load model from another module

2014-08-26 Thread Hasrul Mikael
Hai, I'm new in CakePHP. Currently I got a problem in my task. I had assigned to create a Plugin name UserManagement and Login in app/Plugin/ The Plugin UserManagement already has completed. But now I having a problem in Plugin Login. Actually I need to use User Model from Plugin

Re: CakePHP 3.0.0-beta1 released

2014-08-26 Thread José Lorenzo
You can expect that. We have no plans to change the current API unless we found bugs or problems that would impede a happy future for this version. The on;y directory change that you can expect is that we are moving Console/Command to just Shell On Monday, August 25, 2014 5:17:58 AM UTC+2, Dr.

Re: CakePHP 3.0 orm query question

2014-08-26 Thread José Lorenzo
$query = $table-find() $query-select(['distance' = $query-newExpr($rawSQL)])-having(['distance =' = $distance]) On Monday, August 25, 2014 2:59:01 AM UTC+2, Andras Kende wrote: Hello, Im trying to convert this geolocator query from 2.5 to 3.0 orm but no luck so far. CakePHP 2.5, this

Re: CakePHP 3.0.0-beta1 released

2014-08-26 Thread Dr. Tarique Sani
Thanks. Console/Command to Shell would be logical. After convincing a client to use v3 It is difficult to explain why composer update broke everything or anything ;-) T On Tue, Aug 26, 2014 at 1:38 PM, José Lorenzo jose@gmail.com wrote: You can expect that. We have no plans to change the

Re: CakePHP 3.0 orm query question

2014-08-26 Thread Andras Kende
Hi Jose, I got it working as : $query = $this-find('all', array( 'limit' = 200, 'order' = array( 'distance' = 'ASC', 'name' = 'ASC', ),

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

Re: migration issue

2014-08-26 Thread 'Dallas' via CakePHP
Andras, Thank you, but I already changed this per the stackflow post, and I am still getting the error. I will keep searching. D On Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote: does anyone know how this should be ?php e($html-image('index_01.jpg'));?/td and ?php

unidentified index

2014-08-26 Thread 'Dallas' via CakePHP
In migrating from 1.2.5 to 2.5.3 I am getting undefined index for input of name, business name, phone and email. I updated form as much as possible - but if I use DataHelper - I can no longer use array - is there a quick way to fix this using *isset() **or do i need to rewrite - here is the

Re: unidentified index

2014-08-26 Thread Stephen S
You don't need to set the value in the input, instead you can do it from the controller. if($this-request-is('post')) { // Logic to process the form submission } else { $this-request-data = $this-Model-read(null, $id); } Change this part echo $this-Form-create(null, array('url' = $loc));

Re: migration issue

2014-08-26 Thread Stephen S
It doesn't look like you're using the request handler in this controller or the construct method, why not remove both? CakePHP 2.x controllers don't really need to use construct, beforeFilter is usually more than sufficient. Hope this helps On 26 August 2014 17:31, 'Dallas' via CakePHP

Re: migration issue

2014-08-26 Thread Stephen S
Also your index method is outside of your class, is this deliberate? On 26 August 2014 19:48, Stephen S hellospeak...@gmail.com wrote: It doesn't look like you're using the request handler in this controller or the construct method, why not remove both? CakePHP 2.x controllers don't really

CAKEPHP Image slider and Menu

2014-08-26 Thread papalifegr
Hello Community, I am looking for an Image Slider and Menu for my Project based on CAKEPHP. Could someone give me solution ? 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

Re: CAKEPHP Image slider and Menu

2014-08-26 Thread Stephen S
You'd do this with Javascript / jQuery, not sure what you mean by menu. Most solutions for any web projects should be sufficient, a quick google will show you results i.e. jQuery Carousel. On 26 August 2014 19:26, papalifegr papazisi...@hotmail.com wrote: Hello Community, I am looking for an

Re: unidentified index

2014-08-26 Thread 'Dallas' via CakePHP
Hello Stephan, Thank you this is helpful. On Tuesday, August 26, 2014 1:50:04 PM UTC-4, Dallas wrote: In migrating from 1.2.5 to 2.5.3 I am getting undefined index for input of name, business name, phone and email. I updated form as much as possible - but if I use DataHelper - I can no