Re: Display images outside webroot folder

2010-07-27 Thread rez...@gmail.com
thanx for all I tried to use MediaView but failed to use it in my case my case : each user upload his picture and I store the pic. name in database the problem occurred when I displayed list of all users pictures I entered the folder into webroot/img is there any risk doing that ? Check out

Interfacing with Android app (and/or iPhone)

2010-07-27 Thread Mario
Hi all, I have developed with CakePHP a social network website complete with mobile version for mobile browsing. Users are authenticated with Auth and also tracked with cookies if not authenticated. Now I want to develop the related Android app (and later on the iPhone one), but before starting

Re: cakeDC Tag Plugin Delete issue

2010-07-27 Thread abocanegra
That was one of the first things I tried. However i could not get it to work since id and tag-id in theged fields are encrypted. On Jul 15, 7:35 am, Kirk k...@kirkkahn.com wrote: I think I know what the problem is. It just occurred to me that all you have to do is add a condition in the

Problems with controller not found

2010-07-27 Thread Anderson Valongueiro
Hi, guys! I have a problem. I never before use the pages_controller, because never need this. But today i needed create the pages_controller, by first time, and create the packages_controller too. The pages_controller set the value to main page in the display function... and the

Re: how to paginate results using ajax

2010-07-27 Thread Deny Prasetyo
Or you can try JQGrid. A Grid Plugin for JQuery. http://www.trirand.com/blog/ On 07/27/2010 07:24 AM, Vinicius NЗЯez wrote: Thanks, Norman! I'm going to try it! On 26 jul, 15:35, Norman Paniaguanormanpania...@gmail.com wrote: Its the same if you paginate a normal web only that you use

Problem with Login Redirect

2010-07-27 Thread sebas46825
hello, i have a problem with the login redirect i dont no why but when i write the loginRedirect it not redirect me, just show me the login page and i want to redirect to another page. i manually inserted the username and pasword in the database. any help would be great, thanks NOTE: if some see

CakePhp Wordpress Integration

2010-07-27 Thread jasmin wish
Hi, I have created a admin panel in Cakephp and want to add blog section in it so that admin can post a blog from there. So i've installed the wordpress on app/webroot/blog folder and its working. But now the issue is to when i logged-in from admin panel,i need to do automatic login as admin

problem with select menu(form)

2010-07-27 Thread hoss7
i have this: echo $form-input('ostan_id'); : this is some select menu(combobox),i have data from table,like show years i want add please select in first option with value '0',what i am must to do? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread Jon Bennett
I agree, it does feel soon, but hopefully this will push [serious] hosting companies to upgrade their PHP installs to 5.3.x, which is a good thing IMHO. anyone looking for serious hosting will be able to sort this for themselves anyway, shared != serious imo. j On Jul 26, 5:19 pm, cricket

Re: problem with select menu(form)

2010-07-27 Thread Mike Karthauser
On Tue, July 27, 2010 1:27 pm, hoss7 wrote: i have this: echo $form-input('ostan_id'); : this is some select menu(combobox),i have data from table,like show years i want add please select in first option with value '0',what i am must to do? do something like this echo

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread Graham Weldon
PHP 5.2 has been around since late 2006. I'm not sure 3.5 years constitutes soon. We are aware of the EOL being issued, and do understand that some hosts can be slow in updating. As Larry has said, CakePHP 2.0 will run fine on PHP 5.2.6+ including 5.3 versions. The support for 5.2 means we

Re: CakePhp Wordpress Integration

2010-07-27 Thread Hugo M
You can't just enter the information in the wordpress posts table? 2010/7/27 jasmin wish dwis...@gmail.com: Hi,     I have created a admin panel in Cakephp and want to add blog section in it so that admin can post a blog from there. So i've installed the wordpress on app/webroot/blog folder

Re: CakePhp Wordpress Integration

2010-07-27 Thread euromark
i once stumpled upon this: http://bitbucket.org/pixelastic/caracole-bbpress/src/a87149cbba0e maybe something similar could be created for wordpress? On 27 Jul., 15:36, Hugo M ham1...@gmail.com wrote: You can't just enter the information in the wordpress posts table? 2010/7/27 jasmin wish

Re: CakePhp Wordpress Integration

2010-07-27 Thread Shaz
You would be better off building the blog yourself using cake rather than integrating wordpress :) On Jul 27, 2:58 pm, euromark dereurom...@googlemail.com wrote: i once stumpled upon this:http://bitbucket.org/pixelastic/caracole-bbpress/src/a87149cbba0e maybe something similar could be

Re: Problem with Login Redirect

2010-07-27 Thread Shaz
Where does loginRedirect redirect you at the moment? Or no redirects at all? On Jul 27, 6:16 am, sebas46825 sebas46...@gmail.com wrote: hello, i have a problem with the login redirect i dont no why but when i write the loginRedirect it not redirect me, just show me the login page and i want to

Re: Login Redirect

2010-07-27 Thread Shaz
Read the 1.2 to 1.3 migrating guide - a few things have changed here and there, enough to cause a few headaches but easily updated. On Jul 27, 12:10 am, Dave Maharaj m...@davemaharaj.com wrote: I am upgrading from 1.2 to 1.3 and when I try to login I get redirecting forever message. I never

Re: Problems with controller not found

2010-07-27 Thread Shaz
Create the DB table and use cakebake. On Jul 26, 10:44 pm, Anderson Valongueiro anderson.valongue...@gmail.com wrote: Hi, guys! I have a problem. I never before use the pages_controller, because never need this. But today i needed create the pages_controller, by first time, and create the

Re: Interfacing with Android app (and/or iPhone)

2010-07-27 Thread Shaz
* I expect to exchange data via JSON (services already in place for some JS and Flex features) but as the request is not coming from a browser, how do I get info about the user / phone? Some info are contained in the HTTP request? How do I parse them? * Authentication: which the best (and

Re: How to organize common/shared lookup functions? A component?

2010-07-27 Thread geste
Note to self: Don't post long, meandering questions late on a Friday afternoon :) Jim On Jul 23, 3:15 pm, geste jim.ho...@gmail.com wrote: A few days ago I asked how to best create a read-only interface from our Drupal intranet instance to our CakePHP business app (on the same host).  

Re: problem with select menu(form)

2010-07-27 Thread hoss7
thank you mike Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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

REST connect to component function?

2010-07-27 Thread geste
I am trying to gather some common functions in a component I am calling Lookup. This will house basic functions like LookupUserLastFirst (to produce lists of users sorted by last name and first name). Part of my purpose in doing this is to make some of these functions available on a read-only

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread j0n4s.h4rtm...@googlemail.com
Actually I find that the PHP platform always moved rather slow and cake in the means of php version even slower, I do not get why 5.2 was considered at all, mostly because 5.3 and 6.0 are claimed to be close to each other (while the functional gap between 5.2.x and 5.3.x is huge) On Jul 27, 3:00 

Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Hi, I'm using CakePHP 1.3.3 and Firefox 3.6.6 under WinXP. My add user form (in an admin context) has it's password field always filled in by the Auth password of the connected user, even I write: value='' in the input options. And another very strange behavior on the same form: the email field

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread Norman Paniagua
I think it's your browser that fills your field, try to see the html code that it generate and if the value is empty it's your browser, otherwise it's cake --- Norman Paniagua 2010/7/27 avairet avai...@cakephp-fr.org Hi, I'm using CakePHP 1.3.3 and Firefox 3.6.6 under WinXP. My add user

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Ok, thanks Norman! Apparently it's Firefox that fills the field but why email and not username? How to avoid this behavior? Because it's disturbing for non-specialist users... avairet On 27 juil, 18:57, Norman Paniagua normanpania...@gmail.com wrote: I think it's your browser that fills your

Change Password

2010-07-27 Thread Davor Ilic
Hi i have a problem with my password row. i have to use the row - pwd but if i do this to login i got this array: Array ( [User] = Array ( [email] = m...@ema.il [pwd] = mypassword [password] = ) ) it seems that i can´t say don´t use

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread avairet
Ok, it's the Forms History of Firefox that store those informations. If I delete stored usernames and passwords, then fields in my form are empty. But I don't understand why Firefox fills email field instead of username? On 27 juil, 19:06, avairet avai...@cakephp-fr.org wrote: Ok, thanks Norman!

problem select menu with optgroups

2010-07-27 Thread hoss7
i have this array: Array ( [0] = Array ( [Cat] = Array ( [id] = 1 [title] = cat1 [status] = 1 ) [Subcat] = Array ( [0] = Array

Re: Change Password

2010-07-27 Thread mike karthauser
hi Davor you probably need to sort your Auth fields array http://book.cakephp.org/view/1251/Setting-Auth-Component-Variables which will allow you to access pwd into Auth. On 27 Jul 2010, at 18:08, Davor Ilic wrote: Hi i have a problem with my password row. i have to use the row - pwd

Best place to put constants?

2010-07-27 Thread Hugo M
Hi all! What is the best place to put configuration variables (like Configure::write('bla', 'bla2'))? I'm doing that in core.php Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

Re: Best place to put constants?

2010-07-27 Thread mike karthauser
On 27 Jul 2010, at 19:15, Hugo M wrote: Hi all! What is the best place to put configuration variables (like Configure::write('bla', 'bla2'))? I'm doing that in core.php look at Configure::load http://book.cakephp.org/view/924/The-Configuration-Class My config file is called custom.php

Re: problem select menu with optgroups

2010-07-27 Thread Norman Paniagua
Try with $form-input('FieldName'); or $form-input('FieldName', array('options'=$arrayValues)); --- Norman Paniagua 2010/7/27 hoss7 hoss...@gmail.com i have this array: Array ( [0] = Array ( [Cat] = Array ( [id] = 1

Re: REST connect to component function?

2010-07-27 Thread majna
You can't route to component but you can crate proxy controller and use PHP's __call() to re-route to component method . maybe like this: RestController: function rest($method) { $this-{$method}(); } public function __call($method, $arg) { return call_user_func(array($this-Beer,

Re: REST connect to component function?

2010-07-27 Thread majna
replace component call $this-Beer by $this-Rest :) On Jul 27, 9:13 pm, majna majna...@gmail.com wrote: You can't  route to component but you can crate proxy controller and use PHP's __call()  to re-route to component method . maybe like this: RestController: function rest($method) {    

Re: REST connect to component function?

2010-07-27 Thread geste
Majna, This is very helpful. I will have to re-read a few times, but very helpful! With such a RestController, it seems like I could then include the component in AppController or other controllers for non-REST access. My goal is to not duplicate simple functions like person and country

Re: Change Password

2010-07-27 Thread Davor Ilic
ok thats cool thanks. i have also another question. and where can i find this. because in my user table all of them don´t have a security salt or anything they are only in md5 and my user have to login they don´t need any security salt only md5. how can i cahange this. 2010/7/27 mike

Test Controller with Fixtures problem

2010-07-27 Thread generaltao
I'm getting a terribly strange problem whereby if I add the var $fitures to my test controller I end up with a very specific error when firing testAction. I had to add a $fixtures collection simply because we have a whole bunch of models in the system already and it seemed to be looking for

Cakephp Xml error

2010-07-27 Thread helder oliveira
Hey guys, i am developing under centos: php-mysql-5.1.6-27.el5 php-xml-5.1.6-27.el5 php-common-5.1.6-27.el5 php-pdo-5.1.6-27.el5 php-xmlrpc-5.1.6-27.el5 libxml2-2.6.26-2.1.2.8 xml-common-0.6.3-18 xml-commons-1.3.02-0.b2.7jpp.10 php-xmlrpc-5.1.6-27.el5 And when i am trying to use the Helper Xml

Editing .xls files

2010-07-27 Thread srumjant
Hello, I have a .xls file and I would like to know if there is a way to change data in it somehow using some php library or even better some kind helper for cakephp. I have checked this helper - http://ykyuen.wordpress.com/2009/10/04/cakephp-export-data-to-a-xls-file/ But it would be really hard

Re: Change Password

2010-07-27 Thread Davor Ilic
My login doesn´t redirect me to the securitysite. 2010/7/27 Davor Ilic webfa...@gmail.com ok thats cool thanks. i have also another question. and where can i find this. because in my user table all of them don´t have a security salt or anything they are only in md5 and my user have to login

Re: Change Password

2010-07-27 Thread Davor Ilic
do i use the logn method wrong? function admin_login() { $this-Auth-password($this-data['User']['passwort']); $this-Auth-login($this-data); } 2010/7/27 Davor Ilic webfa...@gmail.com My login doesn´t redirect me to the securitysite. 2010/7/27 Davor Ilic webfa...@gmail.com ok thats

Re: Change Password

2010-07-27 Thread Davor Ilic
or like this 2010/7/27 Davor Ilic webfa...@gmail.com do i use the logn method wrong? function admin_login() { $this-Auth-password($this-data['User']['passwort']); $this-Auth-login($this-data); } 2010/7/27 Davor Ilic webfa...@gmail.com My login doesn´t redirect me to the

Re: Change Password

2010-07-27 Thread Davor Ilic
function admin_login() { $this-data['User']['passwort'] = md5($this-data['User']['passwort']); $this-Auth-login($this-data); } 2010/7/27 Davor Ilic webfa...@gmail.com or like this 2010/7/27 Davor Ilic webfa...@gmail.com do i use the logn method wrong? function

Re: Change Password

2010-07-27 Thread Davor Ilic
function admin_login() { $this-data['User']['passwort'] = md5($this-data['User']['passwort']); $this-Auth-login($this-data); } 2010/7/27 Davor Ilic webfa...@gmail.com function admin_login() { $this-data['User']['passwort'] = md5($this-data['User']['passwort']);

without hashing Password and only md5

2010-07-27 Thread Davor Ilic
hi, wont´t to know how i can change this to only do the md5() because my older userdb have only md5() and i tried this before: Security::setHash('md5'); but dont don´t know where to put in this in (Controller or Model or in Core). also i don´t wanna use hashes in password because the users

Re: without hashing Password and only md5

2010-07-27 Thread Davor Ilic
i solved it in the userscontroller and beforeFilter() when anyone want to know this 2010/7/27 Davor Ilic webfa...@gmail.com hi, wont´t to know how i can change this to only do the md5() because my older userdb have only md5() and i tried this before: Security::setHash('md5'); but dont

Re: HABTM Saving

2010-07-27 Thread sanedevil
Thanks Norman, However, it dint work :( The problem is that I can't save multiple links of Profile and User. I can only do one at a time. hence, $data['Profile']['id'] = 1234 works, but $data['Profile'][0] ['id'] = 1234 doesn't work :( any lights? On Jul 27, 1:15 am, Norman Paniagua

Re: Inflector::slug preg_replace is not working as expected.

2010-07-27 Thread Boris
Thank you, I got the hints from here on caching issue, as CacheHelper is using the Inflector::slug function, my pages can't be cached correctly, e.g. home.php changed to o_m.php On Jul 7, 2:47 pm, junaidart junaid...@gmail.com wrote: You are right, it was issue with PCRE Library, I have upgraded

Re: HABTM Saving

2010-07-27 Thread DCrews
if $this-data is structured like the following: array( ['User'] = array( 'id' = xxx ), ['Profile'] = array( [0] = array( 'id' = xxx, 'whatever' = whatever, etc... [1] = array( 'id' = xxx,

Re: Add user form has password field filled in by Authenticated user...

2010-07-27 Thread Dr. Loboto
Because it's forms history is not flawless, that's all. You can force form fields reset by JS: document.getElementById('your_form_id').reset(); On Jul 28, 12:10 am, avairet avai...@cakephp-fr.org wrote: Ok, it's the Forms History of Firefox that store those informations. If I delete stored

Re: Best place to put constants?

2010-07-27 Thread Dr. Loboto
bootstrap.php is for this purpose. Other files may be needed too if you need to setup a lot of data. Better do not touch core.php with custom variable set as it may change with Cake update and yours code there may make this update harder. On Jul 28, 1:15 am, Hugo M ham1...@gmail.com wrote: Hi

Re: PHP 5.2 no longer supported (Implications for cake 2.0) ??

2010-07-27 Thread #2Will
Jon, i see what you're saying, but plenty of us are making small - medium size sites that deploy to clients hosting (shared) and run just fine. Its serious to them :) If you don't operate in this space, you would be amazed how clients baulk at even top end shared hosting prices (but dreamhost is