Re: Trouble integrating SWFUpload with cakephp project

2009-08-06 Thread Pascal Messana

Hi,

I made it work, what do you want to do exactly ?

There are problems with sessions, I had to use cookies (of course I
made many security controls).

On 5 août, 22:11, Robert  wrote:
> I've been trying to integrate SWFUpload 2.0.2 with my CakePHP 1.2
> application, and have been stuck for a few days now...after endless
> searching, i've only been able to find solutions such 
> ashttp://bakery.cakephp.org/articles/view/swfupload-and-multipurpose-up...,
> which is for cake 1.1, and swfupload 1.0. Has anyone been able to
> integrate the new swfupload with a cake 1.2 application? Any help in
> the right direction would be much appreciated.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Auth Component - Password empty - Try to make a "change password" page

2009-07-20 Thread Pascal Messana

Hi!

I am trying to make a page where users can change their password.
The user has to insert the actual password and the new password in
form inputs, then submit the form.
Then, I want to compare the submitted password and the real password
(the one in the database).

I try to get the real password through the Auth component :

$real_password = $this->Auth->user('password');

But it is empty!

So, how can I get the password of a member ?

I also tried to directly make a query through the model, but again it
is still empty.

Maybe I can try to use the Auth->login() method with the password
submitted and see what it returns, but it seems dirty.
Or in the worst case I could make a direct query to get the password,
through the controller method query(), but again this is dirty.

Any idea ?

Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Deployment Issues

2009-01-11 Thread Pascal Messana

Hi,

When you say " If I tell Auth to allow all ", why do you do exactly
(paste the code) ? Do you use the * or do you specify each action ?

On 11 jan, 17:17, TheChad7  wrote:
> Am I the only one that has had this issue?
>
> Any suggestions?
>
> Chad
>
> On Jan 10, 8:35 pm, "Chad Casselman"  wrote:
>
> > I have been developing my first cake app locally for the past few
> > days.  I uploaded the files to my dedicated server as following:
>
> > .htaccess
> > index.php
> > /app
> > /cake
> > /vendors
>
> > When I hit the url I get users/login can't be found.  Yes, I am using
> > basic Auth.  To me this means that it executed enough to do the
> > redirect and then died.  Mod Rewrite is working, but I am getting some
> > weird results.
>
> > I get the correct login form if I go to /app/users/login but of course
> > it posts to /users/login
>
> > If I tell Auth to allow all, then everything works right like
> > /customers etc. etc, EXCEPT /users/login url is still 404.  My login
> > functions in users controller is empty using the automagic.
>
> >         function login() {
> >                 // No form processing needed, Auth does it automatically
> >                 $this->pageTitle = "Please Login!";
> >         }
>
> > To me this appears to be something wrong with Auth.  Can anyone help
> > me get this working?  This is the 1.2 final release.
>
> > Chad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



CakePHP internship / job

2008-12-16 Thread Pascal Messana

Hi!

I am a student in a french "engineer" school (INSA of Lyon), I will
have my diploma next year. (equivalent to a B.S. in Computer Science).

I am looking for an internship or a job related to CakePHP.
It would be during 4 or 5 months, between May and September 2009.

I have already developped several websites using CakePHP (during a
previous internship and for my personal projects).

Do you know a company which could be interested in having a cake
developper during the next summer ?

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Automagic JavaScript Validation Helper - Beta integration problem

2008-08-21 Thread Pascal Messana

I am facing the same problem.
I just posted on the author page :
http://www.pseudocoder.com/archives/2008/02/17/automagic-javascript-validation-helper-beta/#comment-2842

If you solved this problem, can you post the solution then ?

Thx

kaushik a écrit :
> I am facing problem to integrate 'Automagic JavaScript Validation
> Helper' in my form validation.
>
> Here is my model:
>
>  var $name = 'Category';
>  var $primaryKey = 'categoryId';
>  var $displayField = 'categoryName';
>
>
>  var $validate = array(
> 'categoryName' => array(
> 'too_short' => array('rule' => array('minLength',
> 1),'message'=>'Category Name cannot be empty'),
> 'unique' => array('rule' => array('isUnique'),
> 'message'=>'That Category Name is not available'),
> 'must' => array('rule' => array('minLength', 4),
> 'required' =>true, 'message'=>'Category Name is required'),
> ),
>   );
>
> Here is my view:
>
> link(array('jquery', 'validation'), false);?>
>$options = array('inline' => 'false','messageId' => 'message');
> ?>
> rules('Category');?>
>
> create('Category',array('type'=>'file')); ?>
>align="center" class="border"
> cellpadding="5" cellspacing="2">
>class="TDHEAD" bgcolor="#799BE1" style="color:#ff">
>colspan="3">Add Category
>   
>   
>colspan="3">
>   
>   
>align="right" valign="top" class="tbllogin">Category
> Name
>align="center" valign="top" class="tbllogin">:
>   
>  size="40" value="" id="categoryName" class="inplogin"> >error("Category.categoryName",array('wrap'=>'div'));?>
>   
>
>   
>colspan="2"> 
>   
>     
>  onClick="javascript:window.location='../categories';">
>   
>   
>   end(); ?>
>
> After html, it is giving-
>
>  http://www.w3.org/1999/xhtml";>
> 
> Test Control Panel
> 
> 
> 
>head>
>
>  marginheight="0" marginwidth="0">
> .
> 
> $(document).ready(function(){ $
> ('form').submit( function() { return validateForm(this,
> rules); }); });
> var rules = eval({"CategoryCategoryName":[{"rule":"\/^.{1,}$
> \/","message":"Category Name cannot be empty"},{"rule":"\/^.{4,}$
> \/","message":"Category Name is required"}]});
> 
> .
> 
>  action="/admin/categories/add">
>  value="POST" />
> 
>  value="" id="categoryName" class="inplogin">
> ...
> 
> 
> 
> 
>
> It doesn't showing any error although the field is blank but required.
> It is also not showing any javascript error also. Moreover for valid
> or invalid entry, the form submission is not occurring.
>
> Can anyone help me. Where is the bug in my code?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---