Re: cakePHP 3.0.0-RC2 documentation, Testing

2015-02-16 Thread Andrew Lechowicz
ViewTest.php:123 > phar://C:/bin/phpunit.phar/phpunit/TextUI/Command.php:152 > phar://C:/bin/phpunit.phar/phpunit/TextUI/Command.php:104 > > 5) Bake\Test\TestCase\View\BakeViewTest::testSwallowLeadingWhitespace > Failed asserting that two strings are equal. > --- Expected > +++ Actua

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, >

Re: cakePHP 3.0.0-RC2 documentation, Testing

2015-02-15 Thread Andrew Lechowicz
ngs placed in the correct > directories. > The documentation (PDF version, starting at page 559) does not clearly > indicate where these items should be placed. > I am guessing that the reference to the directory tests is on the vendor > side. > > My long term goal is to learn e

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: 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 wa

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: Cake v2.x -- Looking to return rendered view to the Controller

2015-02-10 Thread Andrew Lechowicz
and there's a bug preventing me from > connecting to my SMTP server's TLS connection (which I have 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, Februar

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() { $this->ren

Re: Routing to 2 controllers?

2014-12-21 Thread Andrew Lechowicz
UsersController and a ShopsController, the former handles the > "Bob" username while the latter handles "BobsShop" username. So if i route > the /:username url to my UsersController, how should I handle the logic for > the "BobsShop" username? > > T

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 writing

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 st

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: http://bakery.cakephp.org/articles/markstory/2014/01/05/cakephp_3_0_0_dev_preview_1_r

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

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

2012-07-23 Thread Andrew Lechowicz
Also, I found this on StackOverflow. 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

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

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 webser