Re: $_POST populated, but not $this->data

2010-10-18 Thread tekomp
Nevermind folks - turned out to be an issue with userScope that I didn't have configured properly. On Oct 18, 7:59 pm, tekomp wrote: > When trying to login to my app using auth component and form helper in > 1.3.4, the password value is not being populated in $this->data for >

$_POST populated, but not $this->data

2010-10-18 Thread tekomp
When trying to login to my app using auth component and form helper in 1.3.4, the password value is not being populated in $this->data for some reason, even though it's set in $_POST fine. Here's debug from $_POST (first array) and $this->data: Array ( [_method] => POST [data] => Array

Re: Auth component and login() layout

2010-10-01 Thread tekomp
ocs say it shouldn't. Thanks. On Sep 29, 11:29 pm, arro wrote: > no problem if we use different layout for that function.. > what is the error message? > > On Sep 30, 4:41 am, tekomp wrote: > > > I wanted to use a different layout for my login page, so in > > use

Auth component and login() layout

2010-09-29 Thread tekomp
I wanted to use a different layout for my login page, so in users_controller.php, I have this: function login() { $this->layout = 'login'; } What's strange though is that according to the Auth component docs, code in the login() function will only execute after authentication is attempted

Re: Secret URLs

2010-01-05 Thread tekomp
Maybe this will help: http://bakery.cakephp.org/articles/view/encrypting-urls On Jan 1, 11:54 am, anka wrote: > Hi @all, > > I have a (almost) simple question! Is it possible to make all cake php > REST URLs unreadable? What I mean is, that a given REST URL like ".../ > user/delete/10" is very si

Re: Sending emails in console scripts

2009-04-05 Thread tekomp
This works for me... class ExampleShell extends Shell { var $uses = array('Example'); function main() { App::import('Component', 'Email'); $this->Email = new EmailComponent(null); $body = 'asdf'; $this->Email->fro

Re: Can i compile the PHP webpage instead of leaving the source code on the server?

2009-01-07 Thread tekomp
There are Ioncube decoders as well. Pick your poison. On Jan 5, 12:02 pm, Aus wrote: > I do like the Mac address and license thing, > but the encryption with ioncube sounds more flexible and less work, i > don't care if the website is copied by users, it have many > dependencies and will be use

Re: Templates

2009-01-06 Thread tekomp
There are a ton of free template websites out there. http://www.oswd.org/ is a good place to start. And since they're templates, I guess you can say they're designed exactly for CakePHP. ;) -Tekomp On Jan 6, 9:44 pm, jandro wrote: > I want something else other than the default

Re: Combine model fields for form select

2009-01-06 Thread tekomp
http://teknoid.wordpress.com/2008/09/04/findlist-with-three-or-combined-fields/ http://bakery.cakephp.org/articles/view/add-formatted-lists-to-your-appmodel On Jan 6, 9:57 pm, Chris Gallop wrote: > Hi > > I have a model called 'Client' that has a HABTM relationship with > another model called '

Where to integrate web service API

2008-12-23 Thread tekomp
I'm working on an app that needs to integrate with the salesforce.com api, but not sure where that code should be... it will be managing data, so a model would be appropriate, but perhaps a datasource would be better because it's for data from an external source? Or would it best be integrated as

Re: relationships not deleting on saveAll with HABTM

2008-12-23 Thread tekomp
I was using non-automagical form fields on my form, and because of that, this was left out: Once I put that in there, it worked fine. On Dec 23, 6:37 am, tekomp wrote: > Hi, > > I have a form which is saving data to a join table using the method > found > here:http://teknoi

relationships not deleting on saveAll with HABTM

2008-12-23 Thread tekomp
Hi, I have a form which is saving data to a join table using the method found here: http://teknoid.wordpress.com/2008/09/24/saving-extra-fields-in-the-join-table-for-habtm-models/ The data saves, but each time I submit the form, it doesn't delete the existing relationships in the join table bef

Re: Where to put business logic related classes?

2008-12-23 Thread tekomp
Those should go in one of the 'vendors' directories. On Dec 22, 2:41 am, dmitri1 wrote: > I would like to know: Where to put business logic related classes, > which are not related with cake entities: (db, views, components, > controllers, etc)? > > The classes which model some kind of thing in

Re: self referential many to many relationships

2008-12-21 Thread tekomp
Not sure if it would work, but have you tried creating a HABTM relationship with itself? May have to setup your own join table if cake doesn't create a users_users table. On Dec 18, 11:46 am, overture wrote: > If I have a 'users' table which represents a set of employees and I > want to assign

Re: Issue when saving HABTM form on RC4

2008-12-19 Thread tekomp
e along)... thinking that Cake would continue to work with join- > > tables that have a composite pk. It was made clear to me in no > > uncertain terms that a join-table must now have a separate primary key > > (id). > > > Martin > > > On Dec 19, 11:08 am, tek

Re: Issue when saving HABTM form on RC4

2008-12-19 Thread tekomp
I left out the full debug of the warning by mistake. Here is that: Warning (2): Cannot modify header information - headers already sent by (output started at /www/example.com/cake/basics.php:111) [CORE/cake/ libs/controller/controller.php, line 615] Code | Context $status = "Location: ht

Issue when saving HABTM form on RC4

2008-12-19 Thread tekomp
I've come across an issue in RC4 when saving a form that has a HABTM relationship within it. The HABTM relationship in this case is "Websites" and "Niches". The forms are using the form helper. When adding or editing either a website or a niche, and debug > 0, the following notices and warning

Re: Shell not working through Cron

2008-12-04 Thread tekomp
think you can also set the path to php in the shell script with: > PATH=$PATH:/usr/local/bin > > Alternately you can edit /cake/console/cake and add the full path on > line 32. > > -Matthttp://www.pseudocoder.com > > On Dec 2, 7:30 am, tekomp <[EMAIL PROTECTED]> wrot

Shell not working through Cron

2008-12-02 Thread tekomp
I can run a shell just fine on the command line, but when I run the same command via cron, I get the following error: tput: no terminal type specified and no TERM environmental variable. /www/example.com/cake/console/cake: line 32: exec: php: not found Here is the command I'm running: /www/exam

Shell naming conventions

2008-12-02 Thread tekomp
Are there any particular naming conventions for shells as there are for models, views, and controllers? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@

Using custom model methods in console

2008-12-02 Thread tekomp
Is it possible to use custom model methods in the interactive cake console? Also, does anyone have a list of supported methods? It would seem as though you cannot, but perhaps I'm doing it wrong. The docs don't have much info about the console. Thanks. --~--~-~--~~~-

Re: Accessing named parameters

2008-11-19 Thread tekomp
So it's really just a matter of preference? Are there times when I would need to use one instead of the other? On Nov 19, 12:48 am, Kyo <[EMAIL PROTECTED]> wrote: > It all depend on what you need for your methods. > if you need only named parameters, $this->passedArgs could be your > choice. > >

Accessing named parameters

2008-11-18 Thread tekomp
Should named parameters be accessed through $this->passedArgs or $this- >params? The docs say that they are accessed through both, but I'm not sure which one to choose. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Named parameters VS $_GET

2008-11-18 Thread tekomp
Are there any particular reasons to use named parameters in a URL instead of a normal GET string? /posts/view/var1:3/var2:4 VS /posts/view/?var1=3&var2=4 Both can be accessed in $this->params. I've always used a regular GET string, but if Cake convention suggests not to, I'd be interested to

Re: Image Uploads to Cake via a Flash/Flex interface

2008-11-10 Thread tekomp
These might help: http://swfupload.org/ http://bakery.cakephp.org/articles/view/swfupload-and-multipurpose-uploader -B On Nov 8, 6:29 am, rgreenphotodesign <[EMAIL PROTECTED]> wrote: > Hey, Tarique maybe you can help with this as I've just viewed your > cheesecake site. > > I've been working on

Re: Allowing entire controllers with Auth component

2008-08-24 Thread tekomp
rization, while at the same time still have the Auth component work in the background. On Aug 23, 3:49 pm, tekomp <[EMAIL PROTECTED]> wrote: > I'm using the Auth Component in my app_controller.php in the > beforeFilter function, which is great for making people login, but I'm

Re: Allowing entire controllers with Auth component

2008-08-24 Thread tekomp
Thanks Sam. Got it to work after realizing that "display" is a built- in action to the built-in pages controller. On Aug 23, 8:22 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > try >         $this->Auth->allow(array('display')); >         p

Allowing entire controllers with Auth component

2008-08-23 Thread tekomp
I'm using the Auth Component in my app_controller.php in the beforeFilter function, which is great for making people login, but I'm having a hard time allowing certain pages. I want all pages in my "Pages" controller to not require authorization, so I added $this- >Auth->allow('*') in my beforeF

field not validation

2008-08-21 Thread tekomp
I have an "add" function that isn't being validated using the form helper, even though I have the model set to validate. It just inserts the record and I can't figure out why since I haven't had this problem before. Snippet from controller: function add() { $user = $this