Re: How to use smarty cache in cakephp?

2007-02-15 Thread rollenc
Ur meaning is that putting the php code between the tags,but not the values. isn't it? On 2月16日, 下午1时25分, "lloydhome" <[EMAIL PROTECTED]> wrote: > I only have one page that is cached and has dynamic data on it. It > was really messy with Smarty and there are some other features I > wanted so I

Re: What editor do you use for CakePHP?

2007-02-15 Thread D.Pape
zend is very great, of course. but it's too expensive for me!! i'm web-developing in my free time and non-professional!! Felix St. Bernard schrieb: > How come more of you don't use zend? I find it pretty stable with > everything that you guys even mention that you're waiting on in other > soft

Re: filesystem browser with cakephp

2007-02-15 Thread Seb
Hey, Personally I wouldn't even consider writing my own filemanager (whatever you call it) unless I'd have some pretty specific requirements or license to abide to. I've implemented the MoxieCode FileManager (not free but cheap, and very well integrated with free tinyMCE) before and I know there

uploaded image problem

2007-02-15 Thread anandrv
Hi all, I need the file upload function using cakephp.in my database i want to save file "tempname.jpg".but this uploaded file i want to save particular location.when i am display the image i mention the / uploadedimage/ like that i want to give please give me some examples. Thanks and Regards.

Re: What editor do you use for CakePHP?

2007-02-15 Thread Felix St. Bernard
How come more of you don't use zend? I find it pretty stable with everything that you guys even mention that you're waiting on in other software. I liked Komodo but found it pretty slow. I never found the time to put my hands around eclipse though it looks very interesting as an open source al

requestAction view caching and user authentication of cached views

2007-02-15 Thread lloydhome
I have a user portal that gathers information from multiple controllers. The logic belongs in those controllers. The portal obtains these viewlets via requestAction() calls. RequestAction is notoriously slow and had no chance of using the view cache. This has really sped up my requestAction calls

Re: How to use smarty cache in cakephp?

2007-02-15 Thread lloydhome
I only have one page that is cached and has dynamic data on it. It was really messy with Smarty and there are some other features I wanted so I have decided to clean it all up. See http://www.lloydhome.com/news/view/5 for a full explaination. AS A BONUS, you get the controller's beforeFilter()

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Dr. Tarique Sani
On 2/15/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > You asked, and you've got it ;) I've set up a demo to run Cheesecake > (getting Cheescake "all in one" release on its Cakeforge site, which > includes CakePHP 1.1.11.4064) on Joomla 1.0 and Joomla 1.5 using Jake. > Awesome and thanks :)

filesystem browser with cakephp

2007-02-15 Thread Fedya
i'm new to cakephp and have yet to try to create anything with it. i need to create a file browser and am considering using cake, but i can't see how it would work exactly. from what i've gathered from watching the different tutorials i would need to create a component? how would i interface with

Re: checkbox and hidden fields

2007-02-15 Thread Dat Chu
Is there a specific problem with hidden field? I think your question might be about something else. On Feb 15, 5:54 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > No. > > This is because a checkbox does not post any value in a submitted form > if it is not checked - so Cake would have no way of kno

Re: Installing a CakePHP application on an existing site

2007-02-15 Thread Dat Chu
In .htaccess, you can specify that if the URL is a correct file/ directory path, then it will serve the page. Otherwise, it will rewrite to your index.php in cake webroot (to be handled by cake). That way, you cake files can stay on / as well. On Feb 15, 7:07 pm, "the_woodsman" <[EMAIL PROTECTED

Re: Bake generated view/related models

2007-02-15 Thread Norman
Sorry, I know that I wasnt able to explain. Let me try again: Lets say I have two related tables on a DB, users and groups. A user belongsTo a group, a group hasMany users. And lets say I have generated all models, controllers and CRUD views using bake.php, for both tables. My user model will hav

Re: saveField new record problem

2007-02-15 Thread Samuel DeVore
not knowing your db set up I would guess you might need to do something like $this->User->id = $the_id_for_this_user; $this->User->saveField('approved','N',false); On 2/15/07, teesea <[EMAIL PROTECTED]> wrote: > > Hi > > Apologies if this is a stupid question I'm still new to php and cake. > >

Re: Installing a CakePHP application on an existing site

2007-02-15 Thread the_woodsman
I've done something similar, and the only big issues are URLs (as Eric described, use of htaccess fiels and mod rewrite help here) and sharing the session between standard PHP and Cake. Wood On Feb 15, 11:18 pm, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > If you extract CakePHP to a director

Re: checkbox and hidden fields

2007-02-15 Thread Grant Cox
No. This is because a checkbox does not post any value in a submitted form if it is not checked - so Cake would have no way of knowing if the checkbox was unchecked, or just not present in the form at all. If you want to do it without the hidden field, just output the html yourself, don't use th

checkbox and hidden fields

2007-02-15 Thread [EMAIL PROTECTED]
Is there a way to use $html->checkbox and not getting the hidden fields --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Can I use variable set in controller inside same controller?

2007-02-15 Thread Langdon Stevenson
Hi gcalderon Why not just query ScorecardDates into a variable: $scorecard = $this->Scorecard-> findAll('Scorecard.winner = 1 GROUP BY Scorecard.date', null, 'Scorecard.name ASC') then set it for the view: $this->set('ScorecardDates', $scorecard); You can then use $scorecard in the second qu

Can I use variable set in controller inside same controller?

2007-02-15 Thread [EMAIL PROTECTED]
Hi, My apologies in advance if this is a redundant or even a dumb question but I can't seem to find the answer anyhwere online. I might have missed it though since I've been at this for a couple of hours now. I'm trying to set a variable in my controller method and have it count based on a speci

Re: Installing a CakePHP application on an existing site

2007-02-15 Thread Eric C Blount
If you extract CakePHP to a directory called /store/ under your main website, then only the store directory will be Cake powered, which should be what you want. Just make sure to get all of the .htaccess files in the right places when you extract. HTH, Eric On 2/15/07, Mike <[EMAIL PROTECTED]> w

saveField new record problem

2007-02-15 Thread teesea
Hi Apologies if this is a stupid question I'm still new to php and cake. I want to be able to set one variable in a model and save it without the validation being run when a action is first run so that when the view is shown I can place the new records id in a field. Currently I've got this in

Re: Ajax Form submit by onchange.

2007-02-15 Thread Langdon Stevenson
Hi mutabor > I have a form and some fields within it. I need to submit this form > by > onchange event of select element (see the code). But the way I did it > submits form using regular way - not through Ajax call. If I use > $ajax->submit(..) to submit this form everything works perfect. >

Re: Multilingual dynamic content

2007-02-15 Thread Langdon Stevenson
Hi peper > Hi. I'm developing a Flash site using CakePHP+AMFPHP as a server back- > end. The site will be multilingual. What would You suggest to do this? I am working on a site with this requirement too. My solution: I Googled PHP i18n solutions. I now have a function that is similar to the

Re: how to populate a second select-box by selecting a first with ajax ?

2007-02-15 Thread Langdon Stevenson
Hi fredBH I have just done the same thing and used: observeField ObserveField watches the field for a change, then can make an Ajax call to populate the other field. See the Ajax section in the manual for more info: http://manual.cakephp.org/chapter/helpers Regards, Langdon > i had lo

Re: About CakePHP Ajax Tutorial

2007-02-15 Thread codecowboy
Let me get this right, after you click on the ajax link, the text shows up but it takes a long time??? Or do you mean that the page is reloading after the text is displayed? I have looked back over that code. I don't see anything that would cause a page reload. I also don't see anyting in my c

Re: CakePHP+JpGraph

2007-02-15 Thread mindcharger
Several suggestions ;-) : 1) create a new script called pi.php and put just this inside: Then put it on your web root and access the script. You'll see the neat phpinfo() page...look for the "session" part and make sure that you have these values: Session Support:enabled session.auto_

Re: What editor do you use for CakePHP?

2007-02-15 Thread Chris Hartjes
On 2/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > What do you use for Cake cooking? > I use Komodo 4.0. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - h

Re: What editor do you use for CakePHP?

2007-02-15 Thread nanoman
On Windows i used ActiveState Komodo for PHP Development, nice featured, it was a bit slow back there, dunno about today. On OS X i use (and love!) TextMate for everything (FTP editing in combination with Transmit or Cyberduck). > I use dreamweaver 8 with their site settings for editing, etc. I'

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Max
Good work Mariano... Its finally taking a great shape. On Feb 15, 9:47 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > You asked, and you've got it ;) I've set up a demo to run Cheesecake > (getting Cheescake "all in one" release on its Cakeforge site, which > includes CakePHP 1.1.11.4064) on

Re: Good Cake Tutorial: IBM developerWorks

2007-02-15 Thread jk
In tutorial #1, on page 22 the code in listing 15 causes problems. I had to get rid of $html->formTag and just code the form tag in html, as $form->create didn't work for some reason (did I do something wrong). Also, had to replace $html->inputTag with $html->input, $html- >passwordTag with $html-

Using mySql text for all fields in a profile?

2007-02-15 Thread mallyone
Here's the situation, I'd like to build a profile which can have fields added to it as time goes on. I'd like to have one table defining the fields that I would like to add to the profile (ie. favorite rock group, favorite colour etc...) these attribute definitions would be in a attribute_definit

Re: Multi step AJAX forms

2007-02-15 Thread jamieh
Hi Again [EMAIL PROTECTED], I'm not sure if the DIV is expecting a variable as such as I am using the Render function. I guess the Render function expects a variable OR a view to render; which is what I thought I was doing from the code I provided above. I'm a little stumped now! :o) Is it act

Re: is there a function exist($var) somewhere that I didn't find?

2007-02-15 Thread CraZyLeGs
http://www.php.net/isset // the comments On Feb 14, 11:39 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Hahaha... Ok then, like Felix said, call it like: > > @getvar($somevariablethatdoesntexist) > > What a day I'm having... > > -MI > > --

Re: is there a function exist($var) somewhere that I didn't find?

2007-02-15 Thread CraZyLeGs
> On Feb 14, 11:39 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Hahaha... Ok then, like Felix said, call it like: > > @getvar($somevariablethatdoesntexist) > > What a day I'm having... > > -MI > > --- > > Remember, sm

Re: Yet another 'hasMany/belongTo' question...

2007-02-15 Thread mindcharger
After running a couple of tests I must say that cake DO retrieves the "hasMany" part as well. My problem (or cake's problem...I don't know...) was due to a MySQL table primary key having value '0'. Don't know if this is a bug, or is supposed to be like so... Now everything's fine... Thanks agai

Hiring a Full time PHP Developer

2007-02-15 Thread dtlaura
Are you fascinated by the web, scripting languages, databases and the endless possibilities of web technologies? Are you constantly reverse engineering web applications and wondering how you can make them even better? Would your friends say that you are addicted to the internet? If this sounds li

Installing a CakePHP application on an existing site

2007-02-15 Thread Mike
Hi, I think my first post was eaten, so here I am again. If it wasn't, please ignore this spam. If I write an app with Cake called Store (for example), can I install it onto an existing site like www.mysite.com, which has other non-Cake pages and sub directories so that I have: www.mysite.com/

validationErrors of associated model?

2007-02-15 Thread Alex
hi, how to access the validationErrors of my associated model (f.e. Post- >Comment) in my views? the method $this->Post->Comment->save(...) only gives the errors to the Comment model and not to the Post model so they wont be passed through the post controller to the post view. Thank you, Alex

Re: What editor do you use for CakePHP?

2007-02-15 Thread [EMAIL PROTECTED]
When on Windows: EditPlus2 and WinSCP3 for file transfer When on OSX:TextWrangler and Transmit When on Linux: VIM --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send e

how to populate a second select-box by selecting a first with ajax ?

2007-02-15 Thread fredBH
hello guys i had looking for it here in forum... but i cant find any answer that is useful to my problem... My models are: AnimalTypes( id, name ) AnimalRaces( id, animal_type_id, name ) Animals( id, animal_type_id, animal_race_id, name ) So... when adding an Animal... i would like to choose th

Re: Alpha: underscore conventions for protected and private for PHP5

2007-02-15 Thread nate
This is not a bug. You are attempting to force Cake to conform to PHP5's strict mode compliance, which it won't, since it is impossible to be compliant *and* support PHP4. You need to turn your debug level down. On Feb 15, 11:43 am, "Benjamin" <[EMAIL PROTECTED]> wrote: > I'm working off the la

Multilingual dynamic content

2007-02-15 Thread peper
Hi. I'm developing a Flash site using CakePHP+AMFPHP as a server back- end. The site will be multilingual. What would You suggest to do this? I think of making DB like that, for example Product (id, name, descriptionEN, descriptionFR, descriptionPL, image) it is easy to manage for web admin. But

RE: Alpha: underscore conventions for protected and private for PHP5

2007-02-15 Thread Mariano Iglesias
How did you save the article on the Bakery? As I stated here: https://trac.cakephp.org/ticket/2075 The Bakery shows no options on the Category select box, so article submission always fails. -MI --- Remember, smart coders

Re: What editor do you use for CakePHP?

2007-02-15 Thread peper
I use eclipse+PDT (PHP Developement Tool) It's great for PHP developement - code hinting, built-in parser, debugger, outliner, phpdoc suport etc. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

RE: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Mariano Iglesias
You asked, and you've got it ;) I've set up a demo to run Cheesecake (getting Cheescake "all in one" release on its Cakeforge site, which includes CakePHP 1.1.11.4064) on Joomla 1.0 and Joomla 1.5 using Jake. No modification to Cheesecake was needed. I did find a few issues on Jake (mainly how it

Alpha: underscore conventions for protected and private for PHP5

2007-02-15 Thread Benjamin
I'm working off the latest alpha build, and tried applying the coding conventions to get EclipsePHP to stop complaining about using "var" everywhere. The result? Lots of broken things. I documented the process at http://bakery.cakephp.org/articles/view/241 - I encourage others running under PHP

Re: Decorate (bake) modified

2007-02-15 Thread fredBH
Well, First, about Decorate: decorated version of bake.php. 1) pagination, 2) filtering(search) 3) complex sort are available! No additional components or helpers are needed. (Screenshot: http:// cakephp.seesaa.net/article/25299712.html) So, i just modified it to my needs... increasing the usabi

Re: Yet another 'hasMany/belongTo' question...

2007-02-15 Thread mindcharger
Hey! Thanks a lot on your input. I see it was my interpretation problem...so CAKE takes care of $belongsTo but not of $hasMany...ok...so everything's fine with my code and my head... As of "You just need to set: $this->Network->recursive = 1; In your Network controller, and then you can call

Re: Associations trouble

2007-02-15 Thread Erich C. Beyrent
I ran out of time to try Cake-like solutions, so I ended up using the dirty $this->State->query() method. -Erich- Christopher E. Franklin, Sr. wrote: > I'm sorry that I am not able to test this at work at the moment, I am > swamped. Did you make any headway? > > On Feb 11, 6:25 pm, "Erich C.

Re: Decorate (bake) modified

2007-02-15 Thread Max
Do you mind posting some textual information here ? Will be really helpful for everyone to see... On Feb 15, 4:00 am, "fredBH" <[EMAIL PROTECTED]> wrote: > Hi everyone ! > > I wanna share with u my modified version of decorate( bake script with > pagination e others stuff ). > > The link ishttp:/

Re: cake and gzip http compression

2007-02-15 Thread Summy
I prefere to use mod_gzip, you don't need admin prevs either, as that blog states. Simply do this in your .htaccess if your server supports it (most do): mod_gzip_on Yes mod_gzip_dechunk Yes On Feb 15, 2:07 pm, "fredBH" <[EMAIL PROTECTED]> wrote: > Hi everyone! > > Somebody te

Re: Model best practices question

2007-02-15 Thread jinhr
If your Profile Model has already been defined $recursive = 1 or greater, then you can do in Controller: $this->Profile->unbindModel(array('hasMany' =>array('user_image'))) before $this->Profile->findAll() This makes your Profile gets main_image, but no user_image. Keep in mind the unbindMod

Re: cake and gzip http compression

2007-02-15 Thread Felix Geisendörfer
I've played around with this some time ago, see: http://www.thinkingphp.org/2006/07/16/issues-with-output-buffering-in-cakephp/ -- Felix Geisendörfer aka the_undefined -- http://www.thinkingphp.org http://www.fg-webdesign.de fredBH wrote: > Hi everyone! > > Somebody test

cake and gzip http compression

2007-02-15 Thread fredBH
Hi everyone! Somebody test it with cake ? http://blog.jc21.com/2007-02-08/how-to-use-gzip-to-load-your-site-faster/ It s sounds prety cool if it gonna be work on cake... Someone had tried it? thx by --~--~-~--~~~---~--~~ You received this message because you

cake file browser

2007-02-15 Thread Fedya
i'm new to cakephp and have yet to try to create anything with it. i need to create a file browser and am considering using cake, but i can't see how it would work exactly. from what i've gathered from watching the different tutorials i would need to create a component? how would i interface with

Useful conditional debugging in checkSession

2007-02-15 Thread [EMAIL PROTECTED]
Hi there, In an application I've developed I had the need to see debug info while I was logged in to assist with support, but I didn't want the other customers/users to see it. Here's what I ended up doing and it works well. I created this checkSession function and placed it in app_controller.ph

Filesystem browser with Cake?

2007-02-15 Thread Fedya
i'm new to cakephp and have yet to try to create anything with it. i need to create a file browser and am considering using cake, but i can't see how it would work exactly. from what i've gathered from watching the different tutorials i would need to create a component? how would i interface with

cake file browser

2007-02-15 Thread Fedya
i'm new to cakephp and have yet to try to create anything with it. i need to create a file browser and am considering using cake, but i can't see how it would work exactly. from what i've gathered from watching the different tutorials i would need to create a component? how would i interface with

variables in layout file

2007-02-15 Thread [EMAIL PROTECTED]
I have the layout file divided in three section. The central is for content_for_layout(); right and left. I want put for example the last news inside the right panel. This panel must be visible almost always. What must I do? I want to put code inside, but i can only use the $session in the def

Manual session start

2007-02-15 Thread Summy
Well to my surprise there is no way to manually create a session with Cake 1.13 (maybe different in 1.2?). You either have auto_session or you don't have session support at all. My solution to this problem was simple, and it would be easy to fix in the core code: Copy cake/libs/controller/compo

Decorate (bake) modified

2007-02-15 Thread fredBH
Hi everyone ! I wanna share with u my modified version of decorate( bake script with pagination e others stuff ). The link is http://www.mediafire.com/?6j2mymtotzg PS: Put the image files indo webroot/img. I hope that it should be useful to somebody... bye Thx --~--~-~--~~--

Re: Good Cake Tutorial: IBM developerWorks

2007-02-15 Thread D.Pape
hi matt. yes, its been posted before! :o) ckeck out for tutorials without registration: http://groups.google.de/ group/cake-php/browse_thread/thread/8b92f888c25390d3/c1990fcaed0e1ab0? hl=de#c1990fcaed0e1ab0 cheers, daniel On 15 Feb., 11:57, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > G'd

Good Cake Tutorial: IBM developerWorks

2007-02-15 Thread [EMAIL PROTECTED]
G'day all, Found a nice tutorial series here. You have to register to see all the content. http://www-128.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=cook+web+sites+CakePHP&search_flag=true&end_no=100&show_all=false Sorry if its been posted before. Cheers Matt --~--~

index page on administration area

2007-02-15 Thread Petry
Hi all, Why a create a default page on administration areas, for example http://www.site.com/admin/index? I can acces te controllers from the admin area, for example http://www.site.com/admin/controller_name/ but i can't acces the page from default page from the admin area I try create a funcio

cake file browser

2007-02-15 Thread [EMAIL PROTECTED]
i'm new to cakephp and have yet to try to create anything with it. i need to create a file browser and am considering using cake, but i can't see how it would work exactly. from what i've gathered from watching the different tutorials i would need to create a component? how would i interface with

Re: HTML-considering Truncate()-Function

2007-02-15 Thread Alexander Wegener
Hi, On Wed, 14 Feb 2007 22:13:51 -, "dima" <[EMAIL PROTECTED]> wrote: > > Alex, > > Under what conditions would you need to truncate content with tags > included? > I wanted to preview not only the contents of my texts on one page. My texct snippets should be formatted as th

keep the selected month in yearOptionTag

2007-02-15 Thread Thomas
Hello there! I'm making a form where someone can select a date and month. I use the year- and monthOptionTag for this. There is only one problem: the default value of the year and the month box is today's year and month. When I click on, say, 2006, and I click submit, after the query the option-b

Re: Navigation Component / Helper

2007-02-15 Thread Peter
Thanks for all the replies! I'll get to work on an element today and if (read: when) I come across difficulties, I'll let you know ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Creating a custom AppView

2007-02-15 Thread Gonçalo Marrafa
That did it! Thanks a lot! Regards. On Wed, 14 Feb 2007 09:54:44 -0800 "AD7six" <[EMAIL PROTECTED]> wrote: > Put var $view = 'Whatever'; in your (app)controller > > and create /app/views/whatever.php > containing a class "whateverView extends View" -- Gonçalo Marrafa <[EMAIL PROTECTED]

RE: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Mariano Iglesias
Pretty cool! Though it's in alpha stage, I've written an installation documentation (see how easy it is) and I'll be writing a documentation on how to test your cake apps with the component, although it should be straight forward. Just see in the documentation the screenshot that shows the Jake me

Re: Bake generated view/related models

2007-02-15 Thread Eric C Blount
I'm really trying to understand. Can you give more information about what you want? Please clarify... Eric On 2/14/07, Norman <[EMAIL PROTECTED]> wrote: > > > In a View, bake.php generates scaffolded methods with foreach $data/ > etc generated html table, to show related models. > > Is there a

Re: My application using cakePHP

2007-02-15 Thread Eric C Blount
Slow, so very slow (see traceroute at the bottom). Makes it hard to actually try your application. But very interesting. If it's an academic work, will you be releasing this as Open Source? Can we expect a couple of Bakery articles on the techniques you used to build it? Please don't forget to giv

Re: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Dr. Tarique Sani
On 2/15/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote: > > Ok the Cakeforge project for Jake has been approved, I submitted source to > the SVN repository and released Jake installers for Joomla 1.0 and Joomla > 1.5. Cool! coincidentally I came upon this blog entry yesterday http://community.ne

RE: Wrapping Cake in a Joomla component, like Cake + Drupal = Drake

2007-02-15 Thread Mariano Iglesias
Ok the Cakeforge project for Jake has been approved, I submitted source to the SVN repository and released Jake installers for Joomla 1.0 and Joomla 1.5. Bear in mind that it is still on a VERY ALPHA stage. I intend to change the code a lot, as well as write documentation. Cakeforge project is a