turn on allow_url_fopen in cakephp

2010-06-28 Thread ytbryan
hi all, I would like to execute file($path) whereby the $path is a url. However, I read that i have to turn on the allow_url_fopen in php_ini. Can I configure this in cakephp or must I configure the php_ini in my server? Please advise. Check out the new CakePHP Questions site http://cakeqs.or

Re: Is "Beginning CakePhp from novice to professional" still valid with CakePhp version 1.3.2?

2010-06-28 Thread Jeremy Burns | Class Outfit
There are more differences than that, but if you read the migration guide (http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3) you'll very quickly be able to move on up. The book is the best out there (even though there are only three that I know of). I don't *think* that much o

Re: Functions does not find global in views?!!

2010-06-28 Thread Jeremy Burns | Class Outfit
Why are you creating the variable again, and why is it global? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 29 Jun 2010, at 00:13, saidbakr wrote: > Hi, > I set to a view variable called $tests and it is array of some data. > In the view, print_r($tests) p

Re: Accessing one model from another (unrelated) model

2010-06-28 Thread Jeremy Burns | Class Outfit
I guess there are a few options. If the data is coming from a database, you could use loadModel wherever needed (http://book.cakephp.org/view/992/loadModel). If it is not coming from a database (it's hard coded) you could use a behaviour from within the models that need the information. If you

Re: Breadcrumbs

2010-06-28 Thread Miles J
An unordered list is not a breadcrumb trail. ULs were invented to list out items. How is wrapping breadcrumbs in a UL going to help improve the blind? On Jun 28, 1:57 pm, Leszek Stachowski wrote: > > This should not be reliant on the framework. Breadcrumbs do not > > require lists, just the same

Re: Is "Beginning CakePhp from novice to professional" still valid with CakePhp version 1.3.2?

2010-06-28 Thread websurfshop
I haven't got into 1.3 yet, I'm a slacker about getting into this web dev thing for sure, but I read the book :-/ But from what I gather most of it should apply except the ajax stuff in the book where it uses Jquery. Which now can have the libraries imported just like prototype. Don't call me on

find output array!

2010-06-28 Thread saidbakr
Hi, >From documentation, find may output array like the following: Array ( [0] => Array ( [ModelName] => Array ( [id] => 83 [field1] => value1 [field2] => value2 [field3] => valu

Functions does not find global in views?!!

2010-06-28 Thread saidbakr
Hi, I set to a view variable called $tests and it is array of some data. In the view, print_r($tests) prints out the array construction correctly and without any problems. In the regarded view, I created a function to perform a simple task on the values of $tests. However, when I try to define the

Accessing one model from another (unrelated) model

2010-06-28 Thread WhyNotSmile
I have a model which is kind of generic - it's a list of column names. For some models, I need to get a list of all the column names. However, I can't do this as they are not associated, so using the column model throws an error. I've a feeling I'm meant to be doing this in some other way - i.e.

Re: Breadcrumbs

2010-06-28 Thread Leszek Stachowski
> This should not be reliant on the framework. Breadcrumbs do not > require lists, just the same way header menus do not require them. Its > up to the developer if they want to wrap those items in those specific > elements. So what are, in your opinion, html lists made for? Why ever care for any

How to Prevent Creation of Records in the Aro Table?

2010-06-28 Thread randy
I am struggling with some Auth/Acl issues at the moment...specifically this. I have a basic Users/Groups setup, I'd like to NOT keep a record in the aros table for each user, and instead rely on Groups to determine permissions. I've got some code which creates a one-time password for Users when t

Re: Model naming for SKU?

2010-06-28 Thread John Andersen
Sorry, that didn't actually answer your issue! :) Is you SKU model not being loaded? Is it correctly defined? Enjoy, John On Jun 28, 9:23 pm, John Andersen wrote: > The Wiktionary states that the plural form is "SKUs" :) > > Source:http://en.wiktionary.org/wiki/SKU > > Enjoy, >    John > > On

Re: Model naming for SKU?

2010-06-28 Thread John Andersen
The Wiktionary states that the plural form is "SKUs" :) Source: http://en.wiktionary.org/wiki/SKU Enjoy, John On Jun 28, 7:15 pm, Erik Starck wrote: > Wish it was that simple. :) > One product can have many SKUs. > Also, each SKU can have different prices for different countries. > > ..but t

Re: Model naming for SKU?

2010-06-28 Thread Erik Starck
Wish it was that simple. :) One product can have many SKUs. Also, each SKU can have different prices for different countries. ..but that wasn't my question. :) BR Erik On Mon, Jun 28, 2010 at 7:05 PM, cricket wrote: > Shouldn't the SKU be a column in a table, rather than a table of its own? >

Re: Model naming for SKU?

2010-06-28 Thread cricket
Shouldn't the SKU be a column in a table, rather than a table of its own? On Mon, Jun 28, 2010 at 12:12 PM, Erik Starck wrote: > What is the correct name of the model and database table for an object > called "Sku", as in: > http://en.wikipedia.org/wiki/Stock-keeping_unit > ? > > When I use cake

Re: Bakery account broken

2010-06-28 Thread cricket
Ditto for me. Except that my problem also is that I can't remember the username. The Bakery registration asks for both a name and a username. When getting a new password, one only needs to provide an email address (which is fine) but the email that is sent contains the name, not the username. Not h

Re: Model naming for SKU?

2010-06-28 Thread Jeremy Burns | Class Outfit
This might not be the answer you'r looking for, but I'd go with a table named stock_keeping_units and build from there. Much easier to understand three years down the road. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 28 Jun 2010, at 17:12, Erik Starck wr

Model naming for SKU?

2010-06-28 Thread Erik Starck
What is the correct name of the model and database table for an object called "Sku", as in: http://en.wikipedia.org/wiki/Stock-keeping_unit ? When I use cake bake I get some confusing messages, sometimes it wants me to call the database table "skuses", sometimes just "skus". Now I have a model cla

Re: How i decode md 5 in cake php

2010-06-28 Thread LunarDraco
MD5 hash is meant to be a one way process. The difference between a hash and an encryption is exactly that a hash is never really meant to be decoded where an encryption algorithm is a two way encode<->decode process. So you really shouldn't be trying to decode a hashed MD5. Perhaps your using the

Re: curl post vs. normal post?

2010-06-28 Thread LunarDraco
Does entering the same path 'http://localhost/api-test/1/0.2/users/ auth.xml' from a browser give you a different error. I think you are right in thinking this is a routing problem, but I would assume it is a routing problem higher up the chain with your environment not with cake. Meaning it would

Re: Hierarchy problem

2010-06-28 Thread Hugo M
Well best the solution I found will be migrating from MySQL to Postgres, because Postgres can have both foreign key and full text indexes in the same table. Regardss 2010/6/25 Hugo Massaroli > Well, maybe not... the thing is that Fulltext is a table MyISAM and Item is > InnoDB. That's because I

Re: Counter with Database

2010-06-28 Thread Davor Ilic
Wow thats greater then i thought ^^ cake is greate and i will bake therfore something it is like my framework but cake is far away for my framework xD thanks cricket 2010/6/28 cricket > On Sun, Jun 27, 2010 at 1:45 PM, Davor Ilic wrote: > > Hi, > > i have a question about the Controller. > > H

Auth, login, own validation of password

2010-06-28 Thread Melanie Sommer
Hello, I would like to use the user and password table of a CMS for authentification in my small cake application. So I told cake to use the table form the database for users. class User extends AppModel { var $useTable = 'cms_users'; } I know how to check whether the password from the f

Bakery account broken

2010-06-28 Thread Synchro
I'm trying to stop notifications triggered by comment spam from the bakery. It's been a while since I logged in there and my old password didn't work, so I reset it successfully, it sent me a new password... but that didn't work either. So I have no way of logging into the bakery. Can someone fix i

Re: Authentication using REMOTE_USER as username.

2010-06-28 Thread philp
Hi there, i'm in the same situation, excepted that it's not an app rewrite but a new one. Any kind of clue on how to interact with the auth component for adding extra authentication schemes would be greatly appreciated :) . Thanks too. Check out the new CakePHP Questions site http://cakeqs.org a

Re: Breadcrumbs

2010-06-28 Thread AD7six
On Jun 27, 4:14 am, Miles J wrote: > This should not be reliant on the framework. Breadcrumbs do not > require lists, just the same way header menus do not require them. Its > up to the developer if they want to wrap those items in those specific > elements. > > Its neither semantically correct

Which is the best hosting server for CakePHP?

2010-06-28 Thread saavedrajj
I'm tired about Godaddy.com I want to change all my projects to a full compatible CakePHP hosting server. Please recommend me one without problems with subdomains, installing another php aplication inside cakePHP, etc. Wich one is the best? Your .htaccess files works correctly? THANKS! Check o