Re: display last 5 inserted image

2011-09-14 Thread Zaky Katalan-Ezra
It's not a good idea to change the images size in the html. Change the image to the desired size when uploading. Media plugin can assist you with this issue. On Thu, Sep 15, 2011 at 9:28 AM, Sivaramakrishnan S wrote: > > > hi, >> > > can we set the size of the images which displayed in the

Re: display last 5 inserted image

2011-09-14 Thread Sivaramakrishnan S
hi, > can we set the size of the images which displayed in the template, any one can help me,please? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP rel

Re: Login to a CakePHP application from another site doesn't work

2011-09-14 Thread Zaky Katalan-Ezra
Use oauth , openid ... On Wed, Sep 14, 2011 at 7:56 PM, byqsri wrote: > Hi > I have my web application in CakePHP . > All works fine. > Now I would do an autologin in my web application from another site . > To do this I have done a identical login form

Re: Part time code maintaining

2011-09-14 Thread Zaky Katalan-Ezra
I also recommend http://www.earthtechnology.co.in/ I work with them for a long time with great satisfaction. Contact Debasish banerjee deban...@gmail.com On Wed, Sep 14, 2011 at 6:18 AM, Amresh Singh wrote: > Dear Amit > > There is no problem. I am interested in part time job. > > Regares > > Am

Re: Can I safely start a project on 2.0RC1?

2011-09-14 Thread Lucho Molina
Thanks #2Will and Greg, I'll go for it! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake

Re: Habtm fields input and view very important plz

2011-09-14 Thread Jeremy Burns | Class Outfit
Don't do it as HABTM. Create a model and controller for the joining table and use $belongsTo and $hasMany. Jeremy Burns Class Outfit http://www.classoutfit.com On 14 Sep 2011, at 23:12, driss wrote: > I have this data structure : > Product(Id,name); > Market(Id,name); > Product HABTM Market (

Re: Editing data

2011-09-14 Thread Mohd Hasnol
edit.ctp Form->create('B', array('action'=>'edit'));?> Form->input('A.first_name'); echo $this->Form->input('A.last_name'); echo $this->Form->input('A.contact_no'); echo $this->Form->input('A.email'); echo $this-

Re: Habtm fields input and view very important plz

2011-09-14 Thread driss
is no one can help me ? any help is welcome On Sep 14, 10:12 pm, driss wrote: > I have this data structure : > Product(Id,name); > Market(Id,name); > Product HABTM Market ( I mean that i could have products available in > many Market or store but the price is not the same for example this > p

Re: i18n script ans default.po file

2011-09-14 Thread Sean Dong
avairet: *Have you solved the problem? I am having the same thing here. The translation is not show up. Only the original string...* -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help oth

Habtm fields input and view very important plz

2011-09-14 Thread driss
I have this data structure : Product(Id,name); Market(Id,name); Product HABTM Market ( I mean that i could have products available in many Market or store but the price is not the same for example this product X is available in Market1 and in Market2 but in market1 it's expensive than in Market2) s

Re: Editing data

2011-09-14 Thread #2Will
Are you doing a saveAll rather than save in your controller? On Sep 14, 7:27 pm, Mohd Hasnol wrote: > inside edit.ctp > > Form->create('Useradmin', array('action'=>'edit'));?> >                     echo $this->Form->input('A.first_name'); >                     echo $this->Form->input('A.last_nam

Re: Need Data from DATABASE_CONFIG in Template

2011-09-14 Thread Miles J
The old school way of course. $db = new DATABASE_CONFIG(); $db->ldap['domain']; Don't worry, it won't actually cause any problems. On Sep 14, 3:43 am, gloop wrote: > Hello, > > i program a LDAP login. We have several domains and its pretty when i > have only one location for the ldap data. > >

Re: How to send Email in Cakephp

2011-09-14 Thread arron
take a look at the book http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP $this->Email->smtpOptions = array( 'port'=>'465', 'timeout'=>'30', 'host' => 'ssl://smtp.gmail.com', 'username'=>'your_usern...@gmail.com', 'password'=>'your_gmail_password', ); some

Re: How to send Email in Cakephp

2011-09-14 Thread WyriHaximus
For 1.3: http://book.cakephp.org/view/1290/Sending-A-Message-Using-SMTP For 2.0: http://book2.cakephp.org/en/core-utility-libraries/email.html Both include gmail examples :). On Sep 14, 6:41 pm, tubiz wrote: > Please I have a register action in my user controller how do i send a > mail to a user

Re: Making img,css and js folder cookie free

2011-09-14 Thread Ryan Schmidt
On Sep 14, 2011, at 08:51, devil wrote: > Is there any way to make img css and js folder cookie free > http://developer.yahoo.com/performance/rules.html#cookie_free > > I mean without moving to a subdomain. Yahoo(yslow) says these images > are being sent with a cookie how can i prevent it. Usin

Session sharing through new tabs via hyperlink inside email.

2011-09-14 Thread Andrew Senner
I have an issue where user A logs into our application, that user does there thing. Through the application we have email notifications which notify the user of certain things which happen during any period of time. Well inside this email there is a link which takes them to the corresponding page

Login to a CakePHP application from another site doesn't work

2011-09-14 Thread byqsri
Hi I have my web application in CakePHP . All works fine. Now I would do an autologin in my web application from another site . To do this I have done a identical login form in my site and with javascrpt I post it to my web application. But it doesn't work . With this method I can't login to my w

Re: How to send Email in Cakephp

2011-09-14 Thread Teddy Zeenny
What CakePHP version are you using ? On Wed, Sep 14, 2011 at 7:41 PM, tubiz wrote: > Please I have a register action in my user controller how do i send a > mail to a user after he has successfully registered and his details > has been stored in the database. > > I would like to use Google SMTP

How to send Email in Cakephp

2011-09-14 Thread tubiz
Please I have a register action in my user controller how do i send a mail to a user after he has successfully registered and his details has been stored in the database. I would like to use Google SMTP to send the mail. How do I also send a mail to all registered users as well. -- Our newest

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
Thank you very much Thomas, got the response back properly with the html code, still getting some errors so gotta see what's wrong with that. On Sep 14, 12:14 pm, Thomas Ploch wrote: > erm, the same as you would set it to any other view: > > >      function action() { >          [...] >        

Re: Rendering an element with Jquery

2011-09-14 Thread Thomas Ploch
erm, the same as you would set it to any other view: 'feep feep feep'); // or $myArray = json_decode($yourJsonObject, true); // Set the variable just like any other var $this->set(compact('myArray')); // This will render the element in '/views/elements/element.ctp' with

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
Also, I'm testing your solution, and it is outputting the element html data but for some reason it's outputting a bunch of other data from the controller, like: $___dataForView = array() $loadHelpers= true $cached = false $session= SessionHelper SessionHelper::$helpers = array Sess

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
I meant $this->element('element', $data); On Sep 14, 12:06 pm, 8vius wrote: > And how can I pass an array into the view? I do it in other parts of > my code just doing $this->render('element', $data) but it's giving me > an error here > > On Sep 14, 11:59 am, Thomas Ploch wrote: > > > > > > > >

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
And how can I pass an array into the view? I do it in other parts of my code just doing $this->render('element', $data) but it's giving me an error here On Sep 14, 11:59 am, Thomas Ploch wrote: > The RequestHandler Component is not doing any requests, it just verifies > that the current request i

Re: Rendering an element with Jquery

2011-09-14 Thread Thomas Ploch
The RequestHandler Component is not doing any requests, it just verifies that the current request indeed is an AJAX request, so you can check in an action and i.e. render an element with an AJAX layout instead of rendering the whole view. You can of course generate the HTML with javascript usin

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
hmmm I don't use the request handler to do my ajax requests, I just echo out the response, would that work ? doing echo $this->render()? On Sep 14, 11:36 am, Thomas Ploch wrote: > As an addition, check outhttp://book.cakephp.org/view/980/render > > Am 14.09.2011 17:14, schrieb 8vius: > > > > > >

Re: Rendering an element with Jquery

2011-09-14 Thread Thomas Ploch
As an addition, check out http://book.cakephp.org/view/980/render Am 14.09.2011 17:14, schrieb 8vius: Can you be a little more explicit? I have my ajax action set up that will return a json encoded array. How can I get the html for the element from my controller? Maybe some example code? I'm a b

Re: Rendering an element with Jquery

2011-09-14 Thread 8vius
Can you be a little more explicit? I have my ajax action set up that will return a json encoded array. How can I get the html for the element from my controller? Maybe some example code? I'm a bit of a noob with this in general. Thank you. On Sep 14, 11:05 am, Thomas Ploch wrote: > The easiest wa

Re: Rendering an element with Jquery

2011-09-14 Thread Thomas Ploch
The easiest way would be an AJAX action that renders the element with the given POST data. The you can just use the rendered HTML and inject it into the DOM. Kind regards Thomas Am 14.09.2011 16:55, schrieb 8vius: Hey all, got a little problem here. I wanna do something similar to what twitte

Rendering an element with Jquery

2011-09-14 Thread 8vius
Hey all, got a little problem here. I wanna do something similar to what twitter does when you post a new tweet, that it automatically adds itself to the stream. I have made an element for this, the element receives my model data and sets it up properly but I'm not sure how to pass in the data from

Making img,css and js folder cookie free

2011-09-14 Thread devil
Is there any way to make img css and js folder cookie free http://developer.yahoo.com/performance/rules.html#cookie_free I mean without moving to a subdomain. Yahoo(yslow) says these images are being sent with a cookie how can i prevent it. -- Our newest site for the community: CakePHP Video Tut

Flow Player not working with cakephp

2011-09-14 Thread Pradeep Pai
hello sir, thanks in advance, could you please tell me what is the configuration settings of flow player with cakephp i have tried this . http://bakery.cakephp.org/articles/stas_1/2008/06/13/flow-player-video-helper but not get success yet. only find a blank page. Pradeep Pai -- Our newest s

Re: Part time code maintaining

2011-09-14 Thread Amresh Singh
Dear Amit There is no problem. I am interested in part time job. Regares Amresh kumar singh On Fri, Sep 9, 2011 at 7:52 AM, Amit wrote: > Hey guys - I've written a simple application for a non-profit > organization. I won't be able to fully support and maintain the code > and looking to find

Re: Media plugin transferTo

2011-09-14 Thread Zaky Katalan-Ezra
Thank you Media plugin some how bind to the save function. So How do I tell the media plugin not to run after save and run only when I have the post_id? On Wed, Sep 14, 2011 at 11:47 AM, BenJsno wrote: > You have to save your post before upload the file. > in your Post_controller : > >f

Need Data from DATABASE_CONFIG in Template

2011-09-14 Thread gloop
Hello, i program a LDAP login. We have several domains and its pretty when i have only one location for the ldap data. var $ldap = array( 'datasource' => 'ldap', 'host' => 'xx.xx', 'port' => xx, 'base_dn' => 'dc=xx,dc=xx,dc=xx', 'domain' => array('Domain1',

Re: Editing data

2011-09-14 Thread Mohd Hasnol
inside edit.ctp Form->create('Useradmin', array('action'=>'edit'));?> Form->input('A.first_name'); echo $this->Form->input('A.last_name'); echo $this->Form->input('A.contact_no'); echo $this->Form->input('A.email'); ec

Re: Media plugin transferTo

2011-09-14 Thread BenJsno
You have to save your post before upload the file. in your Post_controller : function add() { [...] if (!empty($this->data)) { $this->Post->create(); if ($this->Post->save($this->data)) {

Re: Overriding cakephp core functions

2011-09-14 Thread Tonu Tusk
Chris, if you are saying that a system that has a repo / db of sha1 passwords is vulnerable * ONLY * based on the fact that someone has access to the app server (to acquire the salt), then your bcrypt doesn't help in many siutations either. If somebody had access to your server, what is stopping t

Re: Editing data

2011-09-14 Thread euromark
a less abstract code example would help you code post your "real" code. maybe this way we can figure out whats wrong with your code. On 14 Sep., 05:35, nOLL wrote: > Hi, > > I have a form that use 2 models(A,B). For create and view function it > was run perfectly, but there is a problem when edi