Helper and different servers

2013-01-15 Thread hill180
I have one server with php 5.3.2(ubuntu) and one with 5.3.14(mamp) For some reason I started getting html helper not found on the production server, but no problem locally. After clearing cache - nothing Then I added the following line in the appcontroller.php public $helpers = array('Html','Fo

Re: Themes

2012-09-30 Thread hill180
n Sat, Sep 29, 2012 at 11:03 AM, lowpass wrote: > The file should be at: > > app/View/Themed/corporate/webroot/css/main.css > > Is that the case? > > On Sat, Sep 29, 2012 at 11:10 AM, hill180 wrote: > > For the first time, I have to use themes in a project. > >

Themes

2012-09-29 Thread hill180
For the first time, I have to use themes in a project. I am using Cakephp 2.1 In the before filter of the app controller I have the following: $this->theme = 'corporate'; I have the views under app/view/themed/corporate/layout/default.ctp This is working fine.. My problem is the webroot. I

Re: Model Associations

2012-05-24 Thread hill180
T Account.AccountID as Contact__ACCOUNT_ID, contact.contact_full_name as Contact__CONTACT_FULL_NAME FROM CONTACTS AS contact LEFT JOIN Accounts AS Account ON contact.account_id=Account.account WHERE Account.AccountID = {$__cakeID__$}' ) On Thu, May 24, 2012 at 9:38 AM, hill180 wrote: >

Re: Model Associations

2012-05-24 Thread hill180
me 3 undefined Index errors, which matches the records for this account. Thank you. On Thu, May 24, 2012 at 10:33 AM, hill180 wrote: > Thank you so much. I think I am 99% there. > > Get the following error three times, (that is actually how many contacts > are in the DB for the cu

Re: Model Associations

2012-05-24 Thread hill180
, 2012 at 9:38 AM, Mike Griffin wrote: > On Thu, May 24, 2012 at 3:14 PM, hill180 wrote: > > Yes. > > > > As a disclaimer, I didn't write the original schema. > > > > Account_ID is for the systems account number (primary key) > > Account is for the logical

Re: Model Associations

2012-05-24 Thread hill180
ative Client 11.0][SQL Server]The multi-part identifier "Accounts.Account" could not be bound. On Thu, May 24, 2012 at 3:28 AM, Mike Griffin wrote: > On Thu, May 24, 2012 at 1:50 AM, hill180 wrote: > > AccountID = AccountID on the Account and the Address for the Accou

Model Associations

2012-05-23 Thread hill180
*Cake *PHP 2. *public *$useTable = 'Accounts'; /** * Primary key field * * *@var* string */ *public *$primaryKey = 'AccountID'; *public *$hasMany = *array*( 'Address' => *array*( 'className' => 'AccountAddress', 'foreignKey' => 'AccountID', 'conditions' => '', 'fields' => '', 'ord

Re: i need changepassword validations in cakephp

2012-05-23 Thread hill180
Are you talking about complexity rules? On Wed, May 23, 2012 at 2:59 AM, Roopa Mani C wrote: > i need changepassword validations in cakephp > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.

Re: Yii Framework

2012-05-23 Thread hill180
mple. I had to setup session to store in the DB "CDbHttpSession" API is easy to find, but on the manual side (definitive guide), there is no reference. On Wed, May 23, 2012 at 4:00 AM, Steve Found wrote: > On 23/05/12 03:35, hill180 wrote: > >> This is not a holy war

Yii Framework

2012-05-22 Thread hill180
This is not a holy war statement. After looking at Yii, getting the two books and reading and watching a lot of the tutorials, making a small app in Yii. I think I am going to stay with Cake. 1. Cakephp's Documentation is amazing. 2. Great Community 3. Familiar with CakePHP 4. CakePHP is a s

Re: Pagination

2012-04-27 Thread hill180
Here is the real example I am trying. The webpage has a list of work order that are open. Paginator->sort('Work Order ID','WorkOrder.id') ?> //works Paginator->sort('Customer','Customer.name') ?> //works Paginator->sort('City','MainCity.name') ?> //no worky Customer Model: var $belongsTo = arr

Re: Pagination

2012-04-26 Thread hill180
nds AppModel { > var $belongsTo = array('City', 'Author'); > } > > Then you can paginate like the example I had above since it will LEFT join > the city models for all the books, as long as you contain the city model: > > // in books controller > $this-&g

Re: Pagination

2012-04-26 Thread hill180
ude those in the results, you can do this: > > $this->Paginator->sort('Where Written', 'City.name'); > > Check your data and SQL queries to see if it's joined that way. > > > On Wednesday, April 25, 2012 4:29:26 PM UTC-7, Hill180 wrote: >> >

Re: Pagination

2012-04-25 Thread hill180
1.3 On Wed, Apr 25, 2012 at 5:38 PM, euromark wrote: > what version are you using? > because in 2.x it should be the other way around: > > sort($key, $title) > > please always mention your cake version > > > > Am Donnerstag, 26. April 2012 01:29:26 UTC+2 schrieb H

Pagination

2012-04-25 Thread hill180
Trying to use the paginator in the view I have an Author who is has a Book and where the "book" was written ( book_id.name, city_id.name) Author sort works, title sort work, but not the sort for city_id. I can sort by the id, but obviously this won't work because the id has nothing to do with the

Re: Find with $hasAndBelongsToMany

2011-05-30 Thread hill180
round has given me the bindModel() method - which you can > read at the bottom of the page here: > > http://book.cakephp.org/view/1044/hasAndBelongsToMany-HABTM > > But I wasn't able to get it to work for me. There's also a method > using manual joins and creating models for

Find with $hasAndBelongsToMany

2011-05-30 Thread hill180
I have three models Authors Books (hasandbelongstomany category) Category They are properly configured for $hasAndBelongsToMany (books/category) relationship. I need to get all books by an author in a certain category (5 in this example) Obviously the category id is not in the authors table so I

Composite Primary Keys

2011-03-17 Thread hill180
>From what I have read, I know that Cakephp does not support composite primary >keys. And later the posts go into tags, but I need a push in the right >directions. I have Tickets 1-100 that go out for each day. The user buys a ticket for a day and the system will process the payment and ret

Re: Forum Is A Free For All?

2011-02-04 Thread hill180
I did notice some really basic questions that a tutorial could have answered, in those cases, I would recommend what some members did, point them right to the tutorials. As a community it would be better then a blanket RTFM, in my humble opinion. I know I could have been part of those "peop

Re: CSS Pagination Indicator

2011-02-03 Thread hill180
Ok another question .. just a gee wiz If all CSS content values are required to be escaped, why not escape it in the core Cakephp 1.3.7 package? Thanks! On Feb 3, 2011, at 10:22 AM, cricket wrote: > On Thu, Feb 3, 2011 at 11:31 AM, hill180 wrote: >> In the CSS is have: >>

Re: CSS Pagination Indicator

2011-02-03 Thread hill180
The escaping worked, thanks! th a.asc:after { content: '\21a5'; } th a.desc:after { content: '\21a7'; } On Feb 3, 2011, at 10:22 AM, cricket wrote: > On Thu, Feb 3, 2011 at 11:31 AM, hill180 wrote: >> In the CSS is have: >>

CSS Pagination Indicator

2011-02-03 Thread hill180
In the CSS is have: th a.asc:after { content: ' ⇣'; } When a pagination link is clicked: it should look like this: Before NAME AFTER NAME ⇣ But what I am getting is NAME ⇣ I know it has something to do with the encoding, just don't know where. Thanks! PS (mac/MAMP/chrome&safar

Re: problems in Cake

2011-02-03 Thread hill180
open your cmd and type php -v if you still get the error, you need to add the php binary to your windows path. is you are using wamp is should be c:\wamp\bin\php\php5.3.0 On Feb 3, 2011, at 8:40 AM, goluhaque wrote: > After adding the path to cake.bat to the PAth in the environment variables,

Re: A facelift for the CakePHP Book

2011-02-03 Thread hill180
s > after we blocked the first set. > > -- > Larry E. Masters > > > On Thu, Feb 3, 2011 at 9:13 AM, hill180 wrote: > Before it went dark, I liked it. Faster, easier to search. > > but alas... :) > > On Feb 3, 2011, at 8:11 AM, euromark wrote: &g

Re: A facelift for the CakePHP Book

2011-02-03 Thread hill180
Before it went dark, I liked it. Faster, easier to search. but alas... :) On Feb 3, 2011, at 8:11 AM, euromark wrote: > and now has a 500 - internal error :) > > > On 3 Feb., 13:11, Graham Weldon wrote: >> The CakePHP Book[1] has undergone a major facelift and incorporates a >> whole ran

Re: Views with Joined Models

2011-01-31 Thread hill180
or->read(null, $id)); > > Do a debug on your author array in your view and figure out what is happening > :-) > > Cheers > Tarique > > > > On Tue, Feb 1, 2011 at 3:49 AM, Hill180 wrote: > I am sorry for the basic question.. but here goes. > > I will u

Views with Joined Models

2011-01-31 Thread Hill180
I am sorry for the basic question.. but here goes. I will use Blog Posts as an Example I have the following models: Author Post Tags All the associations are fine as the scaffold pages are working without a problem. I have a page under the Author Controller the standard view: function view($i