Re: CakePhP Views

2014-03-04 Thread Dr. Tarique Sani
> Does ALL of the HTML go into the view? Yes. Speed read this http://book.cakephp.org/2.0/en/views.html and ask further questions Tarique On Tue, Mar 4, 2014 at 2:34 AM, Justin Masse wrote: > I'm trying to speed-learn cakePHP since we are using it for a project and > I have NO previous experi

Re: Spaces in Field Names

2014-03-04 Thread Dale Bengston
Further clarifying, I'd rather work this through model joins. So I have two models, Customer and Quote. Quote belongsTo Customer. These two models refer to tables in different databases. Quotes is from "my" database and Customers is in one that I can't change. My Customers model looks like this:

Re: Spaces in Field Names

2014-03-04 Thread Ketil Froyn
Not sure on the quoting issue, although I'd expect that to be handled properly. But a workaround could perhaps be to create a view with names you can use? Cheers, Ketil On 4 Mar 2014 21:58, "Dale Bengston" wrote: > Clarifying my earlier question: the field with spaces is in a join > condition se

Re: Spaces in Field Names

2014-03-04 Thread Dale Bengston
Clarifying my earlier question: the field with spaces is in a join condition set in the controller Dale -- 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

Re: Simple belongsTo Association not working

2014-03-04 Thread John Andersen
What OS are you using? Are your model file names all lower case? This is important in case you use Linux as I do. Enjoy, John -- 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 G

Re: Simple belongsTo Association not working

2014-03-04 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello you, at the first glance everything looks just perfect! I guess you have a retailer with id 3 set in the table? you are absolutely sure that the output is caused by the line posted by you? Do you get different results if you search for just on

Spaces in Field Names

2014-03-04 Thread Dale Bengston
Hello everyone, Does Cake.php support spaces in field names? If so, what is the syntax? If not, can I fake it out by using virtual fields or something? I'm on v2.4.3 for this project. No, I did not design a system with spaces in the field names. I know better! And no, I do not have the option

Re: 3.0 - Cake not connecting to MySql DB

2014-03-04 Thread Md Bayezid Alam
after updating, Its not working, i may missing anything. 'Datasources' => [ 'default' => [ 'className' => 'Cake\Database\Connection', 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'loginname', 'password' => 'password', 'database' => 'cake3_db',

Anyone offering private tutoring in NY?

2014-03-04 Thread Art Sir
I'm trying to learn on my own but I'm constantly hitting walls. I got the basics down, i want to learn how to make a store with products checkouts, admin etc. Setting up the SQL is really confusing me. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com

Simple belongsTo Association not working

2014-03-04 Thread WhyNotSmile
I'm completely baffled by an association that's not working... I'm sure I've done this hundreds of times with no problems, but I just cannot see what's going on here! I think I must be missing something really obvious. So, I have 2 tables. One is called "Retailers" and all records in there hav

Re: Media View Path - Strange behaviour

2014-03-04 Thread Stephen S
This happened a couple more times since I written the original email, it turns out when it cannot find the file, it prints an error with the wrong path. When the file is found, it uses the intended path. On 1 March 2014 19:57, Stephen S wrote: > Doing pr(ROOT) will print D:\Work\DittoCake > > >

CakePhP Views

2014-03-04 Thread Justin Masse
I'm trying to speed-learn cakePHP since we are using it for a project and I have NO previous experience with MVC or CakePHP framework. I understand scripting in HTML/CSS/PHP but this just seems to go way over my head. HOW do you design views in cakePHP?! I have all of the HTML/CSS written for h

Re: MySQL reporting

2014-03-04 Thread Sreeram Sreenivasan
You can try out Ubiq (http://ubiq.co). It is a web based reporting tool for MySQL. You can connect to to your CakePHP MySQL database and create reports from it using drag & drop, export them as PDF/Image or csv. On Friday, April 11, 2008 9:59:39 AM UTC+5:30, Correl wrote: > > I was wondering if

Unit testing and redirects within an exception

2014-03-04 Thread Richard Claydon
Hi I have a unit test here, and it is failing. The headers['location'] key does not have a value in it when the Product->edit() method raises the exception, even though I still call redirect within the catch. Is this expected behavior? If I put the redirect before or after the try...catch blog