Re: How to set Cake 3.0 to save with different date format ?

2015-05-11 Thread Joe T.
uld just use the setter to make a Time object & when i access the field, call ->format() on it with the format i need... Suggestions for a more clever/elegant approach? Thanks for the help. -joe On Monday, 11 May 2015 03:42:42 UTC-4, José Lorenzo wrote: > > This line means that you ar

Re: How to set Cake 3.0 to save with different date format ?

2015-05-10 Thread Joe T.
atter what i do, the MySql UPDATE uses the 'm/d/Y' string instead of the date object: UPDATE listings SET ready_date = '06/01/2015' , modified = '2015-05-11 05:00:54' WHERE id = 20 What do i try next? Thanks, joe t. On Thursday, 2 April 2015 14:56:29 UTC-4, Jos

Cake 3: Map Entity mutators/virtuals with a database type

2015-04-25 Thread Joe T.
rovide database types. Is there any clean/clever/elegant way to do this? i realize some virtuals probably can't realistically do this (such as concatenating several fields together), but two of those are "date-ish", and based on actual DATE-type columns. Any ideas?

Re: 3.x: SessionHelper deprecated, what's the new version of this?

2015-04-23 Thread Joe Theuerkauf
Kende" a écrit : > >> Try: >> Flash->render(); ?> >> >> https://github.com/cakephp/app/blob/master/src/Template/Layout/default.ctp#L49 >> >> Andras Kende >> >> >> On Apr 21, 2015, at 8:56 PM, Joe T. wrote: >> >> Looks like Sess

3.x: SessionHelper deprecated, what's the new version of this?

2015-04-21 Thread Joe T.
Looks like SessionHelper is/will be deprecated for 3.1 and request->session() is recommended... i have this chunk of code found in my Layout/default.ctp: Session->flash(); ?> fetch('content'); ?> i tried $this->request->session()->flash() but get a fatal error: *Erro

Re: Still having trouble with saving BelongsToMany data

2015-03-21 Thread Joe T.
José, Kevin, Breakthrough at last! https://github.com/cakephp/cakephp/issues/6100 Fixed validation & other minor discrepancies in Table/Entity classes that may not have even affected things much, but didn't get any better results. Finally i had nothing left, so tried resetting indexes on the as

Re: Still having trouble with saving BelongsToMany data

2015-03-13 Thread Joe T.
UPDATE i worked with my form inputs and the Controller a bit, and i DO have functioning saves working again (for the next ten minutes until it breaks again). i'll describe what i had to do, and why i don't like it. Form inputs: Basically, i have to scrap the idea of the ORM carrying data to the

Re: Still having trouble with saving BelongsToMany data

2015-03-13 Thread Joe T.
tion and the pivot, where i only want to update one end, and the pivot table. So, i'll monkey around with ->link() some more tonight & see if there's any more progress discussing it with Mark. i'll follow up with any progress. :) Thanks! -joe On Friday, 13 March 2015 13:13

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
ongstomany-associations > > Specifically where it shows the calls to `Users->link($article, [$user])` > > On Thursday, March 12, 2015 at 3:09:54 PM UTC+1, Joe T. wrote: >> >> Somehow, i'm totally unsurprised. >_< >> >> i'll take a look at the sa

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
eate a Student & want to link it to Courses, you have to provide ALL the data for every Course, else the save will fail. On Thursday, 12 March 2015 09:19:53 UTC-4, heavyKevy wrote: > > Joe, > I tried doing a composer update and test and it is not broken for me. > > https://ww

Re: Still having trouble with saving BelongsToMany data

2015-03-12 Thread Joe T.
ull/6030 March 10: https://github.com/cakephp/cakephp/pull/5905 The most recent PR was March 11 fixing a link in a comment. Not a likely candidate. ;) If you want me to try going backward prior to any of those, let me know how. -joe On Thursday, 12 March 2015 04:29:17 UTC-4, José Lorenzo wrote: > >

Re: Still having trouble with saving BelongsToMany data

2015-03-11 Thread Joe T.
the entity. Is there any chance it's related to this issue? https://github.com/cakephp/cakephp/issues/6050 Now what? On Sunday, 8 March 2015 00:40:49 UTC-5, Joe T. wrote: > > Kevin, > > i'm so grateful for all your effort & ideas. i don't fully grasp > conditi

Re: Still having trouble with saving BelongsToMany data

2015-03-07 Thread Joe T.
ociated table. If there is a way to do this with the ORM's save options, it doesn't appear to be documented. Obviously, i followed the documentation to the letter, but my assumption of its behavior was wrong. Thanks again! -joe On Saturday, 7 March 2015 13:21:56 UTC-5, heavyKevy wrote:

Re: Still having trouble with saving BelongsToMany data

2015-03-06 Thread Joe T.
rm & generate the entity so i only send data to Listings & ListingsAttributes? Or am i forced to use the saved ID from Listings & do a separate replace/save to ListingsAttributes? Thanks for the continued help. -joe -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us o

Re: Still having trouble with saving BelongsToMany data

2015-03-05 Thread Joe T.
Kevin, i can do that, but it doesn't make sense to me. i don't want my Listing to make any changes to the Attributes, so why is it attempting to do so? If i disable validation for updates, they won't be validated when the admin actually DOES edit an Attribute. Maybe a full end-to-end associatio

Re: Still having trouble with saving BelongsToMany data

2015-03-04 Thread Joe T.
o *stop at the joint table*. So, does that offer any insight to what's going on? Hope to hear from you, otherwise i'll see who's around IRC tomorrow. Thank you. On Tuesday, 3 March 2015 14:05:11 UTC-5, José Lorenzo wrote: > > Can you show a debug of the resulting entity

Re: Still having trouble with saving BelongsToMany data

2015-03-04 Thread Joe T.
t you know what i missed. ;) Thanks for the continued help. -joe On Wednesday, 4 March 2015 03:18:03 UTC-5, heavyKevy wrote: > > Joe, > did you make sure that you modified all of the files I mentioned? > > As I mentioned, it works for me allowing me to add with the join data. &g

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread Joe T.
he #cakephp IRC channel in freenode, I think we can help you > faster :) > > On Tuesday, March 3, 2015 at 6:01:25 PM UTC+1, Joe T. wrote: >> >> José >> i appreciate your response. Please forgive my frustration, i'm *trying* >> to learn what i'm doing

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread Joe T.
nto the Listing Entity. i will try again tonight, but i'm at a loss for what i can do differently. Kevin's help is the only thing that has even *partially* worked so far, but you're telling me that's doing it wrong. So what's left? Thank you. On Tuesday, 3 M

Re: Still having trouble with saving BelongsToMany data

2015-03-03 Thread Joe T.
was not in the documentation? It would be > helpful to add it to the docs so other don't get stuck as well in the same > problem > > On Tuesday, March 3, 2015 at 7:25:01 AM UTC+1, Joe T. wrote: >> >> i'm REALLY sorry for the delay getting back to you. And unfortunat

Re: Still having trouble with saving BelongsToMany data

2015-03-02 Thread Joe T.
data with everything else. If you're moving on, i totally understand. But if you'd like to look at the code directly, let me know. i'll have to put a version online without sensitive info in it... Thanks for at least getting me this far. :) -joe On Wednesday, 25 Feb

Re: Still having trouble with saving BelongsToMany data

2015-02-24 Thread Joe T.
tion. i HAVE tried it in either *newEntity* or *patchEntity* calls, and both together. No luck. ~whew~ The result of all this: the Listings record saves. But i'd already gotten that far before. Still no ListingsAttributes records. 1. Your last post mentions removing validation for

Re: Still having trouble with saving BelongsToMany data

2015-02-23 Thread Joe T.
i took a look at the issues tonight myself and saw the same. i'll run the update & re-bakes tomorrow to test it out. Thanks for all your help. -joe On Tuesday, 24 February 2015 02:09:55 UTC-5, heavyKevy wrote: > > Joe, > Looking more carefully, I see that the tickets are rece

Re: Still having trouble with saving BelongsToMany data

2015-02-23 Thread Joe T.
Thanks again! i'll try to move forward by kludging around this with a separate Entity for ListingsAttributes & see if that manages to work. -joe On Monday, 23 February 2015 15:11:05 UTC-5, heavyKevy wrote: > > You are welcome... > > By the way, others have already submitted

Re: Still having trouble with saving BelongsToMany data

2015-02-23 Thread Joe T.
ration that gets that far, but nothing i've done gets the ListingsAttributes record to work. Thank you so much for checking into this with me. -joe On Monday, 23 February 2015 13:55:16 UTC-5, heavyKevy wrote: > > Saving works fine with using the _ids, but as soon as I add join da

Re: Still having trouble with saving BelongsToMany data

2015-02-22 Thread Joe T.
spite the established associations. Thanks for at least investigating it further. i just wish i knew what to do about it. -joe On Sunday, 22 February 2015 17:39:52 UTC-5, heavyKevy wrote: > > I took the time to construct a test project with the 3 join tables and was > able to get dat

Re: Still having trouble with saving BelongsToMany data

2015-02-22 Thread Joe T.
a save. i suppose i'll have to force it in by creating a separate entity, but i don't think that's how the Cake magic is supposed to work... Thanks for following up, and (at least tentatively) confirming i'm not insane with this issue. ;-) -joe On Sunday, 22 February 2015

Still having trouble with saving BelongsToMany data

2015-02-21 Thread Joe T.
e: 'Off-street' (set in the form) When i log *$listing->jsonSerialize()*, it looks like this: Array ( // Various fields about the listing, and this section for the attributes: [attributes] => Array ( [0] => Array (

Re: 3.0 - Cakephp plugins gone from /plugins

2015-01-31 Thread Joe T.
figure thinks i'm trying to load a Plugin when i use the ".php" extension, or how i got along until now with the old way working, but the site is finally loading again. -joe PS: Looking through Core/Configure, i noticed my IDE detected an undefined $config variable in Configure::

3.0 - Cakephp plugins gone from /plugins

2015-01-27 Thread Joe T.
ber, file, or anything indicating what the problem is, and i'm pretty sure "app" isn't a plugin. It's thrown by (semi-obviously) MissingPluginException, and i see references to that in the Plugin loader (also somewhat obvious)... So what plugin is failing to load that ide

Re: 3.0: Saving new entity with belongsToMany data

2015-01-22 Thread Joe T.
ehind a login i'd rather provide privately *if you can* take a little time to see it happening. If you don't have the time, i understand. Free advice & help has its limitations. You guys are already very generous helping me & the rest of the group. :) Oh, hey, i just discov

Re: 3.0: Saving new entity with belongsToMany data

2015-01-21 Thread Joe T.
Did i get lost in the shuffle? i confess i've been busy with other things myself, but have been checking here to see if there was any response with some ideas what i'm doing wrong... Any help? Please? :) Always appreciated. -joe On Tuesday, 13 January 2015 08:04:37 UTC-5, Jo

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-13 Thread Joe T.
converting the existing user record's password without setting up a new account. i don't know if there are that many options. Security sacrifices a good amount of flexibility in cases like this. -joe On Sunday, 11 January 2015 06:52:07 UTC-5, tech_me wrote: > > > If '123

Re: 3.0: Saving new entity with belongsToMany data

2015-01-13 Thread Joe T.
https://bitbucket.org/cautionbug/kodiak-investments The stuff i'm having trouble with is behind an admin login. If you need access, i'd prefer to send that privately. Thanks for responding & being willing to take a look. -joe On Tuesday, 13 January 2015 03:38:36 UTC-5, José

Re: 3.0: Saving new entity with belongsToMany data

2015-01-12 Thread Joe T.
Wondering if someone can help me take a closer look at this... i'm still not having any luck & can't really get much forward progress until i understand this. If you need more information to determine suggestions, let me know. Any suggestions are appreciated. -joe On Tuesda

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2015-01-05 Thread Joe T.
t to your needs, i meant the way the tutorial demonstrates the Form builder for CTP may not match exactly what you need for TAL. i'm unfamiliar with that, so if ignore that part if it was more confusing. :) Hope that clears things up a *little*. :) -joe On Sunday, 4 January 2015 01:59:

Re: 3.0: Saving new entity with belongsToMany data

2014-12-29 Thread Joe T.
, "value": "Off-street" } } This is progress! The associated data wasn't in previous debug data. So what am i still missing that it won't save that data? Remember, `value` is optional to the data record, it's controlled by the UI. So both of those reco

Re: CakePHP 2.0 authentication(login) without ctp files but other types

2014-12-23 Thread Joe T.
going to match '123' in the database after Auth encrypts it. Look here for how to set up adding/editing users: http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html Obviously, adapt the CTP form to your TAL needs. Hope that helps... -joe t. On Monda

Re: 3.0: Saving new entity with belongsToMany data

2014-12-22 Thread Joe T.
, ['associated' => ['ItemAttrs.ListingsAttrs']]); */ if ($this->Listings->save($listing)) { // etc. } else { throw new Exception... } What else can i try? i appreciate the help. -joe On Friday, 19 December 2014 11:29:12 UTC-5, José Lorenzo wrote: > > You sh

3.0: Saving new entity with belongsToMany data

2014-12-18 Thread Joe T.
i've seen a couple similar threads about this, but not my exact problem. i'm trying to follow the guide here: http://book.cakephp.org/3.0/en/orm/saving-data.html#converting-request-data-into-entities and coming up short. *i'm not getting any errors* (except a date field that constantly fails i

Re: 3.0b3 - label[for] & input[id] discrepancies

2014-12-03 Thread Joe T.
27;m providing the field's name in dot-notation to label() & checkbox(), and calling $this->Form->domId on the name for the checkbox's id attribute. The for & id match. It's not exactly as elegant as how other inputs handle things, but i can live with it. Thanks for

Re: 3.0b3 - label[for] & input[id] discrepancies

2014-12-02 Thread Joe Theuerkauf
sure how to get the results i needed using the templating system (especially the additional text input). Which brings me back to my question: if i'm providing the attributes myself, but Form helper is converting some of them with _domId() but not others, how do i get the [for] to match the

Decoupling cake php applications

2014-12-02 Thread Joe Appleton
Hi, I've been doing some research on how to decouple cakePHP applications. The main issue seems to be models being communicated via related models and controllers. E.G. I often see things like $this->user->post->comment->add() being implemented. So far I have found Carl Sutton's talk, where he

3.0b3 - label[for] & input[id] discrepancies

2014-12-01 Thread Joe Theuerkauf
ich is fine, i also need to customize some other parts of the HTML anyway). *Question 1*: In FormHelper::input(), shouldn't the ID attribute be adjusted with _domId *after* the $options array is complete? Or is there an issue in checkbox() that it's not outputting the generated ID to HT

Re: Conditionally set defaultConnectionName

2014-11-03 Thread Joe Theuerkauf
Heh, just for the record, the arguments were reversed: ConnectionManager::alias('admin', 'default'); ($from, $to) i'm sure you were just making sure i'm paying attention. ;-) It's working. Very grateful for the help. -joe On Monday, 3 November 2014 04:02:0

Re: Conditionally set defaultConnectionName

2014-11-02 Thread Joe Theuerkauf
Sorry, what i meant was, i don't plan to use defaultConnectionName the same WAY i was using it for the Captcha question. If it's a legit option, i'll use it, but i see your point about not using defaultConnectionName AND a connection alias. On Sunday, 2 November 2014 10:4

Re: Conditionally set defaultConnectionName

2014-11-02 Thread Joe Theuerkauf
7; : 'default'; } If that's a reasonable approach, how can i determine $adminIsLoggedIn from inside the Table(s)? Maybe the whole question is clumsy and/or unnecessary to start with. :) Thanks again. -joe On Sunday, 2 November 2014 06:48:30 UTC-5, mark_story wrote: >

Re: Conditionally set defaultConnectionName

2014-11-01 Thread Joe Theuerkauf
"Parks" records are managed - Needs the elevated "admin" connection for data changes. i presume i would use the *alias* method somewhere in the Admin's AboutController (or a step up in the AdminController abstract the admin controllers inherit from), but how & where?

Re: Conditionally set defaultConnectionName

2014-10-30 Thread Joe Theuerkauf
tions granted to that db account). i don't want to mix data connections on a single request. Thanks. -joe On Thursday, 30 October 2014 04:10:35 UTC-4, José Lorenzo wrote: > > Let me see if I understood correctly: For certain admin actions you want > to use the admin connection instead

Conditionally set defaultConnectionName

2014-10-29 Thread Joe Theuerkauf
;t see any obvious reference to doing this in the documentation. So i thought a conditional return from *[Table]::defaultConnectionName* might work. If it's better just to use a single higher-privilege account for all purposes, so be it. Just thought i'd ask. :) Thanks. -joe t. --

Re: Make Apache ignore actual directory for route?

2014-10-20 Thread Joe Theuerkauf
What's happening on that first try? Can someone help? i know it sounds confusing to describe, but i'd be grateful for ideas. -joe t. On Sunday, 19 October 2014 00:45:35 UTC-4, Joe Theuerkauf wrote: > > Forewarning: i'm not great with Apache. Usually i can fumble my way >

Make Apache ignore actual directory for route?

2014-10-18 Thread Joe Theuerkauf
Forewarning: i'm not great with Apache. Usually i can fumble my way around, but it doesn't take much to throw me off. i've done all my development using Cake's built-in server, and things have been mostly smooth. i'm now working toward migrating to a LAMP server (testing locally in Windows), st

Re: CakePHP 3.0.0-beta2 released

2014-10-05 Thread Joe Theuerkauf
Excellent work guys. It's been great following the progress of this new major release. For all the challenges & frustrations (of my own making), i'm glad i picked Cake as a learning experience. The framework & the team are awesome. -Joe T. On Sunday, 28 September 2014 09

Re: 3.0: Entity get/set mutators

2014-09-22 Thread Joe Theuerkauf
That did the trick. Small correction: _getActiveStatus worked for me in the Entity class, _activeStatus didn't display anything. Thank you! -joe On Monday, 22 September 2014 04:42:23 UTC-4, José Lorenzo wrote: > > Don't use accessors for formatting your columns to be displaye

3.0: Entity get/set mutators

2014-09-21 Thread Joe Theuerkauf
$this->_properties['active'] = $active; return $active; } No luck. It does the same as no setter: updates the entity (with updated active & modified properties), but save() doesn't write the changed active property to the database. Any help? Thanks. -joe t. -- Like

Re: DebugKit 3.0 installation

2014-09-10 Thread Joe Theuerkauf
Agreed. Things are running more smoothly now. Composer is current, config seems to be working. i just needed to clear up the two plugin directories, which you responded to above. Thank you! -joe On Wednesday, 10 September 2014 09:49:37 UTC-4, José Lorenzo wrote: > > The best way is to i

Re: DebugKit 3.0 installation

2014-09-09 Thread Joe Theuerkauf
x27;path' key when calling Plugin::load, is there another way to handle these multiple plugins paths, or is it wiser just to remove Plugin/? Thanks. i like the learning process, i just wish i could get back the time spent figuring it out so i can use it to get actual work do

Re: DebugKit 3.0 installation

2014-09-09 Thread Joe Theuerkauf
true, // per the instructions 'path' => 'plugins/DebugKit/' // yes, the whole path with trailing / was necessary ]); i'm glad i got it to work, but the question remains: why doesn't the typical setup work? Any suggestions what i should look for to see i

Re: DebugKit 3.0 installation

2014-09-05 Thread Joe Theuerkauf
If that's where it's supposed to install, why do i get the error from my original post? i can't start the application if i try to load DebugKit. What other info can i put up to help diagnose this? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/Cake

Re: DebugKit 3.0 installation

2014-09-04 Thread Joe Theuerkauf
- Installing cakephp/cakephp (3.0.x-dev b35cc28) Cloning b35cc28793a5e6a6f8f730fd03c4368d7aa0fdb5 - Installing cakephp/debug_kit (3.0.x-dev 0dde466) Cloning 0dde4663d9df811b2b8660c05a72c29b903386c3 So, any ideas? :) -joe On Thursday, 4 September 2014 19:31:43 UTC-4, Joe Theuerkauf wrote

Re: DebugKit 3.0 installation

2014-09-04 Thread Joe Theuerkauf
/DebugKit & no */vendor/cakephp/plugin-installer* (that originally installed with DebugKit). When i try *composer update* now, i get the missing Class error from above. i know it's something i did wrong, but after you're done smacking your head on the desk, some help to repair this

DebugKit 3.0 installation

2014-09-03 Thread Joe Theuerkauf
Dumb question # 3,582,697: Why is composer installing DebugKit (3.0.*-dev) to /plugins rather than /Plugin? When i follow the idiot-simple (and i should know!) instructions for the DK3 branch, i end up with this: *Fatal error*: Uncaught exception 'Cake\Core\Exception\MissingPluginException'

Re: 3.0.x - defaultConnectionName not working in Plugin

2014-08-31 Thread Joe Theuerkauf
sidered basic stuff, so i appreciate the patience in trying to help me. At least i'm trying to figure it out on my own while i wait for help, right? :) -joe On Saturday, 30 August 2014 12:28:50 UTC-4, Joe Theuerkauf wrote: > > @José: Here's what i'm using that works on t

Re: 3.0.x - defaultConnectionName not working in Plugin

2014-08-30 Thread Joe Theuerkauf
@José: Here's what i'm using that works on the Contact page where i need to load the Captchas model to grab a question: Works: Plugin::loadAll([ [ 'Thook/Websites' => ['routes' => true] ] ]); Also works: Plugin::load('Thook/Websites'); Doesn't work: Plugin::load('Thook/Websites'

Re: 3.0.x - defaultConnectionName not working in Plugin

2014-08-29 Thread Joe Theuerkauf
her routes }); i'm unable to get the message described in the docs (Model not found) when i go to the intended URL. Instead i get Controller not found (App\Controller\ThookController). i'll keep trying, but anything toward helping me understand this better would be hugely appreciate

Re: 3.0.x - defaultConnectionName not working in Plugin

2014-08-29 Thread Joe Theuerkauf
and Zend 1 at work, or what, but my brain is pudding. Any idea how to get my IDE (PhpStorm) to recognize the namespaces correctly, since the *src/* part of the path breaks up the PSR-0/4 conformity? Just curious. The app functions Now to work on hooking up the routes & controllers... Congra

3.0.x - defaultConnectionName not working in Plugin

2014-08-29 Thread Joe Theuerkauf
A while ago i created this thread: https://groups.google.com/forum/#!topic/cake-php/A5WHkiWCPd4 i was trying to hook up tables from a second database, using a different Datasource connection from *app.php*. My default is "kodiak", the other is "websites". It's a general-use set of tables, like

Re: 3.0 - composer update failing

2014-08-13 Thread Joe Theuerkauf
hanks for your help. -joe On Wednesday, 13 August 2014 10:51:34 UTC-4, José Lorenzo wrote: > > Have you changed the core.autocrlf config for git? It might be that after > cloning, git is changing the line endings in the repo > > On Wednesday, August 13, 2014 2:50:24 PM UTC

Re: 3.0 - composer update failing

2014-08-13 Thread Joe Theuerkauf
l advice. i really appreciate the help. -joe On Wednesday, 13 August 2014 04:11:39 UTC-4, José Lorenzo wrote: > > delete the vendors/cakephp folder and run composr update again > > On Wednesday, August 13, 2014 4:16:44 AM UTC+2, Joe Theuerkauf wrote: >> >> Running *compose

3.0 - composer update failing

2014-08-12 Thread Joe Theuerkauf
:"./Plugin" } }, "scripts" :{ "post-install-cmd":"App\\Console\\Installer::postInstall" } } The project was originally created from the Cake command line (following the Blog tutorial) and i've been running *c

Re: CakePHP 3.0.0-alpha2 released

2014-08-04 Thread Joe Theuerkauf
Quick correction: routes.php link is 404. Should be (i think): *https://github.com/cakephp/app/blob/master/config/routes.php* On Monday, 28 July 2014 03:13:14 UTC-4, José Lorenzo wrote: > > The CakePHP core team is proud to announce the immediate availability of > CakePHP > 3.0.0-alpha2

Re: 3.0: defaultConnectionName doesn't create correct connection

2014-07-23 Thread Joe Theuerkauf
Thanks for the suggestion. i'll read up on how to do that, but don't be surprised if i end up back here for some clarifications. But i'll give it a try before bugging the group again. :) -joe On Wednesday, 23 July 2014 02:34:29 UTC-4, José Lorenzo wrote: > > I would use p

Re: 3.0: defaultConnectionName doesn't create correct connection

2014-07-22 Thread Joe Theuerkauf
onnect to any other databases... Can this be done at all? On Tuesday, 22 July 2014 21:26:20 UTC-4, Joe Theuerkauf wrote: > > José: > > Sorry for the delayed response. i've been getting burned out (and burned > up with the weather), so i took a day to breathe. > >

Re: 3.0: defaultConnectionName doesn't create correct connection

2014-07-22 Thread Joe Theuerkauf
amp; lack of activity in the "production" release of a popular front-end framework i use. Lots of other unrelated crap too. To say the least, it's been a long month. On Tuesday, 22 July 2014 21:26:20 UTC-4, Joe Theuerkauf wrote: > > José: > > Sorry for the delayed r

Re: 3.0: defaultConnectionName doesn't create correct connection

2014-07-22 Thread Joe Theuerkauf
#x27;s the value whether i have CaptchasTable in the main Model/Table or in Model/Table/Website. If you have further suggestions, please let me know. i know 3.0 is alpha so i do expect some breakage. But when the documentation is so brief & doesn't seem to work, it can be frustrating. -jo

3.0: defaultConnectionName doesn't create correct connection

2014-07-20 Thread Joe Theuerkauf
i tried this topic before, but the only response was for an older version of Cake... i'm following this documentation: http://book.cakephp.org/3.0/en/orm/table-objects.html#configuring-connections i'm trying to keep a few tables that would be application-agnostic in a different database. i'm no

Re: Using multiple databases with defaultConnectionName

2014-07-06 Thread Joe Theuerkauf
. :) On Sunday, 6 July 2014 23:38:50 UTC-4, OJ Tibi - @ojtibi wrote: > > Hi, Joe. > > First, make sure your other database's connection settings are saved in > database.php > > Then, in your Captcha model, set the public attribute $useDbConfig to the > name of the s

Using multiple databases with defaultConnectionName

2014-07-06 Thread Joe Theuerkauf
Maybe i'm getting in over my head, but i'm trying to learn as much as i can... i'm attempting to keep a few tables in a different database. My current project will use them, but i want them to be more generally available for other projects down the road (things like mime-types, captcha question

3.0alpha1: Recent commit removes default Routes

2014-07-05 Thread Joe Theuerkauf
i did a Composer update last night & my project exploded. Turns out a [recent commit ] removed /src/Config/routes.php. Being new to programming within a framework, comprehending & dealing with routes is still a

Re: login generates malformed sql query

2010-08-31 Thread Joe Theory
Did you ever resolve this? I am experiencing the same issue. On Jul 23, 7:36 pm, markatto wrote: > On Jul 22, 1:03 pm, cricket wrote: > > > This is in UsersController or AppController? I would put allow() (pass > > it an array, not a string, btw) in the former and the other two in the > > latte

Re: Table name problem

2010-02-02 Thread joe-electro
Muito obrigado! Joe On Feb 1, 8:51 pm, Marcelo Andrade wrote: > On Mon, Feb 1, 2010 at 3:43 PM, joe-electro wrote: > > (..) How do I tell > > Cake that this field points to the primary key of this table and not > > of a table called "Parent_Categories"? >

Table name problem

2010-02-01 Thread joe-electro
Categories" that has the primary key 'category_id'. There is another field in this same table called 'parent_category_id' that stores the primary key of the category of the parent. How do I tell Cake that this field points to the primary key of this table and not of a ta

Re: Some questions about ACL

2010-01-18 Thread Joe L
the admin page, you could setup an EDIT page for the ACL table for modifying the GROUP's permission to access to different controllers. And also setup an EDIT page USER table for modifying USER belong to which GROUP. Does that answer your question? On Jan 19, 10:03 am, Joe L wrote: >

Re: Some questions about ACL

2010-01-18 Thread Joe L
Could I clarify, are you asking how to create an admin page to modify the user permissions? On Jan 19, 3:48 am, Douglas Pacheco Cardoso wrote: > Hi, how are you? I'm a new membership... > > Please, i want to use ACL to do control of permissions on my system. > I > understand how it works, how to

Re: Construct landing page correctly

2009-12-22 Thread Joe L
oh ya by the way, your website http://www.countycriminal.com/court-records is fanstatic!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. T

Re: Construct landing page correctly

2009-12-22 Thread Joe L
Thanks Chad, Initially I had the same thought to have every type of events in the same table, but due to the nature of all these events are slightly different from each other, and I am planning to store the specific details for each different type of event, so they will need different columns/fiel

Construct landing page correctly

2009-12-22 Thread Joe L
Hi, I am new to cakePHP and I am not sure whether this is the correct object-oriented way to build my landing page. Please help! I have a website that storing information on different types of upcoming events. And I have each controller/model/database tables for each type of my event, let's say m

Re: jQuery & ajax pagination in 1.3

2009-12-17 Thread Joe Theory
t;writeBuffer at the bottom of your > > layout, and your layout isn't refreshed, then you won't get the javascript > > from the new view > > > I am not sure if this is how it is supposed to work, but that's just what > > i've noticed > > > On Tue,

Re: jQuery & ajax pagination in 1.3

2009-12-15 Thread Joe Theory
I am having the same problem and can confirm that it happens specifically when using JQuery. Using the Js Helper with Mootools works just fine. On Dec 14, 3:44 am, Scronkey wrote: > I believe I know what's going on now but I'm not sure how to fix it. > > On the first (successful) ajax call the

Sorting pagination with HasMany and SQL Aggregation

2009-09-23 Thread Joe
in short, Article hasMany Rating the articles/index need to paginate and sorted with AVG(rating.score) i found a good start in http://groups.google.com/group/cake-php/browse_thread/thread/bece8aab31fbba72/1b27c78b0a3023d8?#1b27c78b0a3023d8 but archived, and last solution do not work at all. (ca

Re: Model validation on unit testing

2009-07-22 Thread Joe
'between' => array( > 'rule' => array('range', 1, 5), > 'message' => '1 - 5 only' > ), for williamn's question, put 'required'=true in the validate rule other wise, a

Re: Model validation on unit testing

2009-07-22 Thread Joe
), ) ); } test/models/rating.test.php: function testScoreRange() { $this->data = array( 'score' => 10, 'url_id' => 10, ); $this->Rating->create();

Re: Model validation on unit testing

2009-07-21 Thread Joe
same here On 7月10日, 下午5時03分, williamn wrote: > Hi all, > > Did this ever happened to anyone here? :) > > On Jun 7, 8:14 pm, williamn wrote: > > > > > Hi all, > > > I have a simple model like below > > > class Department extends AppModel { > > >         var $name = 'Department'; > >         var

Re: aco problems

2009-06-15 Thread Joe
l. setting permission: even more crappy. i build it in console. use syntax like cake acl check Group.1 Users all as aro do not have alias, use model and foreign_id aco use alias then users under Group model will work. On 6月14日, 下午9時31分, Joe wrote: > from the cookbook of cakephp, there is not a

aco problems

2009-06-14 Thread Joe
from the cookbook of cakephp, there is not an example of creating acos. how 'Weapons' is associated with controllers? var $name = W'eaponsController'; ? but i cannot get through it. and how aros is assiociated with a logged in user? it will find the user id in session automatically? i have Aro

Re: Unique query

2009-04-11 Thread Joe Critchley
Hi Dave. If your Post and User models both have a HABTM relationship to Bookmark, then you can use the ** "unique" => true ** parameter in the association. This means that if it does find a duplicate record, it will override it. I hope this helps. On Apr 11, 6:11 pm, "Dave Maharaj :: WidePixel

Re: Getting "5 Related" Books via multiple Genres (HABTM ) from within Book view() and without requestAction

2009-04-11 Thread Joe Critchley
You've currently got your similar() function in your genres_controller, whereas the primary model for the query is the Book model (as it's finding related *books*, not genres). I believe the following would be a more scalable approach. Place your similar() function into your Book model. (So it w

Re: Use another model function from an unrelated model

2009-04-08 Thread Joe Critchley
You should probably use the ClassRegistry class. You can instantiate an unrelated model by doing the following: $ModelName = ClassRegistry::init('ModelName'); ... and then use the functions from that variable, e.g... $ModelName->delete($id); Hope this helps. On Apr 8, 10:55 pm, lemp wrote:

Re: xmlHelper - serialize

2009-03-09 Thread Joe Critchley
http://api.cakephp.org/class/xml-helper#method-XmlHelperserialize You can do the following: $xml->serialize($yourData, array('format' => 'elements')); On Mar 9, 7:45 pm, tobi_one wrote: > Hi, > > I'm using the xmlHelper and serialize to output an array as XML. This > works ok, except that the

Re: How to create models for complex database designs like this?

2009-03-09 Thread Joe Critchley
Would it not be better to structure it through a HABTM relationship, using "Cast" as your 'with' model? So, Movie HABTM Celebrity through Cast. and Celebrity HABTM Movie through Cast. On Mar 8, 12:40 pm, Rajesh wrote: > I am working on movie site. Client have movie records in following > struct

  1   2   >