Re: cakePHP 3.0.0-RC2 documentation, Testing

2015-02-16 Thread Andrew Lechowicz
\cakephp\bake\tests\TestCase\View\BakeViewTest.php:134 phar://C:/bin/phpunit.phar/phpunit/TextUI/Command.php:152 phar://C:/bin/phpunit.phar/phpunit/TextUI/Command.php:104 FAILURES! Tests: 5, Assertions: 5, Failures: 5. On Sunday, February 15, 2015 at 9:44:24 PM UTC-5, Andrew Lechowicz wrote: I

Re: Creating Associated Records with CakePHP 3.0 ORM

2015-02-16 Thread Andrew Lechowicz
Is that directly copied/pasted? If so, do you mean to have a 'Users= patchEntity' in this line: $user = $this-Customers-Users=patchEntity($user, ['customer_id' = $cr- get('id')]); Notice the double arrow (=)? On Monday, February 16, 2015 at 6:45:40 AM UTC-5, Harold Putman wrote: Hi, I am

Re: cakePHP 3.0.0-RC2 documentation, Testing

2015-02-15 Thread Andrew Lechowicz
, February 14, 2015 at 4:23:42 PM UTC-5, Andrew Lechowicz wrote: When something isn't loading the correct file, it smells like a composer autoload issue or a namespace issue. Try running `composer dump-autoload`. If that doesn't work try looking at your `use` blocks to see if you might

Re: cakePHP 3.0.0-RC2 documentation, Testing

2015-02-14 Thread Andrew Lechowicz
When something isn't loading the correct file, it smells like a composer autoload issue or a namespace issue. Try running `composer dump-autoload`. If that doesn't work try looking at your `use` blocks to see if you might be missing something. On Friday, February 13, 2015 at 12:00:11 AM UTC-5,

Re: Cakephp 3.0 upgrade from 1.3 where to begin??

2015-02-14 Thread Andrew Lechowicz
Something else to consider if you want to jump straight to CakePHP 3 would be to re-write the app in 3.0 piece by piece and update the web server's routing to turn off and on the 3.0 pieces as need be. On Tuesday, February 3, 2015 at 10:09:12 PM UTC-5, Robert Gravel wrote: Hi all, I want to

Re: Iter of cakephp tests

2015-02-14 Thread Andrew Lechowicz
Fixture data is automatically loaded before each test run. Any data or structure in your existing test database will be deleted or dropped and replaced with only the relevant fixture data. From you linked Github issue it looks like you have some other issue with either you tests or code that's

Re: Cake v2.x -- Looking to return rendered view to the Controller

2015-02-10 Thread Andrew Lechowicz
to report), so neither solution is currently working for me. :-/ Getting templates to work with a third party library would be easier for me! On Thursday, February 5, 2015 at 4:14:48 PM UTC-5, Andrew Lechowicz wrote: It looks like `Controller::render()` sets the body on the CakeResponse

Re: Cake v2.x -- Looking to return rendered view to the Controller

2015-02-05 Thread Andrew Lechowicz
It looks like `Controller::render()` sets the body on the CakeResponse object and then returns the CakeResponse object: http://api.cakephp.org/2.6/source-class-Controller.html#922-962. I would imagine you could access the rendered view like so: public function test() {

Re: Routing to 2 controllers?

2014-12-21 Thread Andrew Lechowicz
BobsShop username. So if i route the /:username url to my UsersController, how should I handle the logic for the BobsShop username? Thanks On Dec 20, 2014, at 9:09 PM, Andrew Lechowicz drew.le...@gmail.com javascript: wrote: Hi. I want to route a url to 2 controllers depending on some

Routing to 2 controllers?

2014-12-20 Thread Andrew Lechowicz
Hi. I want to route a url to 2 controllers depending on some logic I define. For example, if I have 2 usernames Bob and BobsShop, I want localhost/Bob to route to my UsersController while localhost/BobsShop will route to my ShopsController. I've thought of one way to accomplish this - by

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

2014-02-28 Thread Andrew Lechowicz
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:

Re: Media View Path - Strange behaviour

2014-02-28 Thread Andrew Lechowicz
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

3.0 Jitters (excited jitters)

2013-08-05 Thread Andrew Lechowicz
With CakeFest 2013 fast approaching and the final minor release of the 2.x branch preparing for release, I'm excited to start building for 3.0. Hopefully I can provide some useful real-world testing and have some plugins ready at launch. Does anyone know of an approximate time when I can start

Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Hello all and thanks for reading my topic. First let me say that I've very new to CakePHP and MVC in general so please bare with me. I have actually read The Book and found it to be a great starting point, and the main reason I chose Cake over other PHP MVC frameworks. I'm working on a

Re: Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Not that it matters but the path where I put the google library actually reads app/Vendor/GoogleAPI/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Re: Connecting to a ReSTful API (Google apps) instead of a database.

2012-07-23 Thread Andrew Lechowicz
Also, I found this on StackOverflowhttp://stackoverflow.com/questions/8741501/cakephp-oauth-with-google. But I'm not sure how I would use it. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org