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
>
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
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
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
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
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
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
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
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 '
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
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
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
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
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
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
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
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
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
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
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@
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.
--~--~-~--~~~-
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.
>
>
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
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
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
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
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
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
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
29 matches
Mail list logo