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
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
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
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.
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
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
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()
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 :)
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
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
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
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
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.
>
>
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
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
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
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
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
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
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
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.
>
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
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
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
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_
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
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'
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
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-
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
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
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
>
> --
>
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
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
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
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/
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
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
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
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
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
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
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
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
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
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
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
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.
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:/
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
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
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
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
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
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
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
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
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
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
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
--~--~-~--~~--
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
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
--~--~
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
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
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
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
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
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]
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
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
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
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
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
73 matches
Mail list logo