Reverse routing and index action

2008-05-14 Thread Marcelius
Hi Is it possible to make the reverse routing work so that it doesn't add an index action to the url? For example: //In routes.php: Router::connect('/contact/:action/*', array('controller' => 'contacts')); //in some other file: $url = Helper::url(array("controller"=>"contacts")); $url now cont

Do i understand the concept of ajax correctly ?

2008-05-14 Thread salimk786
Hello, I am using jquery and cakephp. I wrote some info on this link. Can you pls tell me if this is the right way to do it ? or if there is a better way ? http://pastebin.com/m247e9d3d Thanks Salim. --~--~-~--~~~---~--~~ You received this message because you

Re: MySQL Import from excel

2008-05-14 Thread Abhimanyu Grover
If its needed for one-time purpose only, then simple use Import tab from PHPMyadmin. Otherwise create a decent model+controller function to handle bulk import. It would be pretty simple, and has nothing to deal with Cake. On May 15, 8:49 am, "(withheld)@gmail.com" <[EMAIL PROTECTED]> wrote: > I'v

MySQL Import from excel

2008-05-14 Thread (withheld)@gmail.com
I've been developing a site for a golf club, currently they store their member details in an excel spreadsheet. What is the best way to get my data into MySQL? so far i'veexperimened a bit with csv files but that proves to be a bit tedious to get right. --~--~-~--~~~-

Re: installing cakephp on a subdomain

2008-05-14 Thread jonknee
> Thanks but, this is my friend's server and I just talked to him on the > phone. He said that he didn't want to give me total access (to Apache) > because he didn't want me to break his server. I respect that and, > will have to wait a couple of day to have all my domains and client's > domains g

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread Dr. Tarique Sani
On Thu, May 15, 2008 at 1:51 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > The worst thing that will happen if you file a ticket is that it will > be rejected along with an explanation. There might be a snarky > comment associated with it, but that's it. Corollary to the above - Don a bit o

Re: installing cakephp on a subdomain

2008-05-14 Thread onajide
Thanks but, this is my friend's server and I just talked to him on the phone. He said that he didn't want to give me total access (to Apache) because he didn't want me to break his server. I respect that and, will have to wait a couple of day to have all my domains and client's domains get transfe

1.2 Validation Question

2008-05-14 Thread MikeK
I have read the posts extensively on this topic and believe I finally have this working the way I need it to. Just wondering if the gurus (yes that's you Nate!) could confirm I got it done the right way. I am quite excited by the richness of the 1.2 validation feature -- I'm removing all the uglin

Re: Auth/Acl, limited accounts and endless redirects

2008-05-14 Thread David Christopher Zentgraf
Done: http://bin.cakephp.org/view/579746692 Please have a look. On 14 May 2008, at 19:41, Marcin Domanski wrote: > > post your app_controller and routes.php to the bin > > On Wed, May 14, 2008 at 10:03 AM, David Christopher Zentgraf > <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I ran into this s

Re: Strange query being generated by CakePHP

2008-05-14 Thread Joel Perras
I'm guessing that you're using either MSSQL or PostgresSQL, since I believe they are the only databases that don't allow full table aliasing. As a result, Cake needs to generate the field list for SQL queries to remain consistent across all DBs. The aliasing is done from the dbosource to emulate

Re: Ajax form submission

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 6:01 PM, koala kid <[EMAIL PROTECTED]> wrote: > > I am new to cake and have just built my first site using it. To spice > it up I wanted to add a newsletter sign-up form on the home page that > uses Ajax to both submit the email address and provide a response. > However the

Ajax form submission

2008-05-14 Thread koala kid
I am new to cake and have just built my first site using it. To spice it up I wanted to add a newsletter sign-up form on the home page that uses Ajax to both submit the email address and provide a response. However the documentation appears to be lacking and I can't find a good example anywhere of

Re: Strange query being generated by CakePHP

2008-05-14 Thread b logica
Try renaming (or copying) your table and model to something else. I have a hunch that "quote" is causing the problem (eg. in collaboration with an extract() somewhere). On Wed, May 14, 2008 at 6:28 PM, Grant Cox <[EMAIL PROTECTED]> wrote: > > What database are you using? MySQL, or something els

Re: Strange query being generated by CakePHP

2008-05-14 Thread egi
if you're using adodb for database connection, i have filed the error on trac https://trac.cakephp.org/ticket/4130 and the suggested fix. On May 15, 3:21 am, TracyB <[EMAIL PROTECTED]> wrote: > I have a model using a table that's been around forever, so it's not a > CakePHP friendly name. My mode

Re: Strange query being generated by CakePHP

2008-05-14 Thread Grant Cox
What database are you using? MySQL, or something else? What database connection options are you using - perhaps post the $design configuration from your /app/config/database.php (remove your username/ password of course :P) Also, what version of Cake? On May 15, 6:21 am, TracyB <[EMAIL PROTEC

Re: installing cakephp on a subdomain

2008-05-14 Thread Samuel DeVore
one thing that happened to someone I know recently on their shared host was a recent upgrade to webmin caused the folder permissions to be wedged in the new virtual host folders that were created, causing all kinds of problems with include and require calls in php Sam D On Wed, May 14, 2008 at 2

Re: installing cakephp on a subdomain

2008-05-14 Thread jonknee
> Huh? If there has been Cake running on that (shared) box how is it not > configured properly? There was a Cake install on one of my other > domains when we (a friend and myself) decided Cake would solve the > issues set out in front of us. Of course, he installed it as he's the > developer. I'm

Re: Strange query being generated by CakePHP

2008-05-14 Thread simonb
very strange what is you table structure? On May 14, 9:21 pm, TracyB <[EMAIL PROTECTED]> wrote: > I have a model using a table that's been around forever, so it's not a > CakePHP friendly name. My model is set up like so: > > class Quote extends AppModel > { > var $name = 'Quote'; > var $useTabl

Re: Displaying swf files?

2008-05-14 Thread alxlevin
Success! The problem was twofold. First, for whatever reason, I had to use the embedSWF command instead of setting up a new SWFObject. Second, the path to the swf file had to be a more fully qualified path. I'm including my working code below. Hopefully it will help someone else with a similar

Re: Displaying swf files?

2008-05-14 Thread alxlevin
Clark, what should it be there? That would certainly explain things if the path is incorrect. Jonathon, I've set the safe parameter to false in the javascript codeblock call and that made no difference. On May 14, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > pickme/index.php/_swf/t

Re: Displaying swf files?

2008-05-14 Thread [EMAIL PROTECTED]
try not using html->url() and just using /_swf/test.swf On May 14, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > pickme/index.php/_swf/test.swf' <-- that's not right > > On May 14, 5:01 pm, alxlevin <[EMAIL PROTECTED]> wrote: > > > I appreciate the help as I'm pretty stumped on this o

Re: Displaying swf files?

2008-05-14 Thread [EMAIL PROTECTED]
pickme/index.php/_swf/test.swf' <-- that's not right On May 14, 5:01 pm, alxlevin <[EMAIL PROTECTED]> wrote: > I appreciate the help as I'm pretty stumped on this one. Firebug > doesn't seem to give any errors. As far as I can tell, the js file is > correctly being loaded (I can see the code in

Re: installing cakephp on a subdomain

2008-05-14 Thread [EMAIL PROTECTED]
there's not really anything to "install"; getting the Save As... window when you try and access a PHP file has nothing to do with Cake On May 14, 4:23 pm, onajide <[EMAIL PROTECTED]> wrote: > Huh? If there has been Cake running on that (shared) box how is it not > configured properly? There was a

Re: installing cakephp on a subdomain

2008-05-14 Thread onajide
Huh? If there has been Cake running on that (shared) box how is it not configured properly? There was a Cake install on one of my other domains when we (a friend and myself) decided Cake would solve the issues set out in front of us. Of course, he installed it as he's the developer. I'm trying to

Re: Displaying swf files?

2008-05-14 Thread Jonathan Snook
>> >> > echo $javascript->codeBlock(" >> var so = new SWFObject('".$html->url('/_swf/test.swf')."', >> 'myContent', '300', '120', '6'); >> so.write('myContent'); >> "); >> ?> Considering what you're doing, the codeBlock seems unnecessary. A set of tags would do the trick. --~--~---

Re: Displaying swf files?

2008-05-14 Thread alxlevin
I appreciate the help as I'm pretty stumped on this one. Firebug doesn't seem to give any errors. As far as I can tell, the js file is correctly being loaded (I can see the code in Firebug). Here's what the javascript parts come out to in the source: //

Re: Problem with drake and Drupal Menu's

2008-05-14 Thread b logica
Sounds ugly. I don't know enough about Drake, so I couldn't say if it's responsible. I do remember something about generating a "drake url". Maybe that's related. If it is Cake, you could maybe hack Router::url() and place a Configure::write('base_url', 'something') or somesuch in bootstrap.php.

Re: Displaying swf files?

2008-05-14 Thread [EMAIL PROTECTED]
that probably doesn't have anything at all to do with cake check your HTML source and see if / is indeed your web root; look at how the URLs for your CSS and JS file are getting written, and if they are actually being loaded also install FireBug for Firefox and see if you're getting any Javascri

Re: shared servers and absolute paths

2008-05-14 Thread [EMAIL PROTECTED]
did you replace the 'app' directory w/ 'myapp' or do you have /home/ username/myapp/app ? On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a setup issue on a shared server which i can't seem to find any > documentation for. > I am able to get the "Sweet, 'myapp' got Baked

This field cannot be left blank

2008-05-14 Thread b logica
cake_1.2.x.x_6590 I have 2 rules for an email input and am providing the error messages to $form, instead of the model's $validate array, because they must be localised. It seems that Cake loses track of these. I've been looking through FormHelper's source but cannot figure out even how it gets t

Displaying swf files?

2008-05-14 Thread alxlevin
Hi. I'm trying to use CakePHP with Flash and can't seem to actually get the movie to appear. I'm trying to use the swfobject and have some pretty simple code which isn't working. I'm sure I'm missing something simple. I have the swf file located in webroot/_swf/. Any help would be greatly app

Strange query being generated by CakePHP

2008-05-14 Thread TracyB
I have a model using a table that's been around forever, so it's not a CakePHP friendly name. My model is set up like so: class Quote extends AppModel { var $name = 'Quote'; var $useTable = 'BillOfMaterial'; var $primaryKey = 'BillID'; var $useDbConfig = 'design'; When I do a $this->Quote->findA

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 4:19 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote: > > will do that. > Before submitting a ticket I was gonna ask if there is a purpose in > this that I don't understand. > I'm still fairly new to cake and I just wanted to be sure The worst thing that will happen if you fil

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread Marc Schuetze
will do that. Before submitting a ticket I was gonna ask if there is a purpose in this that I don't understand. I'm still fairly new to cake and I just wanted to be sure thanks for your answer. On Wed, May 14, 2008 at 9:17 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Wed, May 14, 2008 at

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 4:13 PM, MarcS <[EMAIL PROTECTED]> wrote: > > I understand that it is this association which is causing the join. > But I don't understand why that join is required. > Isn't all the counter cache is supposed to do is update > foo.dependent_count > What does it need the join

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread MarcS
yes there is one > 'foo' itself belongs to 'bar' which has many 'foo' I understand that it is this association which is causing the join. But I don't understand why that join is required. Isn't all the counter cache is supposed to do is update foo.dependent_count What does it need the join for th

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread Marc Schuetze
sorry Chris, you are absolutely correct. I misunderstood what jonkee posted. On Wed, May 14, 2008 at 9:06 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Wed, May 14, 2008 at 3:38 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote: >> >> But the current behavior is not doing that. When a field is mi

Re: strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 4:04 PM, MarcS <[EMAIL PROTECTED]> wrote: > > UPDATE foos as foo LEFT JOIN 'bars' as 'bar' ON ('foo'.bar_id = > bar.id) SET foo.dependent_count = 99 WHERE foo.id=1 > > Why does it do that? I can't see the point in creating this join. It > serves no purpose whatsoever. Well

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 3:38 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote: > > But the current behavior is not doing that. When a field is missing in > a request it is not being picked up by the validation routine Wasn't this question already answered in this thread? If your validation rules requ

strange counter cache behavior - is this supposed to be like that?

2008-05-14 Thread MarcS
I came accross an issue with the built in counter cache. My cake version is 1.2.0.6311 The query generated by cake to update the counter uses joins. Suppose I have a model 'foo' which which has many 'dependent 'foo' itself belongs to 'bar' which has many 'foo' The query to update the counter cac

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread Marc Schuetze
> But the current behavior is indeed correct. You simply cannot trust > that values that should be set in your form will be. If you get a > request that comes in missing a field, your validation routine needs > to pick that up. Otherwise, you'd need to do an isset() for each > required value after

Re: (May be) strange behavior of Model for table with just one column

2008-05-14 Thread senser
Cake doesn't recursively fetch related model "UnitI18n" if model "Unit" has only one field - ID On May 14, 9:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > what's the point of a table with only an ID field? > > OnMay14, 2:02 pm, senser <[EMAIL PROTECTED]> wrote: > > > Hi Bakers :). > > >

Re: Custom tags no longer working in 1.2 Beta...has something changed?

2008-05-14 Thread Mathew Nik Foscarini
What are tags? and where can I find more info on this in the documentation? Is this a feature of views or controllers? - Original Message From: Action <[EMAIL PROTECTED]> To: CakePHP Sent: Wednesday, May 14, 2008 3:15:17 PM Subject: Re: Custom tags no longer working in 1.2 Beta...has s

Re: Custom tags no longer working in 1.2 Beta...has something changed?

2008-05-14 Thread Action
I was wondering if anyone else could try implementing custom html tags in 1.2 beta to see if it works for you. I haven't found any documentation indicating it changed since 1.2 pre- beta, so I might just submit a ticket. On May 12, 1:11 pm, Action <[EMAIL PROTECTED]> wrote: > Have you tried usin

Re: Problem with this->redirect

2008-05-14 Thread francky06l
Something like : $js .= 'window.location.href="'.router::url('/controller/action', true).'";'; echo $javascript->codeBlock($js); There might be a better way, according to the "beforeRedirect" of RequestHandler, this code is quite "old" for me (but working).. hth On May 14, 8:16 pm, Dovdimus Pri

Re: Problem with this->redirect

2008-05-14 Thread Sliv
You can pass all kinds of parameters to the ajax helper including javascript you want executed: http://book.cakephp.org/view/208/ajax#ajaxhelper-options-209 On May 14, 2:16 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote: > Errr... sorry but how would I go about doing that? How do I get some > java

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread jonknee
> What if there was a case where you didn't want to save all of the > fields again when you're updating a record? There are a few ways to go, the easiest probably being Model::saveField(): $this->User->id = 1 $this->User->saveField('username', 'new_username') Or use some more complex validation

Re: shared servers and absolute paths

2008-05-14 Thread Sliv
Have you checked your layout and view files (*.ctp) to make sure css is being called the same way? On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a setup issue on a shared server which i can't seem to find any > documentation for. > I am able to get the "Sweet, 'myapp'

Re: Bindable Behavior work with pagination

2008-05-14 Thread francky06l
Just add "false" as first parameter to restrict : $this->[model name]->restrict(false, 'user(email,password)' ); That will make the bindable "non reset" hth On May 14, 2:06 pm, Nilesh <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I got hoe to work the Bindable Behavior work with pagination in C

Paypal Component in 1.2

2008-05-14 Thread Dave Rupert
hi all, i'm trying to use the paypal component (http://bakery.cakephp.org/ articles/view/168) in 1.2 but i'm failing. i've copied the code and followed the steps but i think i'm having a problem with the component. when i use the component "as-is", my whole app crashes with: require_once(PayPal

Re: (May be) strange behavior of Model for table with just one column

2008-05-14 Thread [EMAIL PROTECTED]
what's the point of a table with only an ID field? On May 14, 2:02 pm, senser <[EMAIL PROTECTED]> wrote: > Hi Bakers :). > > I already wrote about my problem > here:http://groups.google.com/group/cake-php/browse_thread/thread/bab2d3ac... > but decided to start new discussion because accidentally

Re: Including a menu on some pages but not all

2008-05-14 Thread Mathew Nik Foscarini
http://book.cakephp.org/view/94/views#elements-97 - Original Message From: benjam <[EMAIL PROTECTED]> To: CakePHP Sent: Wednesday, May 14, 2008 2:05:18 PM Subject: Re: Including a menu on some pages but not all Exactly what I was looking for. Thanks. On May 14, 11:56 am, Kyle Decot

Re: Problem with this->redirect

2008-05-14 Thread Dovdimus Prime
Errr... sorry but how would I go about doing that? How do I get some javascript function to run when the ajax function returns? The callback function which modifies the div is all wrapped up in the framework so I've got no idea how to add to it. Thanks David --~--~-~--~~

Re: Including a menu on some pages but not all

2008-05-14 Thread benjam
Exactly what I was looking for. Thanks. On May 14, 11:56 am, Kyle Decot <[EMAIL PROTECTED]> wrote: > create a file called menu.ctp in your views/elements folder. then you > can include the menu by using: > > echo $this->renderElement("menu"); --~--~-~--~~~---~--~~

(May be) strange behavior of Model for table with just one column

2008-05-14 Thread senser
Hi Bakers :). I already wrote about my problem here: http://groups.google.com/group/cake-php/browse_thread/thread/bab2d3acd4bf78a2/16621f80a1d48564?lnk=gst&q=related+models+recursion#16621f80a1d48564 but decided to start new discussion because accidentally found an interesting moment. Let me exp

Re: Including a menu on some pages but not all

2008-05-14 Thread Kyle Decot
create a file called menu.ctp in your views/elements folder. then you can include the menu by using: echo $this->renderElement("menu"); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Including a menu on some pages but not all

2008-05-14 Thread benjam
I apologize if this has been asked before, I looked but did not find the answer I was looking for. I know how to include a file in PHP, and here is what I am looking to do: in view.ctp: - Other view content here - What is

Re: Routing for plugins: good idea, no implementation

2008-05-14 Thread mbavio
I would be really cool if you can add something like that to the core! Cheers, mbavio On 13 mayo, 03:42, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I agree. It would be a sweet feature. > > With the default routes in place: > example.com/pizza/orders/ > This url will already fall back on d

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread b logica
My understanding is that the controller should remove the field from the validation array: unset($this->ModelName->validate['field_name']); On Wed, May 14, 2008 at 12:22 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What if there was a case where you didn't want to save all of the > field

shared servers and absolute paths

2008-05-14 Thread Roon
Hi all, I have a setup issue on a shared server which i can't seem to find any documentation for. I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage up and running with no errors.. even the database configured ok, Problem is, when I run any controllers, looking for deeper pages

Re: possible bug? validation successful even though required fields are not empty

2008-05-14 Thread [EMAIL PROTECTED]
What if there was a case where you didn't want to save all of the fields again when you're updating a record? For instance, if a user is updating his or her User record, and wants to edit a username and birthdate, for example. You probably wouldn't have a form field for 'password' in this same p

Re: installing cakephp on a subdomain

2008-05-14 Thread [EMAIL PROTECTED]
as jonknee said, it's not a cake issue, your web server is not configured properly to run PHP; check the PHP manual for instructions to properly configure PHP in whatever environment you're using for your server On May 14, 8:45 am, onajide <[EMAIL PROTECTED]> wrote: > Thank you but, I thought my

Re: Problem with html->image

2008-05-14 Thread [EMAIL PROTECTED]
Also, if you baked your app, you need to run 'bake' from your 'app' directory or specify this path to the bake script. Typically I just go into my app directory and execute the bake script using the full path to the cake directory On May 14, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrot

Re: Problem with html->image

2008-05-14 Thread [EMAIL PROTECTED]
Looks like something is botched in your path structure; By default, cake's directory structure should look something like /cake /app /app/webroot /app/webroot/img /app/webroot/css /vendors Typically I just dump everything into a project folder, and point a vhost domain to /project_name/app/webr

Re: Cookbook overhaul proposal

2008-05-14 Thread [EMAIL PROTECTED]
Thanks, I must have not looked hard enough in trac. I had not noticed there were milestones for the Cookbook. Hope I can be of help. On May 14, 1:26 pm, Sliv <[EMAIL PROTECTED]> wrote: > Have a look at the "CakePHP Tickets: How To Help" page in the pages > section for this group.  There are link

Re: Problem with this->redirect

2008-05-14 Thread Jonathan Snook
Return back a status message to the ajax call with a redirect URL and then use window.location to redirect the user from the client side. On Wed, May 14, 2008 at 10:25 AM, Dovdimus Prime <[EMAIL PROTECTED]> wrote: > > I have an ajax form which does some processing and returns data to a > target

Problem with this->redirect

2008-05-14 Thread Dovdimus Prime
I have an ajax form which does some processing and returns data to a target div. In one particular situation, what I need to happen is that instead of populating the target div, it calls a new page (view) instead. I tried using this->redirect but this loads the new view into the target div, rathe

Re: Problem with html->image

2008-05-14 Thread Dovdimus Prime
Great stuff, thanks to both you guys. On May 14, 10:15 am, stillboy <[EMAIL PROTECTED]> wrote: > The folder that the html helper points to for images, javascript and > css files is the webroot folder located at cakeroot->app->webroot. So > the img folder that you want to have pasty.jpg in is cake

Re: installing cakephp on a subdomain

2008-05-14 Thread jonknee
> Anyway, I decided to delete the install and start from scratch. A > friend said the files are supposed to be installed in httpdocs. They > were (still are until I delete everything). When you go to the web > page you're asked to download it instead of view > it.http://dev.miamiwebservers.com Y

Bindable Behavior work with pagination

2008-05-14 Thread Nilesh
Hi everybody, I got hoe to work the Bindable Behavior work with pagination in Cake 1.2? so simple copy to code in your function and changes $this->[model name]->restrict('user(email,password)' ); $this->paginate = array(null,'limit'=>'1','order'=>'[model name].id DESC');

Re: flickr component and phpFlickr

2008-05-14 Thread (withheld)@gmail.com
excellent, this worked well, thanks for your help. On May 14, 7:08 pm, theChrisWalker <[EMAIL PROTECTED]> wrote: > DarkAuth assume every controller has access to the User model. > > Which is why is recommends adding $uses=array('User') to > AppController. > > If this is not the case, then you'll

Re: installing cakephp on a subdomain

2008-05-14 Thread onajide
Thank you but, I thought my explanation was clear. What do I type here, my exact steps? Anyway, I decided to delete the install and start from scratch. A friend said the files are supposed to be installed in httpdocs. They were (still are until I delete everything). When you go to the web page yo

Re: Problem with html->image

2008-05-14 Thread stillboy
The folder that the html helper points to for images, javascript and css files is the webroot folder located at cakeroot->app->webroot. So the img folder that you want to have pasty.jpg in is cake->app- >webroot->img I assume there is a way to change where cake looks for the img folder although I

Re: CakePHP error when upload to server, pls, help me.

2008-05-14 Thread stillboy
Have you tried renaming that folder? the TT.CMS to remove the '.' ? That seems like it might make something unhappy. ~stillboy On May 14, 1:00 am, ngonchan <[EMAIL PROTECTED]> wrote: > When I install and develop CakePHP (1.2.0.6311-beta) on > localhost, it play well. But when I upload it

Re: Very Big Problem (I think) in HABTM with finderQuery

2008-05-14 Thread [EMAIL PROTECTED]
I use cake 1.2 With cake 1.1.13 it works On 14 Mag, 09:37, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I try the blog tutorial in cake and all works fine. > Then I have add the model Tag(with its database table)  in HABTM with > the model Post. > Now I would set a particular relation between

Re: WebService in Cake 1.2

2008-05-14 Thread [EMAIL PROTECTED]
Many thanks Chris. Can I ask you if you can help me with http://groups.google.com/group/cake-php/browse_thread/thread/e450476193fcc39e Because I'm blocked at this point and I can't go ahead with my work Many Thanks On 14 Mag, 15:02, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Wed, May 14, 20

Re: WebService in Cake 1.2

2008-05-14 Thread Chris Hartjes
On Wed, May 14, 2008 at 3:04 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > This is my situation: > I have the same action that can be a normal page or a xml page. > For example "/posts/view/1" or "/posts/view/1.xml" > > If is a normal page I would set Layout ajax. > If is a xml page I would

Re: HTML encoding of html->image

2008-05-14 Thread Dovdimus Prime
Honestly, I don't know what I'd do without you guys. Thanks! On May 14, 12:58 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote: > $ajax->link($html->image('image.jpg', array(), false), 'http:// > wicked.url/', array(), null, *false*); > > API for > $ajax->link(...):http://api.cakephp.org/1.2

Re: HTML encoding of html->image

2008-05-14 Thread dr. Hannibal Lecter
$ajax->link($html->image('image.jpg', array(), false), 'http:// wicked.url/', array(), null, *false*); API for $ajax->link(...): http://api.cakephp.org/1.2/class_ajax_helper.html#7e2e659c88c9cd4d833d531417d7ae03 Does the last param help? On May 14, 12:57 pm, Dovdimus Prime <[EMAIL PROTECTED]>

Re: Working 1.2 Auth with "remember me" feature

2008-05-14 Thread Tim W
Here's an updated function to support the good Dr Lecter's idea of resetting the cookie each time the user logs in. I'm fairly sure it works... function loginFromCookie() { $cookie = $this->Cookie->read('Auth.User'); if (!is_null($cookie)) { if ($this->Auth->login($cookie)) { //

Re: Specifying field names in findAll()

2008-05-14 Thread Sliv
In your core.php set your debug level to 2 and look at the sql-log table output to see the queries that cake is generating. Also, you may want to post relevant code to http://bin.cakephp.org and then post the url to your code here, as it will be far more readable for everyone here. On May 14, 2:

Re: installing cakephp on a subdomain

2008-05-14 Thread Esoteric
Sorry to hear you are having problems, but your description of your problem doesn't really help us to help you. Can you be more specific as to what is going on? If you want pretty urls you will have mod_rewrite installed for apache and then upload the .htaccess files if in fact they aren't upload

Re: Cookbook overhaul proposal

2008-05-14 Thread Sliv
Have a look at the "CakePHP Tickets: How To Help" page in the pages section for this group. There are links to view ticket reports on the trac site. I would include direct links in this post, but I really want to encourage folks to check out that page. One of the available reports is for cookbo

HTML encoding of html->image

2008-05-14 Thread Dovdimus Prime
This is doing my head in. I'm trying to use the ajax link with an image as the link: $ajax->link($html->image('image.jpg', array(), false), etc); However, $html->image keeps encoding the html so that the html image code is displayed on the page instead of the image itself. How do I get it to d

Re: Auth/Acl, limited accounts and endless redirects

2008-05-14 Thread Marcin Domanski
post your app_controller and routes.php to the bin On Wed, May 14, 2008 at 10:03 AM, David Christopher Zentgraf <[EMAIL PROTECTED]> wrote: > > Hi, > > I ran into this situation: > I'm using the Auth and Acl components to lock down my system. > Really limited accounts basically have no right besi

Re: CakePHP error when upload to server, pls, help me.

2008-05-14 Thread Marcin Domanski
http://antik-guide.de/TT.CMS/ look at the last slash http://bakery.cakephp.org/articles/view/cakephp-in-a-subdirectory-and-no-trailing-slash On Wed, May 14, 2008 at 9:00 AM, ngonchan <[EMAIL PROTECTED]> wrote: > > When I install and develop CakePHP (1.2.0.6311-beta) on > localhost, it play w

Re: Cookbook overhaul proposal

2008-05-14 Thread [EMAIL PROTECTED]
Sliv: Do you know where I can find information on the Cookbook development? Things like project info, source, openings, tickets or similar info. I can't say for sure how helpful I could be. My skill- level varies greatly with the topic but I would like to have a look to see if I find anything I th

Re: Problem with html->image

2008-05-14 Thread Amit Badkas
On Wed, May 14, 2008 at 2:34 PM, Dovdimus Prime <[EMAIL PROTECTED]> wrote: > > Hi all > > I'm trying to use html->image to place an image on the page like this: > > image("pasty.jpg", array(), false); ?> > > This results in rendered html like this: > > - Have you placed your app inside 'cake' di

Re: flickr component and phpFlickr

2008-05-14 Thread theChrisWalker
DarkAuth assume every controller has access to the User model. Which is why is recommends adding $uses=array('User') to AppController. If this is not the case, then you'll need to add the User model to your GalleryController. That should solve the problem. Chris. On May 14, 4:38 am, "(withhel

Problem with html->image

2008-05-14 Thread Dovdimus Prime
Hi all I'm trying to use html->image to place an image on the page like this: image("pasty.jpg", array(), false); ?> This results in rendered html like this: This image doesn't display, because I have no idea where this folder is in the directory structure (in fact, the folder doesn't exist)

CakePHP error when upload to server, pls, help me.

2008-05-14 Thread ngonchan
When I install and develop CakePHP (1.2.0.6311-beta) on localhost, it play well. But when I upload it to a server (Unix, ofcourse, with .htaccess file) it didn't run right. Mod_rewrite url's not correct. pls see: http://antik-guide.de/TT.CMS Maybe the .htaccess in server "fighting" with

Specifying field names in findAll()

2008-05-14 Thread nuhaa
hi, just a simple question. i'm trying to get only Decision.id so my findAll() should be like this right? $result = $this->Meeting->Decision->Status- >findAll('Status.action_date <= Decision.deadline',array('Decision.id')); this will give me nothing (execution time > 30 sec). but when i use this

Re: Problem with drake and Drupal Menu's

2008-05-14 Thread Wassy
Hi, yes i realise CSS doesnt see the difference but as i mentioned, ive not really looked at themeing yet so i dont know how it will respond. Im using Drupal 5.3 and cake 1.1.6.x (i think) Drake is causing me some major headaches right now so i would reccomend against it All of my scripts (css an

Auth/Acl, limited accounts and endless redirects

2008-05-14 Thread David Christopher Zentgraf
Hi, I ran into this situation: I'm using the Auth and Acl components to lock down my system. Really limited accounts basically have no right besides viewing and editing their own profile page. I disabled autoforwarding in the Auth component and set up some customized redirects: a) if the use

Re: Problem with multiple domains without a domain

2008-05-14 Thread Filip Camerman
You probably need to edit your .htaccess files (the routing/ configuration file of the web server, assuming it's Apache). They catch everything that begins with http://waywww.probolab.com.br/ and send it to the Cake dispatcher of your main site, which is why the / test part is interpreted as a con

Very Big Problem (I think) in HABTM with finderQuery

2008-05-14 Thread [EMAIL PROTECTED]
I try the blog tutorial in cake and all works fine. Then I have add the model Tag(with its database table) in HABTM with the model Post. Now I would set a particular relation between Post and Tag by the use of finderQuery. But I discover that it's NOT possible. I always must have a table with Po

Re: WebService in Cake 1.2

2008-05-14 Thread [EMAIL PROTECTED]
This is my situation: I have the same action that can be a normal page or a xml page. For example "/posts/view/1" or "/posts/view/1.xml" If is a normal page I would set Layout ajax. If is a xml page I would set Layout default. How can I do it? On 13 Mag, 19:54, francky06l <[EMAIL PROTECTED]> w