Re: ERD recommendation

2009-02-03 Thread Wayne Fay
> I was wondering if anyone has any recommendations for a database > design tool. I was hoping to use an OSS product. I generally use Squirrel SQL, or a DB editor in Eclipse/Netbeans IDE which can connect to "any" database that has a JDBC driver. For postgres, I also use pgAdmin. This page has

File upload stopped working

2009-02-03 Thread Günther Theilen
Hi, I'm a little bit lost here, maybe someone can help. A file upload on one of my sites (Cake 1.2) "suddenly" stopped working. The method isn't used very often so I can't exactly say since when it doesn't work anymore but I know that my hoster has moved to a new data center and I suspect that

Re: Validate belongsTo model in select element - inList does not seem to work?

2009-02-03 Thread Braindead
Brian, your solution seems to be ok, but there is one problem: Let's assume the selectbox contains the 3 items de, nl and dk. Selecting one of the items would pass the validation. But aa, ab, ac, ad, ae and so on would also pass the validation without being valid. So what is the way to go? I gue

Re: I can't use the cookies,how to login use the($this->Auth->login)

2009-02-03 Thread Rimoe
Yes, when login , I have no use the Auth->login(),but when add user, i must use the Auth->login(), my php version is php4.3 when I set ['session.use_cookies', 0 ] in session.php, I can't log in. Thanks for your answer. by the way, dou you know why is it I can't change the value of session.use_

Re: I can't use the cookies,how to login use the($this->Auth->login)

2009-02-03 Thread Miles J
You do not use Auth->login(), its automatic. http://www.milesj.me/blog/read/5/using-cakephps-auth-component --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

reverse routing and "pages"

2009-02-03 Thread brian
I've just come across[1] a neat way to deal with static pages over at CakeBaker's site. It's an improvement (imho) on Jonathan Snook's version[2] (which is also pretty neat). Though I'm leaning towards moving to this method, I'd really like to figure something out. I've had a system for serving s

Re: Plugin images (any update?)

2009-02-03 Thread mark_story
This has worked for quite some time now. There is an example in the debugKit, the cake icon is a plugin asset. /plugin_name/img/foo.jpg is an example path. Also http://book.cakephp.org/view/742/Plugin-CSS-and-Javascript works the same for images. Sub in $html->image for $html->css() -Mark O

Cake bake controller scaffold..

2009-02-03 Thread Mech7
I have not used cake for a while.. and now trying to pick it up again,, but when I do.. #cake bake controller articles It works.. when i do.. #cake bake controller articles -scaffold It doesn't work it say it needs a model... but i already baked the model and with scaffold it works ok... but I

Customized View for each User

2009-02-03 Thread psa
Hello. I'm new to cakePHP. I have this problem in my project application that I'm having difficulty determining the authenticated user information so that I can only display a list of designated accounts of him. I believe I have to filter the controller data at the view process but I don't where

Re: I can't use the cookies,how to login use the($this->Auth->login)

2009-02-03 Thread Rimoe
hi,groups, i have set the core.php =>Configure::write('Session.save', 'cake'); then I set the cake1.2\cake\libs\session.php in the function=> __initSession() switch (Configure::read('Session.save')) { case 'cake': if (!isset($_SESSION)) { if ($iniSet) { ini_set('session.use_trans_sid', 1); //c

Re: Auth not hashing passwd with scaffolded controller?

2009-02-03 Thread Heryudi Ganesha
After using 'cake bake' to generate user controller + views and trying add new username (with password), it works like a charm! All the passwords hashed beautifully. :) So it's true that auth component will not hash password in scaffoled mode. Thanks a lot. -- heryudi BrendonKoz wrote: > I

Re: Calling select queries within find()

2009-02-03 Thread brian
I posted a similar query here last week. I was hoping to use Set class to do the same. I guess grigri wasn't around ;-) Teknoid suggested this method: http://teknoid.wordpress.com/2008/09/29/dealing-with-calculated-fields-in-cakephps-find/ On Tue, Feb 3, 2009 at 8:41 PM, Miles J wrote: > > Ok

ERD recommendation

2009-02-03 Thread reidster
I was wondering if anyone has any recommendations for a database design tool. I was hoping to use an OSS product. Does anyone have any suggestions that work well with postgresql. Many thanks in advance. -Reid --~--~-~--~~~---~--~~ You received this message becau

Re: Calling select queries within find()

2009-02-03 Thread Miles J
Ok I got it working, but its outside of the array I want. Anyway to get it in there? [TeamsUser] => Array ( [id] => 1 [team_id] => 1 [user_id] => 2

Re: Debugging Auth component

2009-02-03 Thread Alfredo Quiroga-Villamil
Re-sending this. On Tue, Feb 3, 2009 at 8:30 PM, Alfredo Quiroga-Villamil wrote: > Andrea: > > Have you tried to remove the acl ? Remove the aros/acos tables for now > and just take it one step at a time again. > > Auth should not be the problem, you likely have something wrong in the > ACL, jus

Re: Calling select queries within find()

2009-02-03 Thread Webweave
The only change you need to make is to add the model name in front of the star, and to make sure the count syntax results in a usable field name: find('all', array('fields' => array('Post.*', '(SELECT COUNT(1) FROM comments Comment WHERE Comment.post_id = Post.id) AS comment_count'))); On Feb 3,

Calling select queries within find()

2009-02-03 Thread Miles J
Ive seen some people do this, but forgot exactly how it should be written. Im looking to grab a "total/count" for items within a query. For instance, if Im grabbing a list of blog entries, I also want to get a total of how many comments each entry has. Instead of doing a loop and doing more querie

Re: utf-8 encoding problem

2009-02-03 Thread Webweave
The "ci" flavors are for case-insensitive versions, so if you want "John" to be equal to "john" with no case conversion, you use one of them. The utf8_bin is the "normal" collation. On Feb 3, 10:28 am, BrendonKoz wrote: > While on this subject, which MySQL table encoding is the "normal", > defa

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Gwoo
sounds like you have the wrong fields. Everything works just fine. Please see the AuthComponent test cases in the nightly build or svn version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

paginate order A-Z and Z-A...I thought it was easy...

2009-02-03 Thread Mike Cook
I'm rather new to cake and I'm having trouble understanding how to have a simple sort on a title field using the pagenator. All I need is two links, one ascending and the other descending -- Title (ASC) | Title (DESC) At first I thought I could just set sort/direction, but perhaps doing this fro

Re: Select MAX(date)

2009-02-03 Thread gkc
That worked out just fine. Thanks! On Feb 3, 5:47 pm, housebolt wrote: > Methinks you're thinking a little too hard on this one. I'm pretty > sure you don't even need to use MAX(). > > $this->Model->find('first', array('order'=>'Model.date DESC')); > > Try that, I think that's what you're looki

Re: Select MAX(date)

2009-02-03 Thread housebolt
Methinks you're thinking a little too hard on this one. I'm pretty sure you don't even need to use MAX(). $this->Model->find('first', array('order'=>'Model.date DESC')); Try that, I think that's what you're looking for. If not explain a bit more and I'll see if I can help. On Feb 3, 3:53 pm, g

Re: Debugging Auth component

2009-02-03 Thread Andrea Cardinale
After wasting some other time on it I can't actually say I'm desperate. I've just wasted half an hour to rebuild an app from scratch following the simple acl tutorial again, but nothing to do, still having authorization issue. I'll probably just stop using auth and build my own component later :(

Select MAX(date)

2009-02-03 Thread gkc
How would I structure a query to return the newest entry based on a date? If I was writing out the query I would just use MAX(date) but Im not sure how would format the $this->Model->find(). Any help would be greatly appreciated. gkc --~--~-~--~~~---~--~~ You rec

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Andrea Cardinale
On Tue, Feb 3, 2009 at 10:32 PM, Zoltan wrote: > > I'm getting something like that too. Login form based on the code in > book.cakephp.org, but the page just reloads with no error. > > Zoltan > I haven't though about it before, but I'm experiencing some trouble with Auth too recently and I've up

Re: Auth component not working in 1.2.1.8004

2009-02-03 Thread Zoltan
I'm getting something like that too. Login form based on the code in book.cakephp.org, but the page just reloads with no error. Zoltan On Feb 2, 12:17 pm, MalContented wrote: > I have an application build with cake 1.2.0.7962 and implementing the > simple authentication detailed in the online m

Does Auth automatic hash work only with specific actions?

2009-02-03 Thread Andrea Cardinale
Hi guys, I really hope the answer to my question is yes, otherwise I can't understand what's going on. I have this two dummy functions in my user controller function register() { debug($this->data); } function resetPassword($ticket=null) {

Re: Validate belongsTo model in select element - inList does not seem to work?

2009-02-03 Thread brian
On Tue, Feb 3, 2009 at 2:40 PM, Mickiii wrote: > > Hi, > > I am trying to validate data from an association the I output to the > view like: > > $this->set('countries', $this->Customer->Country->find('list')); > > and in the view: > > echo $form->input('Customer.country'); // Results in select >

Re: svn or git?

2009-02-03 Thread Sam Sherlock
windows git support is getting better. SVN has a head start with GUI's, I have found that git extensions for windows to be nice - though msys-git has its quirks - I can't get gitweb to work from windows at all, but that is just being extra anyway. 2009/2/3 Esoteric > > I have used subversion fo

Validate belongsTo model in select element - inList does not seem to work?

2009-02-03 Thread Mickiii
Hi, I am trying to validate data from an association the I output to the view like: $this->set('countries', $this->Customer->Country->find('list')); and in the view: echo $form->input('Customer.country'); // Results in select How would I validate the input of this form? I was thinking I could

Re: svn or git?

2009-02-03 Thread Esoteric
I have used subversion for years, but what I love about git, is that I don't have to be online or dependent on a server to commit changes, commiting changes is almost completely instant with git and I only have to push to the server when I want to. Granted SVN has great windows support and GUI su

Re: odd database problem

2009-02-03 Thread Braindead
Did you already delete the cached files? I guess this should solve your problem. --~--~-~--~~~---~--~~ 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 unsub

Re: Security-Component-form-checks?

2009-02-03 Thread Braindead
As far as I know the SecurityComponent checks for hidden fields. But you could try it out using Firebug. ;-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-p

I can't use the cookies,how to login use the($this->Auth->login)

2009-02-03 Thread Rimoe
hi,groups, I can't use the cookies, how can I use the ($this->Auth->login($this->data))to login. 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@

Re: Auth - Login with Username OR Email

2009-02-03 Thread BrendonKoz
Dreamhost's support panel supports either...regardless, I agree that it's pretty rare to allow one OR the other - though it is possible to use an email AS the username. On Feb 3, 1:06 pm, brian wrote: > I suppose you could put the logic in beforeFilter(). If the > $this->params['action'] == 'log

Re: Auth not hashing passwd with scaffolded controller?

2009-02-03 Thread BrendonKoz
I believe the issue exists because automatic scaffolding is not for production use, but pre-development to give you a sense of the possible interaction of the site and your model relations. Once you use something that is more of a production-ready feature (such as Auth), it will no longer work pr

Plugin images (any update?)

2009-02-03 Thread Bob Mattax
I've found a couple posts regarding plugin images, and didn't know if anything has changed in the last few builds. Is there a good post on the best way to have a plugin contain images that it needs? Thanks --~--~-~--~~~---~--~~ You received this message because yo

Re: utf-8 encoding problem

2009-02-03 Thread BrendonKoz
While on this subject, which MySQL table encoding is the "normal", default utf-8 encoding? utf8_bin, or utf8_general_ci, or utf8_unicode_ci? On Feb 3, 8:48 am, Marcelo Andrade wrote: > On Tue, Feb 3, 2009 at 8:55 AM, mohammad al-ani > > wrote: > > Dr. Loboto all of my pages encoded with utf-8

Re: Newbie - web server user for tmp

2009-02-03 Thread brian
If you have terminal access: grep 'User ' /etc/httpd/conf/httpd.conf that'll likely show you something along the lines of: User apache User httpd etc. or: ps aux | grep httpd You should see the user in the 1st column On Tue, Feb 3, 2009 at 12:31 PM, neridaj wrote: > > I'm using Linux. > > On

Re: Auth - Login with Username OR Email

2009-02-03 Thread brian
I suppose you could put the logic in beforeFilter(). If the $this->params['action'] == 'login' check for $this->data['User']['username'] and, if it's empty (and email isn't) do" $this->data['User']['username'] $this->data['User']['email']; I don't understand why you'd want to do this, though. Ar

Re: Ajax - Jquery : lost name of the controller

2009-02-03 Thread brian
If the ajax function(s) concern elements that have been updated on the page (through ajax) then the event bindings may not be there. See this: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_AJAX_request.3F Perhaps this is the problem? On Tue, Feb 3, 200

help plz

2009-02-03 Thread monirr
ok here is my problem i'm new to cake and i bulid every thing ok so i have categories and recipes categories has many recipes , recipes belongs to categories i wanna access recipes by categories this for my public website what code should i put in order to access it by link and shows the rec

Re: Newbie - web server user for tmp

2009-02-03 Thread neridaj
I'm using Linux. On Feb 3, 12:00 am, Lakshmi wrote: > Hi, > > Are you using Windows or Linux?  If windows, please install a web server > like XAMPP.  Will help you have both CakePHP and MySQL. > > Regards, > Lakshmi > > On Tue, Feb 3, 2009 at 1:09 PM, neridaj wrote: > > > Hello, > > > I'm tryin

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread gkc
Ok, I got you. The extra whitespace was before the opening wrote: > On Feb 3, 5:46 pm, gkc wrote: > > > > > Ok, I removed the php close tag from all the models and controllers > > but that didnt work. > > > Here is the full error message I am getting: > > > =

Re: i wants to know how can i import contacts from Google, yahoo or others using cakephp

2009-02-03 Thread amar goud
Hello Oliver Block, i am new to this concept, i just downloaded the phpclasses from the following links. and i am getting contacts from yahoo succesfully. http://www.phpclasses.org/browse/package/3895.html from this link i downloaded contact grabber. what i have to do. --~--~-~--~

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread AD7six
On Feb 3, 5:46 pm, gkc wrote: > Ok, I removed the php close tag from all the models and controllers > but that didnt work. > > Here is the full error message I am getting: > > = > Warning (2): Cannot modify header information - headers already

Auth - Login with Username OR Email

2009-02-03 Thread Mike Digital Egg
Hi, I was wondering if anyone knows how to set the Auth component to allow login using either: Email + Password OR Username + Password I have seen lots of site that do this but can't work out how to do it in Cake. I have tried the below which doesn't work: [CODE]

Re: Upgraded cake to 1.2.1.8004 and getting "Undefined offset" error in configure.php in every action

2009-02-03 Thread ieatfood
Dr. Lecter, If you're referring to /app/tmp/cache then those are empty. Any other ideas? -Kuba On Feb 3, 7:02 am, "dr. Hannibal Lecter" wrote: > Just a dumb guess, but did you clear your app cache? > > On Feb 3, 1:17 pm, ieatfood wrote: > > > I just upgraded my system to use CakePHP 1.2.1.8

Reading Security-Component dataToken?

2009-02-03 Thread Aurelius
Hi! I create forms with JS (because of AJAX) instead of normal HTML, so it is it posible to use the really cool dataToken function as well? So what I would need is the value of the data[_Token][key] and data [_Token][fields]? thx Aurelius --~--~-~--~~~---~--~~ You

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread gkc
Ok, I removed the php close tag from all the models and controllers but that didnt work. Here is the full error message I am getting: = Warning (2): Cannot modify header information - headers already sent by (output started at /home/user/public

Re: svn or git?

2009-02-03 Thread pcdinh
It just proves that Linux kernel development is too large and too complex to be centralized. New drivers or new file systems can be developed separately several years before being merged into the core. That is why merging and branching are so good in Git. Regarding to medium project like PHP or

Re: Security-Component-form-checks?

2009-02-03 Thread Aurelius
anyone? On 31 Jan., 11:52, Aurelius wrote: > When I use the form-Helper and the security-component, do I have to > check if the user changes the value of hidden fields (like id, and > foreign keys like author_id) or do the security-component auto-check > that through the data[_Token][key]? > > t

Re: Created & Modified no longer set

2009-02-03 Thread Chad Casselman
Never figured it out exactly - was tons going on when this happened, but I changed all my created and modified to the values before with the NULL and then the trick was to delete the cache and I think that is when they started working. If that doesn't work for you, let me know and I'll try to retr

Re: Prototype AND extJS?

2009-02-03 Thread nige.ani...@googlemail.com
ExtJs uses the concept of foundation libraries to provide things like DOM manipulation, event handling, animation etc. Its class hierarchy is built on a foundation-agnostic adapter layer. You can use either ext-base as the foundation (A pure extJS foundation library), or Prototype, or jQuery, or

Re: Top 10 Framework

2009-02-03 Thread Marcelius
http://www.ibuildings.com/blog/archives/1543-My-framework-is-better-than-all-other-frameworks.html On 2 feb, 01:11, yusuf widi wrote: > Hi guyz... i got this somewhere on the net... > > http://www.phpframeworks.com/top-10-php-frameworks/ > > Why they put cake php on the fifth place? i dont think

odd database problem

2009-02-03 Thread hellfish
I have a Dev box with ubuntu, apache, php and mysql where I'm developing an application with the last CakePhp version. Everything works well. Problem is when I upload it to my ISP server. Every time a model is needed the app throws me the "Missing Database Table". The tables are there, the ap

Lightwindow support with cakephp

2009-02-03 Thread Abhishek
Hi, Does cakephp support lightwindow... the thing is when i give an absolute url like http://www.test.com/listings/view/20"; class="lightwindow" >Test it works fine .. but when i use the helper link('View',array ('controller'=>'test','action'=>'temp1'),array ('class'=>'lightwindow')); ?> it doe

extJS and i18n

2009-02-03 Thread Aurelius
Hi! I couldn't find something on the net, so here's my Question: How can I work with extJS and i18n? Normally the extJS-code is written in an external js-file, but there is no __()-function. So should I just write the extJS-Code in the HTML or is there a more convenient way of doing that? thx Ro

Re: svn or git?

2009-02-03 Thread Martin Westin
@Sam I use this to clean my folders before uploading to the production server (I don't checkout to that server). cd where/you/have/svn/crap find ./ -name ".svn" -exec rm -rf {} \; /Martin On Feb 3, 2:34 pm, Sam Sherlock wrote: > For me Git because "complex is better than complicated, now is

Re: Upgraded cake to 1.2.1.8004 and getting "Undefined offset" error in configure.php in every action

2009-02-03 Thread dr. Hannibal Lecter
Just a dumb guess, but did you clear your app cache? On Feb 3, 1:17 pm, ieatfood wrote: > I just upgraded my system to use CakePHP 1.2.1.8004 from RC2, and I'm > getting the following error even on actions with just a die(); command > in them: > > Notice (8): Undefined offset:  0 [/home/rmsc/rms

Re: Auth not hashing passwd with scaffolded controller?

2009-02-03 Thread Webweave
Once you turn on Auth, the passwords will get hashed automagically by Cake (assuming you have 'Auth' in your $components, and your beforeFilter logic is right). If you have existing rows that were added before you turned Auth on, you will likely need to update them so that they get stored in the

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread AD7six
On Feb 3, 7:45 am, gkc wrote: > I have researched this problem and have already removed any blank > space after the closing php tag. > > Here is the controller code: > >    function beforeFilter() { >                 if(isset($this->params['admin'])) { >                         $this->checkAdmi

Re: utf-8 encoding problem

2009-02-03 Thread Marcelo Andrade
On Tue, Feb 3, 2009 at 8:55 AM, mohammad al-ani wrote: > Dr. Loboto all of my pages encoded with utf-8 and the problem is not in my > page the problem is with the firefox and everything go perfect with IE It works on IE because the CP-1252 encoding is a Windows-specific encoding that works prima

Re: Cannot modify header information - headers already sent by

2009-02-03 Thread Marcelo Andrade
On Tue, Feb 3, 2009 at 3:45 AM, gkc wrote: > (..) > Again, I have already removed all the extra whitespace from the end of > all models, controllers, and views. I don't analyze your code. But you made the correct action removing extra spaces like that's the primarily cause of this problem. Any

Re: Created & Modified no longer set

2009-02-03 Thread Turgs
Hi Chad Did you find your problem? I've just realised I have the same issue (except I haven't upgraded yet). Cheers Turgs On Jan 31, 7:52 am, Chad Casselman wrote: > This is the table: > > CREATE TABLE IF NOT EXISTS `requests` ( >   `id` int(11) NOT NULL auto_increment, >   `created` datetime

Re: svn or git?

2009-02-03 Thread Sam Sherlock
For me Git because "complex is better than complicated, now is better than never" also AFAIK git can svn, though svn can not git. I might perhaps revisit svn after becoming fully intimate with all that git has to offer. As I never really got of the ground with SVN whereas I got right into git th

Re: utf-8 encoding problem

2009-02-03 Thread Webweave
Must be something wrong with your copy of Firefox: I don't get any mis- encoding of the URL in mine. I have version 3.0.5 and tested it both on Windows XP and Mac OS X with no problems. The URL that gets displayed in the browser by pressing enter in the address bar is the one with the Arabic cha

Re: Top 10 Framework

2009-02-03 Thread Dérico Filho
There is this "Johnsa" who said that loved CakePHP but voted one star :-s On Feb 1, 10:11 pm, yusuf widi wrote: > Hi guyz... i got this somewhere on the net... > > http://www.phpframeworks.com/top-10-php-frameworks/ > > Why they put cake php on the fifth place? i dont think we were worse than >

Re: svn or git?

2009-02-03 Thread Esoteric
While the PHP Core team is important, the linux kernel the foundation of most modern linux systems is on git, that should prove something. (just playing devil's advocate to you comment.) On Feb 3, 4:44 am, Dinh wrote: > PHP Core Team decides that Subversion is more relevant than Git. > That's wh

Upgraded cake to 1.2.1.8004 and getting "Undefined offset" error in configure.php in every action

2009-02-03 Thread ieatfood
I just upgraded my system to use CakePHP 1.2.1.8004 from RC2, and I'm getting the following error even on actions with just a die(); command in them: Notice (8): Undefined offset: 0 [/home/rmsc/rmsc/cake/cake/libs/ configure.php, line 1185] __destruct - [internal], line ?? app::__destruct() - /h

Best practise for use XML with XSL

2009-02-03 Thread marco.rizze...@gmail.com
Hi I have Cake 1.2 installed. Now I have some xml view that I would use with some XSL. What is the best practise to do it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

Re: utf-8 encoding problem

2009-02-03 Thread mohammad al-ani
Dr. Loboto all of my pages encoded with utf-8 and the problem is not in my page the problem is with the firefox and everything go perfect with IE see my last reply to Webweave On Tue, Feb 3, 2009 at 6:50 AM, Dr. Loboto wrote: > > Mohammad Al-Ani, you really found your real problem - your page i

Re: utf-8 encoding problem

2009-02-03 Thread mohammad al-ani
Webweave i didn't know how to explain my problem well because of my poor English but to know what i mean with my problem just open your tiny url http://tinyurl.com/b8fl58 and with that the firefox request will be in the utf-8 encoding but if you click on the firefox address bar and press enter to

Re: Latest Cake Release breaks HABTM pagination

2009-02-03 Thread palam
Oh wait, no, that shouldn't matter, I can just unbind later... On Feb 3, 4:30 pm, palam wrote: > I had the same problem, and after hours of searching, I've come across > some luck. Here is what I did to get it to work: > > I don't quiet understand why, but this seems to fix the issue with > 1.2.

Re: Latest Cake Release breaks HABTM pagination

2009-02-03 Thread palam
I had the same problem, and after hours of searching, I've come across some luck. Here is what I did to get it to work: I don't quiet understand why, but this seems to fix the issue with 1.2.1.8004. I just hope there aren't any side-effects. I made $reset (second parameter for bindModel) to fals

Ajax - Jquery : lost name of the controller

2009-02-03 Thread a.b
Hello, I have a page or there is a display of services in relation to a address (drop-down list) When I arrive on this page, the ajax is working properly. It is a form. if there error in the form, the page is redisplayed with messages errors. and the ajax not working anymore. I lost the name of

Re: Newbie needs help with CakePHP / ModelBaker

2009-02-03 Thread Jon Bennett
Hi Chris, > OK, I have done the pages_controller work and the views/pages/home.ctp > is there and working but still not producing data and I still can't > figure out what the proper syntax is. > > I can understand that the router code is saying that the display > function in restaurants_cont

Re: Use the dreaded requestAction()... or use something else?

2009-02-03 Thread RichardAtHome
Request action isn't *that* bad ;-) In this case request action should be fine as you wont be calling it very often (as opposed to say from in an element that is displayed on every page). That said, Graham's suggestion is a better solution. Note, to get the best performance from requestAction y

Re: i wants to know how can i import contacts from Google, yahoo or others using cakephp

2009-02-03 Thread "Oliver Block"
Hello amar goud, would you send the hyperlink for the yahoo-/google-side part of the data exchange? I might also be possible to utilize the zend framework as 3rd party app. Best Regard, Oliver On Feb 2, 4:50 am, amar goud wrote: > Thank u > Novice Programmer > > i am browsing in net for how

Re: content_for_layout

2009-02-03 Thread Braindead
On your website you will most likely have parts that are displayed on every page and other parts that change. $content_for_layout contains the part that changes. :-) Hope that helps. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Newbie needs help with CakePHP / ModelBaker

2009-02-03 Thread Chris Mc
OK, I have done the pages_controller work and the views/pages/home.ctp is there and working but still not producing data and I still can't figure out what the proper syntax is. I can understand that the router code is saying that the display function in restaurants_controller.php should be used t

Re: svn or git?

2009-02-03 Thread Dinh
PHP Core Team decides that Subversion is more relevant than Git. That's why PHP source code is migrated from CVS to Subversion. Think about that. -- -- http://groups.google.com/group/phpvietnam --~--~-~--~~~---~--~~ You received this message because y

Auth not hashing passwd with scaffolded controller?

2009-02-03 Thread Heryudi Ganesha
Hi all, Just curious. Currently i'm trying auth component following this tutorial: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user pass

Auth not hashing passwd with scaffolded controller?

2009-02-03 Thread Heryudi Ganesha
Hi all, Just curious. Currently i'm trying auth component following this tutorial: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited When I create a new user and submit it (scaffold mode), the password is not hashed - it display clear text user passw

content_for_layout

2009-02-03 Thread Maulik
hi i m beginner in cakephp what is the use of content_for_layout in cakephp ? --~--~-~--~~~---~--~~ 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 unsubsc

Re: the domain can't been login.

2009-02-03 Thread Rimoe
it is because the 'session.use_trans_sid', 0 has been setting in the cakephpbut i have change the setting to=> 'session.use_trans_sid', 1 in the cake\libs\session.php the result have no any change. 2009/2/3 Rimoe > hi, > > everyone > > the value of _SERVER["HTTP_COOKIE"] are different, > > t

Re: Newb - editing httpd.conf for mod_rewrite

2009-02-03 Thread Lakshmi
Hi Just add a new DocumentRoot directory and set AllowOveride All to this blank httpd.conf file. That would be fine. Regards, Lakshmi On Tue, Feb 3, 2009 at 1:53 PM, neridaj wrote: > > Hello, > > I've setup CakePHP on OSX and am now trying to set things up on Ubuntu > 8.10. When I modified the

Newb - editing httpd.conf for mod_rewrite

2009-02-03 Thread neridaj
Hello, I've setup CakePHP on OSX and am now trying to set things up on Ubuntu 8.10. When I modified the httpd.conf file on OSX there was a directory section for the DocumentRoot, however, when I open the httpd.conf file on Ubuntu the file is blank. Do I just add a new DocumentRoot directory and s

Re: Prototype AND extJS?

2009-02-03 Thread Martin Westin
I have only had a shallow look at ExtJS but as I see it: Prototype is a javascript framework with ajax ExtJS is an Ajax and GUI framework built in javascript That is: Prototype is used to put some nice ajax on your web-app and ExtJS is something you build your app in from the start. Using ExtJS

Re: svn or git?

2009-02-03 Thread Martin Westin
Just found this website in relation to the whole "What the Eff is this git thing I keep hearing about?" http://gitready.com/ On Feb 2, 1:40 pm, Martin Westin wrote: > @leo I know what you mean. That is why, for two years, I stubbornly > kept using SmartSVN, which is free but horrible in compa

Re: Newbie - web server user for tmp

2009-02-03 Thread Lakshmi
Hi, Are you using Windows or Linux? If windows, please install a web server like XAMPP. Will help you have both CakePHP and MySQL. Regards, Lakshmi On Tue, Feb 3, 2009 at 1:09 PM, neridaj wrote: > > Hello, > > I'm trying to set things up for CakePHP and was unsure how to figure > out who the